Skip to content

Commit 73cf42b

Browse files
Add engine to generate token gloss suggestions from previous glosses (#131)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 577781b commit 73cf42b

25 files changed

Lines changed: 4605 additions & 552 deletions

__mocks__/lucide-react.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,3 +74,13 @@ export function Link2Off(props: Readonly<{ size?: number; className?: string }>)
7474
export function Settings(props: Readonly<{ size?: number; className?: string }>): ReactElement {
7575
return <svg data-testid="settings-icon" {...props} />;
7676
}
77+
78+
/**
79+
* Stub for the Plus icon used by the token chip's suggestion-dropdown toggle.
80+
*
81+
* @param props - SVG props forwarded from the component.
82+
* @returns A ReactElement SVG element used as a plus icon stub in tests.
83+
*/
84+
export function Plus(props: Readonly<{ size?: number; className?: string }>): ReactElement {
85+
return <svg data-testid="plus-icon" {...props} />;
86+
}

contributions/localizedStrings.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"%interlinearizer_viewOption_showFreeTranslation%": "Show free translation",
3434
"%interlinearizer_projectSettings_showFreeTranslation%": "Show Free Translation",
3535
"%interlinearizer_projectSettings_showFreeTranslationDescription%": "Display a free-translation input beneath each segment's tokens or baseline text",
36+
"%interlinearizer_viewOption_showSuggestions%": "Show suggestions",
3637
"%interlinearizer_glossInput_placeholder%": "gloss",
3738
"%interlinearizer_freeTranslationInput_placeholder%": "Free translation",
3839
"%interlinearizer_morphemeEditor_splitLabel%": "Split into morphemes",

package-lock.json

Lines changed: 335 additions & 431 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)