adilallo/feature/PageTemplateImplementations #42
Reference in New Issue
Block a user
Delete Branch "adilallo/feature/PageTemplateImplementations"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create rule flow: page templates, navigation, and design system support
Overview
This branch implements the CommunityRule “create rule” full-screen flow end-to-end: ordered step routes under
/create/*, shared layout with CreateFlowTopNav / CreateFlowFooter, CreateFlowContext for draft state, and URL-driven navigation viauseCreateFlowNavigationandflowSteps. It also lands supporting design-system components (HeaderLockup, Card, Upload, CardStack, CommunityRuleDocument, InfoMessageBox, DecisionMakingSidebar, Scrollbar, Tag, etc.), Figma-aligned prop normalization updates, MultiSelect add-button styling and Custom chip flow for “add” actions, communication copy inmessages/en/create, and logo/asset restructuring. Marketing and dev preview surfaces are updated where the flow or logo is exposed.Changes
Create flow
[step]validation againstFLOW_STEP_ORDER.confirm-stakeholdersimmediately beforefinal-review.CreateFlowContext(draft persistence helpers), navigation hook,flowStepshelpers.Components and tokens
lib/propNormalization: expanded normalizers for form controls and Figma PascalCase compatibility.Integration and assets
messages/en: create communication strings wired through app context where used.Tests & Storybook (this PR)
flowStepsunit tests; InfoMessageBox and DecisionMakingSidebar at Tag-level depth; TypeScript/test fixes (WebVitals dynamic import cast, vitestReactsetup,BlogPosttest fixtures, unusedReactimports).Pages/Create Flow/*for each static step (mirror Review fullscreen + Desktop/Mobile); Completed uses teal-aligned decorator; Components/Utility stories for InfoMessageBox and DecisionMakingSidebar. Dynamic[step]intentionally omitted (no existing Storybook +use(params)pattern).Housekeeping
Screenshots
How to Test
npm installif needed, thennpm run dev./create/informational).npm run lint,npm run test,npm run storybook:build,npm run build.Notes
maininto this branch if it has diverged.