Embeds, plus one block-action registry behind the / menu and the Insert sheet #471
Open
opened 2026-10-16 04:02:34 +00:00 by kayg
·
2 comments
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
kayg/calternal#471
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
kayg (2026-10-16):
![[Note]]/!@, showing another note (or a part of it) inline. This was in the closed PR #262/#263 (#165)./menu in the editor;Both read ONE shared registry of block actions (everything is a plugin), so a plugin that adds a block shows up in both.
Mockup first. Nothing merges until kayg approves.
Mockup, do not merge. PR #491. Live: https://preview.calternal.cloud/blocks.html#/note/blocks-and-embeds?list=all
Try these (each state has a link):
/menu: https://preview.calternal.cloud/blocks.html#/note/blocks-and-embeds?list=all&slash=1 (or type/on the last line); filtered: &slash=emWhat already existed (survey of the app and the mockup)
apps/web/src/components/InsertSheet.svelte) and the mockup. A private list of 13 tiles (Text, Heading, Subheading, List, Numbered, To-do, Quote, Code, Divider, plus Note link, Table, Image, File marked "soon"). It was not shared with anything else./menu: none in the app. In the mockup a/on an empty line just opened that sheet.##,-,>need no conversion. In the mockup they convert for- [ ]/[],-/*,1.,##,###,>. I added####,---and a code fence, so the shortcuts match the actions.[[,@,#and![[/!@already shared one glass picker (#165, #448);/is a fourth trigger on the same one.The registry
One list (
apps/mockup/src/blocks/), one file per group inplugins/. Each action has an id, label, group, icon, keywords, the markdown it writes, an optional typed shortcut, and either a block to make or a picker to start./and Insert both read it, so a plugin that registers a block shows up in both with no other change (the example plugin proves it). A test inserts every action and checks the file holds exactly the markdown the registry says.##(##), Heading 2###(###), Heading 3####(####), Quote>(>), Code block fence (```), Table (pipe table), Divider---(---), Note box> [!note]-(-), Numbered list1.(1.), Task- [ ]([]), Time-log line- 09:12(the time made)(picker)[Title](<Note.md>)([[), Day link[Today](<2026-10-16.md>)(@), Tag#tag(#)(, andfor one part. It is the link convention with a!, so any markdown app shows a link to the note, and nothing is rewritten on a round trip (the card is a view of that one line; opening and saving the note changes nothing).![[,!@,![]()and/embed. A closed![[Title]]typed by hand becomes the embed, like[[Title]]becomes a link.[[/@start in Link,![[/!@/![]()//embedstart in Embed. Tap it, or press ⌘E (Ctrl E elsewhere), to flip without retyping: the trigger text is rewritten and what you typed stays. The capsule springs on a tap and never animates from the keyboard. No per-row checkbox.Checks
Scripted, Chromium and WebKit, 320/360/375/390/900/1440, light and dark: every action's markdown,
/open/filter/close/insert, keys never animate, sheet insert and close, pickers, switch,![](), cards, no sideways scroll, menu and sheet inside the window. Final run:blocks.spec.ts66 passed, 2 flaky (both passed on retry; page-load timeouts under host load). Chromiumblocks.spec.ts+links.spec.ts: 57 passed, 2 flaky. WebKitblocks.spec.ts: 32 passed.story.spec.tshas 6 failures on the base commit too (not from this branch).1440, light (the

/menu, mode Link, mode Embed, Insert sheet, states, parts of a note)1440 and 900, dark

Phone widths, Chromium, light (320, 360, 375, 390

/menu; embed picker 320, 390; sheet 320 to 390; states 320, 390)Phone widths, Chromium, dark

WebKit, light and dark (Linux WebKit draws the glass without its blur, so text shows through; the iPhone simulator below blurs correctly)


iPhone simulator, iOS 27, Safari (note with cards in light and dark; Insert sheet light and dark)

I could not get the
/menu and picker onto the simulator in a screenshot: the shared simulator kept being switched to other apps while the page was open (the page reported itself hidden), so those are covered by the WebKit runs only. The cards and the sheet are verified on the simulator.Questions for kayg (each with my recommendation)
##because the title is the#line. Keep the menu names "Heading 1/2/3"? Recommend yes (people think in 1, 2, 3)./. It writes the time it was made. Recommend keep it, but only offered in the Journal (hidden elsewhere)./. One "Photo or file" row that opens the file picker. Recommend yes, and a later "Take a photo" on phones.Backups of the preview site, before each deploy:
site.bak-471-202610160931,-471b-202610161007,-471c-202610161026,-471d-202610161110,-471e-202610161219,-471f-202610161246. The staging disk stays at 22%. The files on preview match the build (SHA-256, all 38 files). The other mockups were not touched.kayg's iPhone round, fixed. PR #504 (branch
issue/471-blocks-mockup-3, stacked on #491; mockup, do not merge). Live: https://preview.calternal.cloud/blocks.html#/note/blocks-and-embeds?list=all (&slash=1,&embed-pick=da,&sheet=insert)/menu and the picker use the shared dense glass. On your phone the blur was not showing and the 0.56 tint let a card read through, so I measured the worst case: pure black behind in light, pure white in dark. Text came to 4.4:1 and 3.1:1, and the quiet ink (hints, group names, icons) to 2.9:1 and 2.3:1. The shared dense step is now 0.78 in light and dark (one change inpackages/ui/src/styles/tokens.css; every dense surface follows, so please look at the sheets and menus too). At 0.78 the lowest numbers are: text 6.8:1, quiet ink 5.0:1 (dark, over white) and 5.9:1 (light, over black). A test reads the computed colours and fails below 4.5:1 for text and 3:1 for icons. No local copy of the glass tokens exists in the blocks code.overflow-y: auto,overscroll-behavior: contain,touch-action: pan-y, native momentum). A touch or pen chooses a row only on a release that moved 8 px or less (a scroll cancels the pointer); a mouse still chooses on press. Tests: the CSS, a drag that moves more than 8 px does not choose, a tap does.visualViewportcode from search r5 (lib/fit/viewport.svelte.ts, copied unchanged). Its height is capped to the room between the caret line and the keyboard top (and the bottom bar when there is no keyboard); with fewer than three rows of room below the line it opens above the line; it re-fits as the keyboard appears, changes height or goes; it never goes past what can be seen. I did not usehug.ts: it springs a clipped panel, and this menu must not animate from the keyboard. This also answers question 5 of my earlier report. Tested in Chromium and WebKit at 390 with an emulatedvisualViewport(keyboard 336 px, then 420, then none).<body>(top layer, z-index 2000), as a shell with the glass as a backplate and a separate scroller for the rows, so the glass stays whole while rows scroll and no card can paint over it. A test scrolls the menu over an embed card and askselementFromPointat every visible row: each hit is inside the menu.Checks: Chromium and WebKit,
blocks.spec.ts,blocks-phone.spec.ts,links.spec.ts: all passed apart from page-load timeouts under host load, which passed on retry (WebKitblocks-phone: 8 passed, 1 flaky). Run with--workers=1in a slot.Real iPhone simulator, iOS 27 Safari: the

/menu in light and dark, and the Link | Embed picker, with the menu dense, in the top layer, above the bottom bar. The simulator has a hardware keyboard, so the soft keyboard does not show there: the keyboard behaviour is covered by the emulatedvisualViewporttests above, and still needs your eyes on the phone.Chromium 390, the keyboard emulated and the menu flipped above the line; the caret in a chip; WebKit 390

1440, the menu over an embed card (Chromium left, WebKit right; Linux WebKit draws no blur, so the card ghosts through the 78 % tint)

Backup before the deploy:
site.bak-471g-202610161824; the 38 files on preview match the build; disk 23 %.Note for the chrome agent: the registry,
/menu, picker (links/InlinePicker.svelte,picker.svelte.ts,chip-caret.ts), embeds (blocks/NoteEmbed.svelte) and the Insert sheet are self-contained;lib/fit/viewport.svelte.tsis the same file as onissue/399-search-r5. The earlier links commits (#448) still carryapps/mockup/src/links/contrast.jsonandscripts/links-contrast.mjs, a generated measurement table: that is not from this round, and I left it because the links page imports it.kayg referenced this issue2026-11-05 23:21:12 +00:00