feat(den-web): preview organization prompt cards while authoring them - #3114
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
Validation: real app, isolated Linux sandbox, matched A/BAll nine branches of this series were merged into one integration branch (
Step 4 fails identically on clean Validated frames: A real regression this caught, in this seriesBooting the real app initially failed with:
Static verification on the merged resultHonest gaps
|
This reverts commit 9a40556.
Problem
Administrators author the organization prompt cards that members see on a new session completely blind. There is no preview, and the field mapping is genuinely counter-intuitive:
The only way to check your work today is to save and ask a member to reload. An admin about to author department-specific prompt sets is guessing.
Change
Dashboard-only. In
desktop-policy-editor-screen.tsx:Organization prompt 1|2|3) when a description is blank.Follows the existing preview precedent in
brand-appearance-screen.tsx(same side-by-side grid, bordered panel, uppercase "Preview" label) and uses the existingDen*primitives. No new component library.Constraints honored
git diff --stat origin/dev...HEAD -- apps/is empty.apps/appintoee/apps/den-web; the card presentation is reimplemented locally with a comment pointing attask-suggestions.tsxas the source of truth so drift is detectable.@heroicons/react.Verification
New unit test covers the resolver: description becomes title, blank description falls back to
Organization prompt N, prompt becomes body.