Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: in container mode, disable LWC preview with error #4983

Merged
merged 7 commits into from
Jul 26, 2023

Conversation

ryannmcq
Copy link
Contributor

@ryannmcq ryannmcq commented Jul 17, 2023

What does this PR do?

Disables the LWC preview command when the extension is running in a container (e.g. Code Builder) by displaying an error toast that explains why the command is unavailable.

Note: there's a directive from product not to hide the command entirely in this situation because it results in support calls from customers that a command is missing.

What issues does this PR fix or reference?

@W-13579717@

Functionality Before

In a container, LWC preview command results in an error with instructions that won't work in a container:

Screen.Recording.2023-07-17.at.4.16.22.PM.mov

Functionality After

In a container, LWC preview command results in an error message explaining the command is unavailable in a container:

Screen.Recording.2023-07-17.at.4.25.34.PM.mov

@ryannmcq ryannmcq self-assigned this Jul 17, 2023
@ryannmcq ryannmcq marked this pull request as ready for review July 17, 2023 22:01
@ryannmcq ryannmcq requested a review from a team as a code owner July 17, 2023 22:01
@ryannmcq ryannmcq requested a review from smarvez July 17, 2023 22:01
@RitamAgrawal RitamAgrawal requested review from RitamAgrawal and removed request for smarvez July 21, 2023 17:24
Copy link
Member

@RitamAgrawal RitamAgrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ryannmcq Looks Good! Have posted a clarifying question and waiting for doc review on error message.

Copy link
Member

@RitamAgrawal RitamAgrawal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

QA Notes:
✅ SFDX: Preview Components Locally runs successfully on desktop
✅ Compiling and launching extensions
Have not tested with SFDX_CONTAINER_MODE set to true. Considering the video in Functionality After for the same.

@ryannmcq ryannmcq merged commit 81789e6 into develop Jul 26, 2023
16 checks passed
@ryannmcq ryannmcq deleted the rs/container-lwc-preview branch July 26, 2023 15:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants