Skip to content

feat(web): map suggestions to their source tokenizations 🚂#15767

Draft
jahorton wants to merge 1 commit intorefactor/web/create-default-keepfrom
feat/web/map-suggestions-to-source-tokenization
Draft

feat(web): map suggestions to their source tokenizations 🚂#15767
jahorton wants to merge 1 commit intorefactor/web/create-default-keepfrom
feat/web/map-suggestions-to-source-tokenization

Conversation

@jahorton
Copy link
Copy Markdown
Contributor

Each suggestion comes from a specific variant of the context (per whitespace fat-fingering). In order to properly apply a suggestion, we'll need to apply it to that specific variant, which is represented by a specific instance of ContextTokenization. This PR constructs a map that remembers the correlation between suggestion and source context variant.

At the current level of implementation, there's only the one possible source... though that will be changing in upcoming work. Ensuring that the suggestion is properly applied will be handled separately as part of that work.

Build-bot: skip build:web
Test-bot: skip

Each suggestion comes from a specific variant of the context (per whitespace fat-fingering).  In order to properly apply a suggestion, we'll need to apply it to that specific variant, which is represented by a specific instance of ContextTokenization.  This PR constructs a map that remembers the correlation between suggestion and source context variant.

At the current level of implementation, there's only the one possible source... though that will be changing in upcoming work.  Ensuring that the suggestion is properly applied will be handled separately as part of that work.

Build-bot: skip build:web
Test-bot: skip
@keymanapp-test-bot
Copy link
Copy Markdown

keymanapp-test-bot bot commented Mar 17, 2026

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

  • Web
    • KeymanWeb Test Home - build : all tests passed (no artifacts on BuildLevel "build")

@keymanapp-test-bot keymanapp-test-bot bot changed the title feat(web): map suggestions to their source tokenizations feat(web): map suggestions to their source tokenizations 🚂 Mar 17, 2026
@keymanapp-test-bot keymanapp-test-bot bot added this to the A19S25 milestone Mar 17, 2026
@keyman-server keyman-server modified the milestones: A19S25, A19S26 Mar 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

2 participants