alpha
Login
or
Join now
jeremy.herve.bzh
/
skypress
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
A calm place to write long-form, and publish it to the open social web.
skypress.blog/
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
skypress
/
src
/
lib
/
editor
/
at
add/eurosky-plc-fallback
6 files
Jeremy Herve
Fix @-mention autocomplete and quiet the post-length counter
15d ago
bc64e9c3
edit-link.test.ts
Fix @-mention autocomplete and quiet the post-length counter Two issues surfaced by an in-browser smoke test (publish from @jeherve.com mentioning @jeremy.herve.bzh): 1. The @ autocomplete never ran ours — every keystroke hit WordPress's built-in user completer (GET /wp/v2/users → 404). Both completers claim the '@' trigger and the block editor resolves a trigger to the FIRST matching completer, so appending ours left it shadowed. Replace every '@'-triggered completer with ours instead of appending (extracted as replaceAtMentionCompleter). 2. Selecting an option inserted nothing: getOptionCompletion returned { action: 'replace', value }, but 'replace' swaps the whole block (the slash- completer contract) and dropped the inline anchor. Return the anchor element directly so it inserts at the caret in place of the typed @query — the core link-completer pattern. Also: the live grapheme counter showed 'Bluesky post: N/300' at all times; only warn when actually over the limit (hidden otherwise). Verified end to end in the browser: autocomplete resolves jeremy.herve.bzh from public.api.bsky.app, inserts the class+href+data-did anchor, the confirm dialog discloses the notify target, and the published post carries the #mention facet (correct DID + byte offsets) plus the document's flat mentions interop list.
2 weeks ago
edit-link.ts
Add edit-link helpers for dashboard→editor editing
2 weeks ago
mention-autocompleter.test.ts
Fix @-mention autocomplete and quiet the post-length counter Two issues surfaced by an in-browser smoke test (publish from @jeherve.com mentioning @jeremy.herve.bzh): 1. The @ autocomplete never ran ours — every keystroke hit WordPress's built-in user completer (GET /wp/v2/users → 404). Both completers claim the '@' trigger and the block editor resolves a trigger to the FIRST matching completer, so appending ours left it shadowed. Replace every '@'-triggered completer with ours instead of appending (extracted as replaceAtMentionCompleter). 2. Selecting an option inserted nothing: getOptionCompletion returned { action: 'replace', value }, but 'replace' swaps the whole block (the slash- completer contract) and dropped the inline anchor. Return the anchor element directly so it inserts at the caret in place of the typed @query — the core link-completer pattern. Also: the live grapheme counter showed 'Bluesky post: N/300' at all times; only warn when actually over the limit (hidden otherwise). Verified end to end in the browser: autocomplete resolves jeremy.herve.bzh from public.api.bsky.app, inserts the class+href+data-did anchor, the confirm dialog discloses the notify target, and the published post carries the #mention facet (correct DID + byte offsets) plus the document's flat mentions interop list.
2 weeks ago
mention-autocompleter.ts
Fix @-mention autocomplete and quiet the post-length counter Two issues surfaced by an in-browser smoke test (publish from @jeherve.com mentioning @jeremy.herve.bzh): 1. The @ autocomplete never ran ours — every keystroke hit WordPress's built-in user completer (GET /wp/v2/users → 404). Both completers claim the '@' trigger and the block editor resolves a trigger to the FIRST matching completer, so appending ours left it shadowed. Replace every '@'-triggered completer with ours instead of appending (extracted as replaceAtMentionCompleter). 2. Selecting an option inserted nothing: getOptionCompletion returned { action: 'replace', value }, but 'replace' swaps the whole block (the slash- completer contract) and dropped the inline anchor. Return the anchor element directly so it inserts at the caret in place of the typed @query — the core link-completer pattern. Also: the live grapheme counter showed 'Bluesky post: N/300' at all times; only warn when actually over the limit (hidden otherwise). Verified end to end in the browser: autocomplete resolves jeremy.herve.bzh from public.api.bsky.app, inserts the class+href+data-did anchor, the confirm dialog discloses the notify target, and the published post carries the #mention facet (correct DID + byte offsets) plus the document's flat mentions interop list.
2 weeks ago
mention-format.test.ts
Lock mention class in test; trim redundant cast
2 weeks ago
mention-format.ts
Register skypress/mention rich-text format
2 weeks ago