Stacked on #100005.
Controls of features the clone doesn't have now look unavailable: a not-allowed cursor and a shadcn tooltip saying "Not implemented". Clicking them does nothing.
Covered#
- macOS: "View options" (•••) above the list; Format, Table, Attach file, Markup, Add link; Collaborate, Share, Search (button and field); the same items in the "»" overflow menu, where a click leaves the menu open.
- iOS: Share and More on the note list; Share, Attach, Markup in the editor; New folder; the search field.
How#
src/components/notes/not-implemented.tsx wraps a control in the tooltip. MacCircleButton, MacPillButton and GlassPillButton take a notImplemented prop.
- Those controls are
aria-disabled, not disabled: disabled elements get no pointer events, so the tooltip would never open. Screen readers still hear them as unavailable.
- Their
title is dropped (no double tooltip), they lose the hover color, and the search fields are read-only.
- Buttons that are only disabled for now (New note, Checklist, Note actions without a note) get the not-allowed cursor, without a tooltip.
- Adds the shadcn
tooltip component. Its CLI also added an unrelated cn npm package; that was left out.
Verified#
vp check, vp test (193 tests), vp build pass.
- In the built app (Playwright, 1600 and 1100 px wide): every unbuilt control shows
cursor: not-allowed and the tooltip; New note, Checklist and "»" keep the normal cursor and no tooltip; clicking an unbuilt overflow item keeps the menu open.
🤖 Generated with Claude Code
Important
Review skipped#
Auto reviews are disabled on base/target branches other than the default branch.
Please check the settings in the CodeRabbit UI or the
.coderabbit.yamlfile in this repository. To trigger a single review, invoke the@coderabbitai reviewcommand.94788d71-26b8-4762-a6ea-c7eb2ba75525You can disable this status message by setting the
reviews.review_statustofalsein the CodeRabbit configuration file.Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share