feat(notes): inline date/reminder mention (/date)#568
Merged
Conversation
…d note_date reminder
# Conflicts: # apps/desktop/src/renderer/src/components/note/content-area/ContentArea.tsx
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
React Doctor found 37 issues in 6 files.
Top Findings
Generated by React Doctor. Questions? Contact founders@million.dev. |
…ills Date pills now render relative day labels (Today/Tomorrow/This Friday/Last Monday/...) with absolute fallback, honoring week-start and clock-format settings pushed in via useDateMentionPrefs. Swap the emoji icons for a dimmed '@' lead plus inline calendar/alarm SVGs that inherit the pill's blue, and style the whole token as one hover unit.
…r detail The reminder detail action now archives via useUndoableAction (toast + Undo) instead of marking viewed, deriving isViewed straight from item.viewedAt and dropping the local-state shim. Rename the i18n key markViewed -> archive and remove the leftover phaseF middot entity in favor of a literal middot.
…pand RemindOffset options
…rt new RemindOffsets
| * clock so the suite is stable on any day. | ||
| */ | ||
|
|
||
| const MOD = process.platform === 'darwin' ? 'Meta' : 'Control' |
…minder routing - date-suggestions: support 'at' connector + mid-typed colon; add isTimeInProgress to hold the mention active through ambiguous time-entry moments - natural-date-parser: parsing refinements (+ tests) - date-mention ghost/plugin/popover, mention-menu, editor setup hooks: wiring - use-reminder-notifications: route note_date reminders to the pill anchor - calendar projection: exclude note_date reminders from generic chips (Phase 2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Notion-style inline date/reminder in BlockNote notes. Type
/dateto insert a date pill (📅 Jun 20 🔔); the date always carries calendar value and a reminder is opt-in (lead: at / 5m / 1h / 1d). When a reminder fires it lands in the Inbox; clicking the item opens the note and scrolls to the exact pill.Architecture (Approach A): the inline
dateMentionnode — serialized to a markdown token((date:<base64url-json>))— is the single source of truth (syncs via the note CRDT). A main-process bridge derives localnote_datereminder rows from those tokens; the existing reminder engine fires them. Reminders are not a synced type, so deriving per-device is consistent with the current design.Spec:
docs/superpowers/specs/2026-06-13-inline-date-reminder-design.mdPlan:
docs/superpowers/plans/2026-06-13-inline-date-reminder.mdWhat's included
computeRemindAt(@memry/shared/date-mention)note_datereminder target type +anchor_idcolumn/migration;anchorIdthreaded through contracts/app-core/preloaddateMentioninline content spec + load-time hydration +/dateslash item + picker popover + click-to-editnotes-crud(local/CLI path) andcrdt-writeback(sync path)anchorIdcarried fire → Inbox → nav → scroll-to-pillTest plan
/date→ set reminder → fires into Inbox → click scrolls to pill((date:…))) after reload in sync mode (CRDT-seed hydration; shared with wikiLink/linkMention — confirm parity)Follow-ups (before marking ready)
MEMRY_DOCS_IMPACT_SKIP=1(draft); authorapps/docs/srccoverage at ready-timenote_datedates as read-only Calendar entries (separate plan)/date tomorrow 9am), recurring reminders