Skip to content

refactor: rename webapp dev command and plugin to ui-bundle @W-21575874@#41

Merged
garychangsf merged 18 commits intomainfrom
rename-webapp-to-ui-bundle
Mar 31, 2026
Merged

refactor: rename webapp dev command and plugin to ui-bundle @W-21575874@#41
garychangsf merged 18 commits intomainfrom
rename-webapp-to-ui-bundle

Conversation

@deepu-mungamuri94
Copy link
Copy Markdown
Collaborator

Rename sf webapp dev command to sf ui-bundle dev and update plugin identity:

What does this PR do?

  • Rename src/commands/webapp/dev.ts to src/commands/ui-bundle/dev.ts
  • Rename messages/webapp.dev.md to messages/ui-bundle.dev.md
  • Rename schemas/webapp-dev.json to schemas/ui-bundle-dev.json
  • Rename SF_WEBAPP_DEV_GUIDE.md to SF_UI_BUNDLE_DEV_GUIDE.md
  • Rename test/commands/webapp/ to test/commands/ui-bundle/
  • Rename plugin from @salesforce/plugin-app-dev to @salesforce/plugin-ui-bundle-dev
  • Update command-snapshot.json: webapp:dev → ui-bundle:dev
  • Update package.json: topics webapp → ui-bundle, homepage and repository URLs
  • Update webappDiscovery.ts: path segment and folder constant webui → uiBundles
  • Update COMMANDS.md and README.md with ui-bundle command and package references
  • Update src/proxy/ProxyServer.ts with associated changes

What issues does this PR fix or reference?

@W-21575874@

Rename `sf webapp dev` command to `sf ui-bundle dev` and update plugin identity:

- Rename src/commands/webapp/dev.ts to src/commands/ui-bundle/dev.ts
- Rename messages/webapp.dev.md to messages/ui-bundle.dev.md
- Rename schemas/webapp-dev.json to schemas/ui-bundle-dev.json
- Rename SF_WEBAPP_DEV_GUIDE.md to SF_UI_BUNDLE_DEV_GUIDE.md
- Rename test/commands/webapp/ to test/commands/ui-bundle/
- Rename plugin from @salesforce/plugin-app-dev to @salesforce/plugin-ui-bundle-dev
- Update command-snapshot.json: webapp:dev → ui-bundle:dev
- Update package.json: topics webapp → ui-bundle, homepage and repository URLs
- Update webappDiscovery.ts: path segment and folder constant webui → uiBundles
- Update COMMANDS.md and README.md with ui-bundle command and package references
- Update src/proxy/ProxyServer.ts with associated changes

W-21575874

Made-with: Cursor
@deepu-mungamuri94 deepu-mungamuri94 requested a review from a team as a code owner March 27, 2026 08:39
…ports

- Rename dev command, messages, schemas, and configs from webapp to ui-bundle
- Update imports from @salesforce/webapp-experimental to @salesforce/ui-bundle
- Remove ErrorPageRenderer (template inlined upstream)
- Update all test helpers and NUT references

Made-with: Cursor
@deepu-mungamuri94 deepu-mungamuri94 force-pushed the rename-webapp-to-ui-bundle branch from b2e0ca2 to e3c9bf5 Compare March 29, 2026 06:08
deepu-mungamuri94 and others added 12 commits March 29, 2026 11:39
- Replace webui/, webapplication.json, .webapplication-meta.xml references
- Replace app-based example names with bundle equivalents
- Delete SF_WEBAPP_DEV_GUIDE.md (superseded by SF_UI_BUNDLE_DEV_GUIDE.md)
- Fix title, debug log grep pattern, and project structure

Made-with: Cursor
- MyApp → MyBundle in flags.name.description
- myUiBundle → myBundle in command examples

Made-with: Cursor
Switch tsconfig from Node16 to Preserve/Bundler to match how
@salesforce/ui-bundle generates its .d.ts files. The old
@salesforce/webapp-experimental included .js extensions in d.ts imports
(Node16-compatible), but @salesforce/ui-bundle dropped them (Bundler-style),
causing ESLint type resolution failures. Also corrects UIBundleManifest
import casing to match the actual export name.

Made-with: Cursor
Co-authored-by: Brian Buchanan <5377888+bpbuch@users.noreply.github.com>
Replace all webapp/webapplication references with ui-bundle conventions,
update command from sf webapp dev to sf ui-bundle dev, and align
example names to use bundle-style naming (myBundle).

Made-with: Cursor
startViteProxyServer was sending X-Salesforce-WebApp-Proxy but dev.ts
checks X-Salesforce-UiBundle-Proxy, causing the Vite proxy detection
NUT to always fail.

Made-with: Cursor
Update JSDoc and schema to use concise description.
Copy link
Copy Markdown

@binzywu binzywu left a comment

Choose a reason for hiding this comment

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

approved

@garychangsf garychangsf merged commit a200dd6 into main Mar 31, 2026
16 checks passed
@garychangsf garychangsf deleted the rename-webapp-to-ui-bundle branch March 31, 2026 00: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.

5 participants