fix: align editor UI with design spec (#64)#65
Conversation
- Callout emoji: text-base → text-lg (text-base not in typography scale) - Drag feedback: add scale(1.02) and shadow-lg per drag-and-drop spec - Drag handle: remove transition-opacity for instant hover per spec - Add regression tests for design spec compliance Co-authored-by: Ona <no-reply@ona.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Reviewed — all three design spec violations from #64 are correctly addressed:
Regression tests are well-structured — source-level assertions are pragmatic given the DOM manipulation approach of these plugins. No issues found. Merging. |
|
Review: ✅ LGTM All three design spec violations from #64 are correctly fixed:
Tests are pragmatic — source-level pattern checks for DOM-manipulating plugins that aren't easily unit-testable. All 6 assertions cover the specific violations. Merging. |
|
✅ Post-merge verification passed. Routes tested:
Skipped: none — all routes responded successfully. |
|
✅ UI verification passed — design spec compliance confirmed. Static analysis (3 changes checked against
Visual verification (Playwright screenshots of editor page):
|
Closes #64
What
PR #59 introduced editor block types (callouts, drag-and-drop, collapsible blocks) with three design spec violations: the callout emoji used
text-base(not in the typography scale), the drag feedback was missingscale-[1.02]andshadow-lg, and the drag handle used a 100ms opacity transition instead of instant show/hide.How
text-basetotext-lg(allowed in the typography scale for decorative/heading-level elements).transform: scale(1.02)and theshadow-lgbox-shadow to both the drag image clone and the original element during drag, with cleanup on drag end.transition-opacity duration-100from the drag handle so it appears/disappears instantly per the hover states spec.Testing
Added
design-spec-compliance.test.tswith 6 regression tests that verify:text-baseand uses an allowed typography sizescale(1.02)and shadow-lg equivalentAll tests pass:
pnpm lint && pnpm typecheck && pnpm test(47 tests, 0 failures).