Skip to content

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

Open
deepu-mungamuri94 wants to merge 14 commits intomainfrom
rename-webapp-to-ui-bundle
Open

refactor: rename webapp dev command and plugin to ui-bundle @W-21575874@#41
deepu-mungamuri94 wants to merge 14 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
.env.template Outdated
# Option A: AUTH_URL (simplest — recommended for getting started)
# 1. sf org login web --alias nut-org
# 2. sf org display -o nut-org --json | jq -r .result.sfdxAuthUrl
# 2. sf org display -o nut-org --verbose --json | jq -r .result.sfdxAuthUrl
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is verbose needed here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Yes. Ideally it should not, somehow its not working.

Screenshot 2026-03-29 at 1 17 17 PM

…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
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.

2 participants