Skip to content

Commit 0974dbb

Browse files
moorejacquelinejshackell-sfdcnrkruk
authored
fix: CLI command text review (#64)
* fix: lightning preview app text * fix: lightning preview site text * fix: khawkins maliroteh-sf edits 1 * fix: kevin's edits * fix: jacqueline1 * fix: remove description for site name flag * fix: juliet's edits 1 * fix: juliet edits 2 * fix: nick edits 2 * fix: broken link replacement temp * fix: nick suggestions and update feature name * fix: clarify app vs org in app.md * fix: removed linkless text * fix: change Experience Cloud site to Experience Builder site * Apply suggestions from code review Co-authored-by: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com> --------- Co-authored-by: Juliet Shackell <63259011+jshackell-sfdc@users.noreply.github.com> Co-authored-by: Nicolas Kruk <nicolaskruk@gmail.com>
1 parent 4633931 commit 0974dbb

File tree

5 files changed

+64
-61
lines changed

5 files changed

+64
-61
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ FLAGS
161161
162162
GLOBAL FLAGS
163163
--flags-dir=<value> Import flag values from a directory.
164-
--json Format output as json.
164+
--json Format output as JSON.
165165
166166
DESCRIPTION
167167
Say hello.

messages/lightning.preview.app.md

Lines changed: 42 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
# summary
22

3-
Preview Lightning Experience Applications.
3+
Preview a Lightning Experience app locally and in real-time, without deploying it.
44

55
# description
66

7-
Preview Lightning Experience Applications in real-time.
7+
Use Local Dev (Beta) to see local changes to your app in a real-time preview that you don't have to deploy or manually refresh. To let you quickly iterate on your Lightning web components (LWCs) and pages, your app preview automatically refreshes when Local Dev detects source code changes.
88

9-
In dev preview mode, you can edit local files and see these changes to your Lightning Web Components (LWC) within your {org name} org:
9+
When you edit these local files with Local Dev enabled, your org automatically reflects these changes.
1010

11-
- Basic HTML and CSS edits
12-
- Importing new CSS-only LWC
13-
- JS edits in-service component library
14-
- JS method changes in the LWC component that don't alter its public API.
11+
- Basic HTML and CSS edits to LWCs
12+
- JavaScript changes to LWCs that don't affect the component's public API
13+
- Importing new custom LWCs
14+
- Importing another instance of an existing LWC
1515

16-
Other local changes require deployment to your org. However, changes made directly in your org (like modifying component properties and saving) are immediately live and won't show in your local files until you retrieve them from the org.
16+
To apply any other local changes not listed above, you must deploy them to your org using the `sf project deploy start` command.
1717

18-
This feature enables developers to quickly iterate on their components and pages, seeing the impact of changes in real-time without needing to deploy or refresh manually. Live reload is enabled by default to automatically refresh the preview when source code changes are detected.
18+
When you make changes directly in your org (like saving new component properties), they're automatically deployed to your live app. To update your local version of the app with those changes, you must retrieve them from your org using the `sf project retrieve start` command.
1919

20-
Use the appropriate topic to preview specific aspects of the development environment.
20+
To learn more about Local Dev enablement, considerations, and limitations, see the Lightning Web Components Developer Guide.
2121

2222
# flags.name.summary
2323

24-
Name of the Lightning Experience application to preview.
24+
Name of the Lightning Experience app to preview.
2525

2626
# flags.target-org.summary
2727

2828
Username or alias of the target org. Not required if the `target-org` configuration variable is already set.
2929

3030
# flags.device-type.summary
3131

32-
Type of device to emulate in preview.
32+
Type of device to display the app preview.
3333

3434
# flags.device-id.summary
3535

36-
For mobile virtual devices, specify the device ID to preview. If omitted, the first available virtual device will be used.
36+
ID of the mobile device to display the preview if device type is set to `ios` or `android`. The default value is the ID of the first available mobile device.
3737

3838
# error.username
3939

@@ -97,70 +97,75 @@ Before proceeding, install the self-signed certificate on your device. The certi
9797

9898
`%s`
9999

100-
Follow the steps below to install the certificate:
100+
To install the certificate, follow these steps:
101101

102102
%s
103103

104104
# certificate.installation.steps.ios
105105

106-
1. Drag and drop the file on to your booted simulator.
107-
2. Tap `Allow` to proceed with downloading the configuration file.
108-
3. Tap `Close` and navigate to `Settings > General > VPN & Device Management > localhost`.
109-
4. Tap `Install` in the title bar, in the warning window, and on the install button.
110-
5. In the `Profile Installed` view, confirm that the profile shows as `Verified` and Tap `Done`.
111-
6. Now navigate to `Settings > General > About > Certificate Trust Settings`.
112-
7. Toggle full trust for `localhost` to enable full trust.
113-
8. In the warning dialog, tap `Continue`.
106+
1. Drag and drop the file onto your booted simulator.
107+
2. Click `Allow` to proceed with downloading the configuration file.
108+
3. Click `Close` and navigate to `Settings > General > VPN & Device Management > localhost`.
109+
4. Click `Install` in the title bar, in the warning window, and on the install button.
110+
5. In the `Profile Installed` view, confirm that the profile displays `Verified` and then click `Done`.
111+
6. Navigate to `Settings > General > About > Certificate Trust Settings`.
112+
7. Enable full trust for `localhost`.
113+
8. In the resulting warning pop-up, click `Continue`.
114114

115115
# certificate.installation.steps.android
116116

117-
1. Drag and drop the file on to your booted emulator.
117+
1. Drag and drop the file onto your booted emulator.
118118
2. %s
119-
3. Browse to the certificate file that you transferred from step 1 (usually under `/sdcard/download`).
119+
3. Navigate to the certificate file from step 1. (It's usually located in `/sdcard/download`).
120120
4. Follow the on-screen instructions to install it.
121-
5. Tap on `User credentials` under `Credential storage` and verify that your certificate is listed there.
122-
6. Tap on `Trusted credentials` under `Credential storage`. Then tap on `USER` and verify that your certificate is listed there.
121+
5. Click `User credentials` under `Credential storage` and verify that your certificate is listed there.
122+
6. Click `Trusted credentials` under `Credential storage`. Then click `USER` and verify that page lists your certificate.
123123

124124
# certificate.installation.steps.android.nav-target-api-24-25
125125

126-
Navigate to `Settings > Security` and tap on `Install from SD card` under `Credential storage`.
126+
Navigate to `Settings > Security` and click `Install from SD card` under `Credential storage`.
127127

128128
# certificate.installation.steps.android.nav-target-api-26-27
129129

130-
Navigate to `Settings > Security & Location > Encryption & credentials` and tap on `Install from SD card` under `Credential storage`.
130+
Navigate to `Settings > Security & Location > Encryption & credentials` and click `Install from SD card` under `Credential storage`.
131131

132132
# certificate.installation.steps.android.nav-target-api-28
133133

134-
Navigate to `Settings > Security & Location > Advanced > Encryption & credentials` and tap on `Install from SD card` under `Credential storage`.
134+
Navigate to `Settings > Security & Location > Advanced > Encryption & credentials` and click `Install from SD card` under `Credential storage`.
135135

136136
# certificate.installation.steps.android.nav-target-api-29
137137

138-
Navigate to `Settings > Security > Encryption & credentials` and tap on `Install from SD card` under `Credential storage`.
138+
Navigate to `Settings > Security > Encryption & credentials` and click `Install from SD card` under `Credential storage`.
139139

140140
# certificate.installation.steps.android.nav-target-api-30-32
141141

142-
Navigate to `Settings > Security > Encryption & credentials` and tap on `Install a certificate` under `Credential storage`. Now tap on `CA certificate` and on `Install anyway`.
142+
Navigate to `Settings > Security > Encryption & credentials` and click `Install a certificate` under `Credential storage`. Click `CA certificate`, and then click `Install anyway`.
143143

144144
# certificate.installation.steps.android.nav-target-api-33
145145

146-
Navigate to `Settings > Security > More security settings > Encryption & credentials` and tap on `Install a certificate` under `Credential storage`. Now tap on `CA certificate` and on `Install anyway`.
146+
Navigate to `Settings > Security > More security settings > Encryption & credentials` and click `Install a certificate` under `Credential storage`. Click `CA certificate`, and then click `Install anyway`.
147147

148148
# certificate.installation.steps.android.nav-target-api-34-up
149149

150-
Navigate to `Settings > Security & Privacy > More security & privacy > Encryption & credentials` and tap on `Install a certificate` under `Credential storage`. Now tap on `CA certificate` and on `Install anyway`.
150+
Navigate to `Settings > Security & Privacy > More security & privacy > Encryption & credentials` and click `Install a certificate` under `Credential storage`. Click `CA certificate`, and then click `Install anyway`.
151151

152152
# certificate.waiting
153153

154-
After installing the certificate, press any key to continue...
154+
After you install the certificate, press any key to continue...
155155

156156
# mobileapp.notfound
157157

158-
%s is not installed on your device.
158+
%s isn't installed on your device.
159159

160160
# mobileapp.download
161161

162-
%s is not installed on your device. Do you want to download and install it
162+
%s isn't installed on your device. Do you want to download and install it?
163163

164164
# examples
165165

166-
- <%= config.bin %> <%= command.id %>
166+
- Preview the default app for the target org "myOrg" in a desktop environment:
167+
<%= config.bin %> <%= command.id %> --target-org myOrg
168+
- Preview the app "myApp" for the target org "myOrg" in a desktop environment:
169+
<%= config.bin %> <%= command.id %> --name MyApp --target-org myOrg --device-type desktop
170+
- Preview the default app for target org "myOrg" on an iOS device:
171+
<%= config.bin %> <%= command.id %> --target-org myOrg --device-type ios --device-id "iPhone 15 Pro Max"

messages/lightning.preview.site.md

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,37 @@
11
# summary
22

3-
Preview Experience Cloud Sites.
3+
Preview an Experience Builder site locally and in real-time, without deploying it.
44

55
# description
66

7-
In dev preview mode, you can edit local files and see these changes to your Lightning Web Components (LWC) within your site:
7+
Enable Local Dev to see local changes to your site in a real-time preview that you don't have to deploy or manually refresh. To let you quickly iterate on your Lightning web components (LWCs) and pages, your site preview automatically refreshes when Local Dev detects source code changes.
88

9-
- Basic HTML and CSS edits
10-
- Importing new CSS
11-
- Javascript edits in-service component library
12-
- Javascript method changes in the LWC component that don't alter its public API.
9+
When you edit these local files with Local Dev enabled, your org automatically reflects these changes.
1310

14-
Other local changes may require deployment to your org. However, changes made directly in your org (like modifying component properties) are immediately live and won't show in your local files until you retrieve them from the org.
11+
- Basic HTML and CSS edits to LWCs
12+
- JavaScript changes to LWCs that don't affect the component's public API
13+
- Importing new custom LWCs
14+
- Importing another instance of an existing LWC
1515

16-
# flags.name.summary
16+
To apply any other local changes not listed above, you must deploy them to your org using the `sf project deploy start` command. Then republish your site and restart the server for the Local Dev experience.
1717

18-
Specify the site name for preview.
18+
For more considerations and limitations, see the Lightning Web Components Developer Guide.
1919

20-
# flags.name.description
20+
# flags.name.summary
2121

22-
The site name needs to match the name of a site on the current org. Example: "B2C CodeCept"
22+
Name of the Experience Builder site to preview. It has to match a site name from the current org.
2323

24-
# examples
24+
# flags.target-org.summary
2525

26-
- <%= config.bin %> <%= command.id %> --name MySite
26+
Username or alias of the target org. Not required if the `target-org` configuration variable is already set.
2727

2828
# flags.debug.summary
2929

30-
Debug SSR.
30+
Enable Node Inspector to debug server-side rendering.
3131

32-
# flags.debug.description
33-
34-
Debug Description.
35-
36-
# flags.target-org.summary
32+
# examples
3733

38-
undefined
34+
- Preview the site "Partner Central" from the org "myOrg":
35+
<%= config.bin %> <%= command.id %> --name "Partner Central" --target-org myOrg
36+
- Preview the site "Partner Central" from the org "myOrg" with Node Inspector enabled:
37+
<%= config.bin %> <%= command.id %> --name "Partner Central" --target-org myOrg --debug

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"external": true,
7171
"subtopics": {
7272
"preview": {
73-
"description": "Preview components, applications, and sites locally without deploy."
73+
"description": "Preview applications and sites locally and in real-time, without deploying them."
7474
}
7575
}
7676
}

src/commands/lightning/preview/site.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,13 @@ export default class LightningPreviewSite extends SfCommand<LightningPreviewSite
2727
public static readonly flags = {
2828
name: Flags.string({
2929
summary: messages.getMessage('flags.name.summary'),
30-
description: messages.getMessage('flags.name.description'),
3130
char: 'n',
3231
required: false,
3332
}),
3433
debug: Flags.boolean({
3534
summary: messages.getMessage('flags.debug.summary'),
3635
}),
37-
'target-org': Flags.optionalOrg(),
36+
'target-org': Flags.optionalOrg({ summary: messages.getMessage('flags.target-org.summary') }),
3837
};
3938

4039
public async run(): Promise<LightningPreviewSiteResult> {

0 commit comments

Comments
 (0)