fix(webapp): the [[ menu finds maps, and the preview draws a map embed (#1277) #1278
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/map-embed-link-menu"
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?
Closes #1277.
[[menu:EditorPaneloads the campaign's maps with the existingmapEmbedLoader, once, the first time the menu opens.editorText.acMaps(query, maps)decides what to offer. AfterMap:it offers only maps whose name contains the rest (up to 6), with no "Create" option. Otherwise it offers up to 3 maps whose name starts with what's typed, after the pages.campaignIdtoWikiText, so![[Map: X]]draws the map instead of showing it as a page waiting to be written.1277-map-embed-link-menu.fixed.md.Checked: vitest over
src/pages/wikiandsrc/wiki(512 passed), with new tests foracMaps, for the menu afterMap:and among pages, and for the preview drawing the embed. eslint reports 0 errors.Not checked: not seen in a browser.
🤖 Generated with Claude Code