Git Product home page Git Product logo

lwc-mobile-samples's Introduction

Sample Lightning Web Components Projects for Mobile

Welcome to the Mobile samples repo. You can browse the samples under the projects folder.

Contribution Guidelines

Contributing

  1. Familiarize yourself with the codebase.
  2. Create your standalone SFDX project and add all of your code to it.
  3. Fork this repository.
  4. Copy your SFDX project into projects folder in your fork.
  5. Modify your project and align it with the requirements of this monorepo (follow the example of any of the existing projects):
    1. Update the name and description in your package.json to something meaningful.
    2. Ensure that your dependencies and devDependencies are not too old. They should be same as other projects in this repo or newer.
    3. DO NOT include a package-lock.json file. We use Yarn in this repo. After copying over your project, delete its package-lock.json and node_modules and then run yarn install at the root of the repo. This will update the existing yarn.lock file in the repo and generate a new node_modules for your project.
    4. Ensure that running yarn precommit at the root of the repo passes all of the checks and address any failures.
  6. Ensure that you've set up GPG signing to sign your commits.
  7. Once ready, send us a pull request. We'll review your code, suggest any changes needed, and merge it in when ready.

Branches

  • We work directly in main. This means that every PR that goes in main should be self contained and complete. For feature work that is done via multiple PRs, please create a feature branch in your fork first and once all of the work is done then create a PR to main for review.

Pull Requests

  • This repo is open to public so DO NOT include internal info in PRs (such as GUS work item number) and in your code.

lwc-mobile-samples's People

Contributors

akash-patel55 avatar bettyjacobs8 avatar bsugiarto24 avatar daniel94104 avatar dependabot[bot] avatar ibenitamar avatar karinlackrif avatar khawkins avatar maliroteh-sf avatar mcohenh avatar rotem-hen-sf avatar rwhitley avatar sahar-cohen-sf avatar svc-scm avatar yongbozuo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lwc-mobile-samples's Issues

Error when viewing map on mobile

I've added the URL to Trusted URLs however I still get an ERR_BLOCKED_BY_CSP response when trying to view the map. I still see the list of records but no map.

image

Repo cleanup

Take some time to go through the various sub-projects and make sure that:

  • They install properly via their package manager of choice (npm, yarn):
    • Side note: should we standardize on a single package manager? Right now we're using Yarn at the top of the repo, but npm in some sub-projects.
  • Dependencies are up to date.
  • Linting errors (LWC, ESLint, etc.) are fixed.

RescheduleAppointments Deploy Error: LWC1702: Invalid LWC imported identifier "createElement"

When I deploy sources to an org, the error as a title is returned.
I googled it and change .forceignore file but still not solved.
https://salesforce.stackexchange.com/questions/385043/lwc1702-invalid-lwc-imported-identifier-createelement
If I delete this file, deploy is sucessful.

force-app/main/default/lwc/mobileAppointmentBookingResourceAssignment/__test__/mobileAppointmentBookingResourceAssignment.test.js  LWC1702: Invalid LWC imported identifier "createElement" (1:9)

Consolidate sample projects with Lerna

As we get more "sub-projects" in the repo—predominantly represented as separate SFDX projects for each set of samples—it would be good to properly configure a top-level project in the hierarchical structure, to allow for consistent application of project maintenance features like linting, formatting standards, etc.

We should:

  1. Design a hierarchical project structure, that allows common / collective tasks to be pulled out to top-level project workflows.
  2. Leverage Lerna to stitch the hierarchy together, updating all top-level and sub-project configurations as necessary to support this configuration.

FindNearby Project Readme Update.

Hello,

We had an issue where the Find Nearby App was not working on Salesforce Offline Mobile App. On a call with Salesforce it was determined that the documentation was incomplete. Step 6 in the readme file on the Find Nearby Project mentions to add a Trusted URL for "maps.a.forceusercontent.com". This needs to be updated to add a Trusted URL for "maps.a.forceusercontent.com" AND "maps.b.forceusercontent.com".

More Discussion on this can be found here:
https://trailhead.salesforce.com/trailblazer-community/feed/0D54V00007T2PQ9SAN

Conflict between permission 'Access Lightning Web Components in Field Service Mobile' and quick actions type 'Update a Record'

Hi, I have noticed that if you have enabled this system permission (Access Lightning Web Components in Field Service Mobile) through a Permission Set for an user, ok, then you are able to access the LWC in Field Service APP, but if you have other type of quick actions related to the Work Steps of type 'Update Record', these are then not available. In the app, it shows the following when you try to complete the action. Do you know if it may be related or any configuration that is missing out? I have not found any known issue about this, neither Salesforce Support have a first answer about this. Thanks!

image1
s!
image2

Package version given in readme not working

For the setup of FollowUpAppointment project there is a package needs to be installed but the package id given is not correct. It shows that this package version does not exist. This needs to be updated here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.