@salesforce/ui-bundle-template-app-react-sample-b2e 10.17.0 → 10.18.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -39,6 +39,19 @@ nx run propertymanagementapp:build
39
39
  cd dist/force-app/main/default/uiBundles/propertymanagementapp && npm install && npm test
40
40
  ```
41
41
 
42
+ ### Accessibility tests
43
+
44
+ Automated accessibility tests (Vitest + [vitest-axe](https://github.com/chaance/vitest-axe)) live in [`a11y-tests/`](a11y-tests/) — a standalone package **outside** the shipped UI Bundle, so its dependencies and specs never ship to `dist/`. The specs import the components under test from the UI Bundle source via an `@` alias, and assert zero axe violations (no rule exclusions).
45
+
46
+ ```bash
47
+ cd a11y-tests
48
+ npm install
49
+ npm test # vitest run
50
+ npm run test:a11y # verbose, *.a11y.test.tsx only
51
+ ```
52
+
53
+ These tests run against the UI Bundle source directly, so no build step is required.
54
+
42
55
  ### Clean
43
56
 
44
57
  ```bash
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [10.18.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.1...v10.18.2) (2026-06-19)
7
+
8
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
9
+
10
+
11
+
12
+
13
+
14
+ ## [10.18.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.0...v10.18.1) (2026-06-19)
15
+
16
+
17
+ ### Bug Fixes
18
+
19
+ * **template:** @W-23043727@ org-setup runtime bugs (ApiEnabled + global config) ([#646](https://github.com/salesforce-experience-platform-emu/webapps/issues/646)) ([293a940](https://github.com/salesforce-experience-platform-emu/webapps/commit/293a940ec46ecc863c1446dfcb418b0fee5dc46b))
20
+
21
+
22
+
23
+ ## [10.18.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.17.0...v10.18.0) (2026-06-19)
24
+
25
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
26
+
27
+
28
+
29
+
30
+
6
31
  ## [10.17.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.16.0...v10.17.0) (2026-06-18)
7
32
 
8
33
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
@@ -706,4 +706,8 @@
706
706
  <tab>Tenant__c</tab>
707
707
  <visibility>Visible</visibility>
708
708
  </tabSettings>
709
+ <userPermissions>
710
+ <enabled>true</enabled>
711
+ <name>ApiEnabled</name>
712
+ </userPermissions>
709
713
  </PermissionSet>
@@ -134,4 +134,8 @@
134
134
  <field>Tenant__c.Status__c</field>
135
135
  <readable>true</readable>
136
136
  </fieldPermissions>
137
+ <userPermissions>
138
+ <enabled>true</enabled>
139
+ <name>ApiEnabled</name>
140
+ </userPermissions>
137
141
  </PermissionSet>
@@ -6,4 +6,8 @@
6
6
  </applicationVisibilities>
7
7
  <hasActivationRequired>false</hasActivationRequired>
8
8
  <label>propertymanagementapp Access</label>
9
+ <userPermissions>
10
+ <enabled>true</enabled>
11
+ <name>ApiEnabled</name>
12
+ </userPermissions>
9
13
  </PermissionSet>
@@ -18,8 +18,8 @@
18
18
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
19
19
  },
20
20
  "dependencies": {
21
- "@salesforce/platform-sdk": "^10.17.0",
22
- "@salesforce/ui-bundle": "^10.17.0",
21
+ "@salesforce/platform-sdk": "^10.18.2",
22
+ "@salesforce/ui-bundle": "^10.18.2",
23
23
  "@tailwindcss/vite": "^4.1.17",
24
24
  "class-variance-authority": "^0.7.1",
25
25
  "clsx": "^2.1.1",
@@ -46,8 +46,8 @@
46
46
  "@graphql-eslint/eslint-plugin": "^4.1.0",
47
47
  "@graphql-tools/utils": "^11.0.0",
48
48
  "@playwright/test": "^1.49.0",
49
- "@salesforce/graphiti": "^10.17.0",
50
- "@salesforce/vite-plugin-ui-bundle": "^10.17.0",
49
+ "@salesforce/graphiti": "^10.18.2",
50
+ "@salesforce/vite-plugin-ui-bundle": "^10.18.2",
51
51
  "@testing-library/jest-dom": "^6.6.3",
52
52
  "@testing-library/react": "^16.1.0",
53
53
  "@testing-library/user-event": "^14.5.2",
@@ -15,13 +15,16 @@ import { buildClientSchema, getIntrospectionQuery, printSchema } from 'graphql';
15
15
  import { pruneSchema } from '@graphql-tools/utils';
16
16
 
17
17
  const DEFAULT_SCHEMA_PATH = '../../../../../schema.graphql';
18
+ const TARGET_ORG = process.env.SF_TARGET_ORG || undefined;
18
19
 
19
20
  async function executeSalesforceGraphQLQuery(query, variables, operationName) {
20
- const {
21
- rawInstanceUrl: instanceUrl,
22
- apiVersion,
23
- accessToken,
24
- } = await getOrgInfo();
21
+ const orgInfo = await getOrgInfo(TARGET_ORG);
22
+ if (!orgInfo) {
23
+ throw new Error(
24
+ 'Could not resolve a Salesforce org. Set SF_TARGET_ORG or a default org.'
25
+ );
26
+ }
27
+ const { rawInstanceUrl: instanceUrl, apiVersion, accessToken } = orgInfo;
25
28
 
26
29
  const targetUrl = `${instanceUrl}/services/data/v${apiVersion}/graphql`;
27
30
 
@@ -31,7 +31,10 @@ export const StatCard: React.FC<StatCardProps> = ({
31
31
  onClick={onClick}
32
32
  >
33
33
  {/* Three-dot menu */}
34
- <button className="absolute top-4 right-4 p-1 hover:bg-gray-100 rounded-md transition-colors">
34
+ <button
35
+ className="absolute top-4 right-4 p-1 hover:bg-gray-100 rounded-md transition-colors"
36
+ aria-label="More options"
37
+ >
35
38
  <MoreVertical className="w-4 h-4 text-gray-400" />
36
39
  </button>
37
40
 
@@ -49,7 +49,7 @@ export const VerticalNav: React.FC<VerticalNavProps> = ({ isOpen = false, onClos
49
49
  }`}
50
50
  title={item.label}
51
51
  >
52
- <img src={item.icon} alt={item.label} className="w-6 h-6" />
52
+ <img src={item.icon} alt="" className="w-6 h-6" />
53
53
  <span className="text-xs font-medium text-center">{item.label}</span>
54
54
  </Link>
55
55
  ));
@@ -343,7 +343,7 @@ function MaintenanceRequestSearchTable({
343
343
  )}
344
344
  </div>
345
345
  <div className="flex-1 min-w-0">
346
- <h3 className="font-semibold text-gray-900 truncate mb-1">{description}</h3>
346
+ <p className="font-semibold text-gray-900 truncate mb-1">{description}</p>
347
347
  <p className="text-sm text-gray-500">{requestName}</p>
348
348
  </div>
349
349
  </div>
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "10.17.0",
3
+ "version": "10.18.2",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
9
- "version": "10.17.0",
9
+ "version": "10.18.2",
10
10
  "license": "SEE LICENSE IN LICENSE.txt",
11
11
  "devDependencies": {
12
12
  "@lwc/eslint-plugin-lwc": "^3.3.0",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
3
- "version": "10.17.0",
3
+ "version": "10.18.2",
4
4
  "description": "Base SFDX project template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "publishConfig": {
@@ -773,6 +773,7 @@ function run(name, cmd, args, opts = {}) {
773
773
  cwd,
774
774
  stdio: 'inherit',
775
775
  shell: true,
776
+ ...(opts.env && { env: opts.env }),
776
777
  ...(opts.timeout && { timeout: opts.timeout }),
777
778
  });
778
779
  if (result.status !== 0 && !optional) {
@@ -1140,8 +1141,10 @@ async function main() {
1140
1141
 
1141
1142
  if (!skipGraphql) {
1142
1143
  run('UI Bundle npm install', 'npm', ['install'], { cwd: uiBundleDir });
1143
- run('Set default org for schema', 'sf', ['config', 'set', 'target-org', targetOrg, '--global']);
1144
- run('GraphQL schema (introspect)', 'npm', ['run', 'graphql:schema'], { cwd: uiBundleDir });
1144
+ run('GraphQL schema (introspect)', 'npm', ['run', 'graphql:schema'], {
1145
+ cwd: uiBundleDir,
1146
+ env: { ...process.env, SF_TARGET_ORG: targetOrg },
1147
+ });
1145
1148
  run('GraphQL codegen', 'npm', ['run', 'graphql:codegen'], { cwd: uiBundleDir });
1146
1149
  run('UI Bundle build (post-codegen)', 'npm', ['run', 'build'], { cwd: uiBundleDir });
1147
1150
  } else if (!skipUIBundleBuild && skipDeploy) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-app-react-sample-b2e",
3
- "version": "10.17.0",
3
+ "version": "10.18.2",
4
4
  "description": "Salesforce sample property rental React app",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -16,7 +16,7 @@
16
16
  "clean": "rm -rf dist"
17
17
  },
18
18
  "dependencies": {
19
- "@salesforce/ui-bundle": "^10.17.0",
19
+ "@salesforce/ui-bundle": "^10.18.2",
20
20
  "sonner": "^1.7.0"
21
21
  },
22
22
  "devDependencies": {