Commit graph

5272 commits

Author SHA1 Message Date
Joshua Horton
e9377bfc9a Merge branch 'refactor/web/pred-context-tokens' into refactor/web/pred-context-tokenization 2025-08-14 12:59:57 -05:00
Joshua Horton
0e003edb08 Merge branch 'chore/merge-master-into-autocorrect' into refactor/web/pred-context-tokens 2025-08-14 12:51:36 -05:00
Joshua Horton
891bcaa3ef Merge branch 'epic/autocorrect' into chore/merge-master-into-autocorrect 2025-08-14 12:26:50 -05:00
Joshua Horton
a85890cd1e
Merge pull request #14510 from keymanapp/maint/web/convert-worker-thread-tests
chore(web): convert worker-thread tests to TS
2025-08-15 00:15:29 +07:00
Joshua Horton
7a9ae50d3b
Merge pull request #14518 from keymanapp/refactor/web/apply-suggestion-casing
refactor(web): move applySuggestionCasing to standalone exportable method
2025-08-15 00:15:19 +07:00
Joshua Horton
118fb6ae94
Merge pull request #14517 from keymanapp/fix/web/suggestion-typing
fix(web): improve accuracy of types for suggestions & suggestion-generation
2025-08-15 00:15:12 +07:00
Joshua Horton
6d27c3468d Merge branch 'refactor/web/apply-suggestion-casing' into maint/web/convert-worker-thread-tests 2025-08-14 11:01:39 -05:00
Joshua Horton
51fc6f636f Merge branch 'fix/web/suggestion-typing' into refactor/web/apply-suggestion-casing 2025-08-14 11:00:11 -05:00
Joshua Horton
aa77e4ca0b fix(web): remove unneeded sort from unit test 2025-08-14 10:59:45 -05:00
Joshua Horton
65885a4669 chore(web): add displayAs strings where previously unset 2025-08-14 08:32:11 -05:00
Joshua Horton
981905717a change(web): add MAX_PROB constant for use in 'keep'-suggestion construction 2025-08-14 08:23:40 -05:00
Joshua Horton
ae469ed1b4
change(web): apply suggestion from code-review
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-08-14 20:19:53 +07:00
Marc Durdin
2aa46cc3c2
Merge pull request #14516 from keymanapp/maint/web/14289-skip-unnecessary-steps-for-build-bl
maint(web): skip unnecessary steps for `build` buildLevel
2025-08-14 15:35:21 +07:00
Joshua Horton
87eb476ecd change(web): eliminate extra tsconfig
I tried to get a multi-config setup to split off the tests that caused compilation issues in a prior commit, but I never got it working.  It's best to simplify and remove the thing that didn't work.
2025-08-13 11:00:52 -05:00
Joshua Horton
c3124ec685 change(web): use contextTracker getter internally 2025-08-13 10:57:16 -05:00
Joshua Horton
ec888dd751 Merge branch 'refactor/web/apply-suggestion-casing' into maint/web/convert-worker-thread-tests 2025-08-13 10:52:57 -05:00
Joshua Horton
519e39e327 refactor(web): move applySuggestionCasing to standalone exportable method 2025-08-13 10:45:15 -05:00
Joshua Horton
e24deefdb8 fix(web): improve typing accuracy for suggestions & suggestion-generation
Also adds doc-comments to a couple of the related types
2025-08-13 10:27:13 -05:00
Joshua Horton
a01211efa4 change(web): improve exposure of once-private members 2025-08-13 08:49:41 -05:00
Marc Durdin
1573fa540f maint(web): skip unnecessary steps for build buildLevel
Skip Sentry upload for non-release builds. Add TODO to merge ci.sh
content with resources/teamcity/web.

Fixes: #14289
Build-bot: build
Test-bot: skip
2025-08-13 09:10:07 +02:00
Joshua Horton
e9a1f6c349 maint(web): converts worker-thread tests to TS 2025-08-12 15:38:53 -05:00
Joshua Horton
88f3a1a716 maint(web): convert models-templates, models-wordbreakers unit tests to TS 2025-08-12 10:12:10 -05:00
Joshua Horton
e69c6cfecd change(web): add header comments, reorder imports 2025-08-12 08:54:23 -05:00
Joshua Horton
a54f232154 Merge branch 'refactor/web/pred-context-tokens' into refactor/web/pred-context-tokenization 2025-08-12 08:49:54 -05:00
Joshua Horton
efa4ffee27
change(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-08-12 20:49:11 +07:00
Joshua Horton
0598e080bd change(web): import ordering, SearchSpace.inputSequence getter 2025-08-12 08:41:15 -05:00
Joshua Horton
b544aeff37
change(web): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2025-08-12 20:32:28 +07:00
Marc Durdin
942b06afdd
Merge pull request #14451 from keymanapp/maint/common/14447-node.inc.sh
maint(common): rename and move node-related script functions into node.inc.sh 🐸
2025-08-12 10:41:18 +07:00
Marc Durdin
a81138c62b
Merge pull request #14449 from keymanapp/maint/common/14065-consolidate-builder-scripts
maint(common): consolidate builder scripts 🐸
2025-08-12 10:41:09 +07:00
Marc Durdin
f95b26ac1f
Merge pull request #14446 from keymanapp/maint/common/14275-rename-and-cleanup-shellHelperFunctions.sh
maint(common): rename shellHelperFunctions.sh to utils.inc.sh 🐸
2025-08-12 10:40:59 +07:00
Joshua Horton
24466137cd Merge branch 'master' into chore/merge-master-into-autocorrect 2025-08-11 08:48:38 -05:00
Joshua Horton
c3e0d3447c Merge branch 'refactor/web/pred-context-tokens' into refactor/web/pred-context-tokenization 2025-08-08 09:26:10 -05:00
Joshua Horton
9b29955060 docs(web): documents the ContextTokenization class 2025-08-08 09:25:55 -05:00
Joshua Horton
ab52938d96 docs(web): adds doc-comments for textToCharTransforms(), ContextToken class 2025-08-08 09:22:01 -05:00
Joshua Horton
09611146dc fix(web): legacy model unit tests should use an actual legacy model 2025-08-05 10:27:48 -05:00
Joshua Horton
265f0265fd fix(web): prevent auto-select from keeping old autoaccept positions highlighted 2025-08-04 15:13:44 -05:00
Marc Durdin
2726050601 maint(common): rename and move node-related script functions into node.inc.sh
Consolidates the node-related script functions into node.inc.sh, as part
of cleaning up the build scripts and making them easier to maintain into
the future.

Fixes: #14447
2025-08-02 13:34:29 +10:00
Marc Durdin
f394245636 maint(common): consolidate builder scripts
Clarifies the confusing builder.inc.sh / build-utils.sh distinction by
giving the scripts more appropriate names. Most build scripts should use
builder-full.inc.sh; some helper scripts can use builder-basic.inc.sh.
Documented in resources/build/README.md.

Renames:
* resources/build/builder.inc.sh to resources/build/builder-full.inc.sh
* resources/build/build-utils.sh to resources/build/builder-basic.inc.sh

Other changes:
* Moves Android-specific functions out of builder-basic.inc.sh and into
  android/build.sh.
* Renames functions in builder-basic.inc.sh

More functions may be moved from builder-basic.inc.sh into utils.inc.sh
or other scripts in the future.

Fixes: #14065
Build-bot: build all
Test-bot: skip
2025-08-02 08:11:24 +10:00
Marc Durdin
65158a0526 maint(common): rename shellHelperFunctions.sh to utils.inc.sh
Adds documentation for various functions, removes unused functions (a
couple of simple, very lightly used functions were unDRYed; these could
go back the other way across all shell scripts if necessary). TODO items
noted for follow-up refactoring.

Fixes: #14275
Relates-to: #14269
Build-bot: build all
Test-bot: skip
2025-08-02 06:58:40 +10:00
Joshua Horton
bf897016c3 change(web): add unit tests & clone constructor 2025-08-01 12:05:10 -05:00
Joshua Horton
7bb51bd53c refactor(web): refactor tracked-context tokenization and usage pattern
This PR's changes aim to meet our current needs for the tracking of context tokenization (word boundaries) across edits... all while moving much closer to the design specified within the Correction-Search + Context-Tracking design doc.

Also places the class within its own separate source file.
2025-07-30 12:10:08 -05:00
Joshua Horton
063054a592 refactor(web): relocate textToCharTransforms method 2025-07-30 12:09:26 -05:00
Joshua Horton
e0c553d306 change(web): appliedSuggestionId should be undefined, not -1, when none are applied 2025-07-30 09:22:09 -05:00
Joshua Horton
0ceffce32e refactor(web): refactor ContextToken and usage pattern
Also places the class within its own separate source file.

This PR's changes aim to meet our _current_ needs while moving much closer to the design specified within the [Correction-Search + Context-Tracking design doc](https://docs.google.com/document/d/1RYwgW8zI8A7VLMq40BpWYkfJJQ-i6K0MIs4QcAMxglE/edit?tab=t.0).
2025-07-30 09:22:03 -05:00
Joshua Horton
145f34f434
Merge pull request #14384 from keymanapp/change/web/split-suggestion-transforms
change(web): split suggestion transforms into main-body + appended (whitespace) transforms 🚂
2025-07-24 22:00:03 +07:00
Joshua Horton
c4e0faa101
Merge pull request #14365 from keymanapp/refactor/web/attempt-match-context
refactor(web): rework `attemptMatchContext` to use new `attemptTokenizedAlignment` method 🚂
2025-07-24 21:59:48 +07:00
Joshua Horton
521aae9709
Merge pull request #14364 from keymanapp/refactor/web/attempt-tokenized-alignment
refactor(web): new method - attemptTokenizedAlignment 🚂
2025-07-24 21:59:38 +07:00
Joshua Horton
3c36ee2e73
change(web): fix typo (per PR review)
Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2025-07-24 20:38:03 +07:00
Joshua Horton
7e88fa2c41 docs(web): enhance doc-comment for getEditPathLastMatch
Per review request by @ermshiperete
2025-07-23 13:43:26 -05:00
Joshua Horton
0f3130fbd4
fix(web): properly apply Transforms in sequence
Thanks to a PR review that caught an accidental restart that hid one of the Transforms

Co-authored-by: Eberhard Beilharz <ermshiperete@users.noreply.github.com>
2025-07-22 23:48:37 +07:00