Skip to content

refactor: rename WebApplication artifacts from webapplication to uibundle#1725

Open
garychangsf wants to merge 6 commits intoforcedotcom:mainfrom
garychangsf:rename-webapplications-to-uiBundles
Open

refactor: rename WebApplication artifacts from webapplication to uibundle#1725
garychangsf wants to merge 6 commits intoforcedotcom:mainfrom
garychangsf:rename-webapplications-to-uiBundles

Conversation

@garychangsf
Copy link
Copy Markdown

Summary

  • Renames the on-disk directory from webapplications to uiBundles
  • Renames the suffix and type name from webapplication to uibundle (e.g., webapplication.jsonuibundle.json, .webapplication-meta.xml.uibundle-meta.xml)
  • Updates all validation messages, source adapters, metadata registry, file path generator, tests, and test fixtures to reflect the new naming

Test plan

  • Unit tests pass (yarn test)
  • Snapshot tests updated and passing
  • NUT (non-unit) tests for web applications deploy and local operations pass

deepu-mungamuri94 and others added 3 commits March 27, 2026 19:54
…s to uiBundles @W-21674925@

Aligns the SDR metadata registry and all test fixtures with the recent
rename in plugin-templates (webapp → ui-bundle), where the user-facing
folder constant changed from `webapplications` to `uiBundles`.

Changes:
- metadataRegistry.json: update `directoryName` and `directoryNames` map
  key for the webapplication type from "webapplications" to "uiBundles"
- Rename test fixture directories: originalMdapi, snapshot expected
  outputs, and NUT testProj source directories
- Update hardcoded "webapplications" path strings in test TypeScript
  files: filePathGenerator.test.ts, webApplicationValidation.test.ts,
  webApplications.nut.ts, webApplicationsDeploy.nut.ts,
  metadataApiDeploy.test.ts

Intentionally left unchanged:
- Registry id/name/suffix (webapplication / WebApplication) — Salesforce API names
- Adapter strategy string, class names, TypeScript file names — internal SDR identifiers
- File suffixes (.webapplication-meta.xml, webapplication.json) — Salesforce API surface
- Metadata API server-response fileName strings in deploy test (server-side concern)

Made-with: Cursor
…ion to uibundle

- Registry suffix: webapplication → uibundle (.uibundle-meta.xml)
- Registry name: WebApplication → UIBundle (used in package.xml)
- Registry suffixes map: webapplication → uibundle
- Updated source adapter, file path generator, and deploy message handling
- Updated all test fixtures and assertions to match new suffix and type name
…undle.json

Update all remaining references from webapplication to uibundle across
validation messages, source adapters, tests, and test fixtures.
@garychangsf garychangsf requested a review from a team as a code owner March 28, 2026 21:19
@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! It looks like @garychangsf is an internal user so signing the CLA is not required. However, we need to confirm this.

# webapp_empty_file

webapplication.json must not be empty (%s).
uibundle.json must not be empty (%s).
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Shouldn't this be ui-bundle.json?

Suggested change
uibundle.json must not be empty (%s).
ui-bundle.json must not be empty (%s).

const consumedByWebApp =
type === 'WebApplicationResource' &&
fr.some((c) => c.type === 'WebApplication' && fullName.startsWith(`${c.fullName}/`));
(type === 'WebApplicationResource' || type === 'UIBundleResource') &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Can we remove WebApplicationResource or this is needed for easier rollout?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants