Giter Club home page Giter Club logo

trailheadapps / easy-spaces-lwc Goto Github PK

View Code? Open in Web Editor NEW
225.0 17.0 175.0 9.38 MB

Sample application for Lightning Web Components on Salesforce Platform. Part of the sample gallery. Event management use case. Get inspired and learn best practices.

Home Page: https://developer.salesforce.com

License: Creative Commons Zero v1.0 Universal

JavaScript 71.06% Apex 10.81% HTML 16.21% CSS 0.59% Shell 0.61% Batchfile 0.72%
salesforce lightning-web-components apex

easy-spaces-lwc's Issues

Fix prettier command for Windows compatibility

What is missing from the application? Please describe.
The current configuration of the npm script for running Prettier doesn't work on Windows.

Describe the solution you'd like
Change the format of the prettier commands from using single quotes to escaped double quotes.

Example:

{
        "prettier": "prettier --write \"**/*.{css,html,js,json,md,ts,yaml,yml}\"",
        "prettier:verify": "prettier --list-different \"**/*.{css,html,js,json,md,ts,yaml,yml}\"",
}

Add instructions for deploying to Trailhead playground

What is missing from the application? Please describe.
A clear and concise description of what the problem is. Ex. I'd like to see an implementation of [...]

Describe the solution you'd like
Add instructions for deploying to Trailhead playground. the other sample apps have it but this one just has push for scratch orgs.

Describe alternatives you've considered

Additional context

[222+] Migrate Aura page templates to LWC

What is missing from the application? Please describe.
Currently the application uses an Aura component as page template (see here and here).

Describe the solution you'd like
Once page templates are natively available with LWC the Aura wrapper should be removed.

[222+] Migration Aura Flow wrapper to LWC

What is missing from the application? Please describe.
Currently the application uses an Aura component for wrapping LWCs that are used in Flow (see here and here).

Describe the solution you'd like
Once the new metadata target is available for flow screens the wrapper should be removed.

ESBaseStylesLWC package can be independent

Summary

I am having a hard time understanding why the ESBaseStylesLWC unlocked packages should depend on the ESBaseObjects package?

Should we remove the dependency on the objects?

Implement WITH_SECURITY_ENFORCED in SOQL

What is missing from the application? Please describe.
With Spring '20 a new security option WITH _SECURITY_ENFORCED is available. This is not reflected in the codebase.

Describe the solution you'd like
The code base needs to be checked if/where it makes sense to apply the option.

Describe alternatives you've considered
None.

Exclude .vscode from Prettier

Prettier should not format auto-generated/internal IDE files like .vscode. This applies to ALL sample apps.

Fix: simply add .vscode to .prettierignore.

Apply SLDS best practices to components

What is missing from the application? Please describe.
To reflect UI development best practices the sample app needs to make use of SLDS design tokens that make use of the UI density settings in an org. Similar to that any manual CSS should be replaced, where it makes sense, with SLDS classes instead.

Describe the solution you'd like
Validate all Lightning web components (and Aura, if applicable) if they make use of the latest SLDS design tokens, and if manual CSS syntax needs to be updated with SLDS classes.

The SLDS Validator provides the needed analysis and correction capabilities.

Simplify page design of Reservation Manager and Space Designer page

What is missing from the application? Please describe.
Currently, the page architecture for the reservation page and the space designer is pretty complex and hard to understand. We have been running with this app to the SI partners to showcase the app and have overwhelmed our learners by the app complexity.

Also, we have received some more feedback from flow product owners on how complex the design is.

Current Design State

Screen Shot 2020-08-10 at 5 33 27 PM

The current design uses lwc, aura, and flows. Flows use lwc embedded in them.

At this point, we are not able to get rid of aura because lwc currently does not support launching flows dynamically. This makes the design complex!

Describe the solution you'd like

We should get rid of the aura completely. This will simplify the design!

What about the dynamic flow launch if we get rid of aura?

For this, the proposal is we use the lightning app builder which allows us to select the flow component. This way we can still show how one could replace the different flow if needed.

Screen Shot 2020-08-10 at 5 41 53 PM

proposed state

Screen Shot 2020-08-10 at 5 48 12 PM

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Exclude temporary files from local-dev-server for git commits

What is missing from the application? Please describe.
The newly introduced local development server for on-platform LWC creates a new local folder within DX projects. That folder holds temporary data.

Describe the solution you'd like
The folder should be excluded from git commits, as the data is only temporary. For that the .gitignore needs to be updated exactly as in this pull request.

Push source sequentially with pushPackageDirectoriesSequentially CLI flag

Summary

We have several package directories in this app and it would make sense to push them sequentially in order to validate dependencies.
Thankfully, we have a pushPackageDirectoriesSequentially CLI flag that we can use for this:
https://developer.salesforce.com/docs/atlas.en-us.sfdx_dev.meta/sfdx_dev/sfdx_dev_ws_mpd.htm#mpd-push-source-sequentially

Suggested Solution

No response

Alternative Solutions

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Fix lint-staged commit warning

Problem: each commit to the project outputs this warning:
โš  Some of your tasks use git add command. Please remove it from the config since all modifications made by tasks will be automatically added to the git commit index.

Fix: Current version of lint-staged automates git add action so we need to remove this from package.json:

"*": [
  "git add"
]

[222+] Migrate Aura workspace and navigation API to LWC

What is missing from the application? Please describe.
Currently the application uses Aura components as wrappers to make use of the workspace PAI (see here and for the navigation API (see here and here).

Describe the solution you'd like
Once these APIs are available the Aura components should be replaced with LWC counterparts.

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.