Skip to content

UI quickstart improvements#13

Merged
ksroda-sa merged 4 commits into
mainfrom
feat/AUT-13537-quickstart-improvements
Apr 15, 2026
Merged

UI quickstart improvements#13
ksroda-sa merged 4 commits into
mainfrom
feat/AUT-13537-quickstart-improvements

Conversation

@ksroda-sa

@ksroda-sa ksroda-sa commented Apr 14, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Remove VITE_ prefix from env vars — users configure plain ISSUER_URL, CLIENT_ID, etc. in .env
  • Vite config uses loadEnv + define to explicitly expose only the 5 required env vars to the browser (no security risk)
  • Clean up placeholder-map.yaml — remove unused process.env.REACT_APP_* and process.env.SA_* patterns
  • Add run_command field to manifest and snippet extraction so ciam-core knows how to run each sample
  • Fix tsconfig.json in scripts to include Node.js types

🤖 Generated with Claude Code

- Remove VITE_ prefix from env vars for cleaner user experience
- Use Vite define + loadEnv to explicitly expose unprefixed env vars
- Clean up placeholder-map.yaml (remove unused process.env patterns)
- Add run_command field to manifest and snippet extraction
- Fix tsconfig types for Node.js in scripts

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ksroda-sa ksroda-sa changed the title UI quickstart improvements (AUT-13537) UI quickstart improvements Apr 14, 2026
@ksroda-sa ksroda-sa requested a review from Copilot April 14, 2026 12:10

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR improves the Quickstart React UI sample configuration and snippet metadata so downstream tooling (ciam-core/admin Quickstart UI) can run samples and render extracted snippets with the correct environment-variable placeholders.

Changes:

  • Add run_command to scenario manifests and propagate it into snippets.json via extraction/aggregation scripts.
  • Switch the React Vite sample from VITE_* env vars to plain ISSUER_URL, CLIENT_ID, etc., explicitly exposing only the required variables to the client.
  • Update placeholder mapping to match the new import.meta.env.* patterns and adjust scripts TS config to include Node types.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
snippets.json Adds run_command field to the emitted snippet metadata.
snippet-manifest.yaml Adds run_command to the aggregated scenario manifest.
scripts/tsconfig.json Includes Node.js types for script compilation.
scripts/extract-snippets.ts Extends snippet extraction to include optional run_command from manifests.
scripts/aggregate-manifests.ts Extends scenario manifest typing to include optional run_command.
samples/react/manifest.yaml Adds per-scenario run_command for React sample.
samples/react/login-pkce/vite.config.ts Loads non-VITE_ env vars and defines a safe, explicit client exposure list.
samples/react/login-pkce/src/App.tsx Updates env var reads to import.meta.env.ISSUER_URL, etc.
samples/react/login-pkce/.env.example Updates example env file to remove VITE_ prefixes.
placeholder-map.yaml Updates placeholder patterns to match new env var access and removes unused patterns.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread scripts/extract-snippets.ts Outdated
Comment thread samples/react/login-pkce/vite.config.ts
ksroda-sa and others added 2 commits April 14, 2026 14:19
- Extract run_command to local variable to avoid redundant lookup
- Add validation for missing env vars in vite.config.ts with clear error

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
CI has no .env file. Validate on serve only and default to empty
strings during build so CI passes.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ksroda-sa ksroda-sa marked this pull request as ready for review April 14, 2026 12:24
@ksroda-sa ksroda-sa merged commit 2a9524c into main Apr 15, 2026
5 checks passed
@ksroda-sa ksroda-sa deleted the feat/AUT-13537-quickstart-improvements branch April 15, 2026 07:01
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