Skip to content
Source
Sign inSign up
fuko/trytanstackdb.com

Show which Notes controls are not implemented #100006 (GitHub #56)

Mergedfukomerged 3 commits intov2 frommark-unimplemented-controlsmerged by fuko View on GitHub

fukocommented

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

    1. tanstack-source pushededcd955

    2. fuko turned on merge when ready (merge)

    3. fuko merged this7dbe028

    4. 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.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

      Run configuration

      • Source mode: Auto
      • Repository: Unavailable
      • Branch: Unavailable
      • File: No configuration file from this repository applied
      • Commit: Unavailable
      • Layers: defaults
      • Review profile: CHILL
      • Plan: Advanced
      • Run ID: 94788d71-26b8-4762-a6ea-c7eb2ba75525

      You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

      Use the checkbox below for a quick retry:

      • Trigger review
      • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

      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

    5. fuko merged this7dbe028

    6. fuko closed this

Sign in to join this conversation.