Skip to content

feat(settings): rework alias system with preset packs + banner gear icon#52

Open
Kunall7890 wants to merge 2 commits into
MarkAStevens04:mainfrom
Kunall7890:feat/preset-alias-packs
Open

feat(settings): rework alias system with preset packs + banner gear icon#52
Kunall7890 wants to merge 2 commits into
MarkAStevens04:mainfrom
Kunall7890:feat/preset-alias-packs

Conversation

@Kunall7890

Copy link
Copy Markdown
Contributor

What this PR does

Adds a preset alias/terminology system so users can re-label core UI terms (Molecule, Enzyme, Reaction, Simulation) to match their domain.

New files

  • src/react-app/config/aliasPacks.ts - four built-in packs: Biochemistry (default), Chemistry, Physics, Generic
  • src/react-app/stores/aliasStore.ts - Zustand store exposing getTerm() for O(1) alias lookups
  • src/react-app/components/AliasSettings.tsx - settings panel with selectable pack cards

Changed files

  • App.tsx - added Dialog + GearIcon imports, wired useAliasStore, replaced hardcoded button labels with getTerm('molecule') / getTerm('protein'), added gear-icon-triggered settings dialog to Banner
  • radix.css - added dark-mode CSS variables for [data-radix-dialog-content]

How to test

  1. Click the gear icon in the banner
  2. Pick a terminology pack (e.g. Chemistry)
  3. The 'Add Molecule' / 'Add Enzyme' buttons update instantly

Build verification

npx tsc --noEmit passes with zero errors.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
cloudflare-kinetics-editor 4400214 Commit Preview URL

Branch Preview URL
Jun 11 2026, 10:48 PM

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.

1 participant