Commit graph

54 commits

Author SHA1 Message Date
Joshua Horton
2caa22ee2a
Merge pull request #7241 from keymanapp/fix/common/models/no-whole-replacements
fix(common/models): blocks full-text "corrections" ✏️
2022-09-19 08:22:46 +07:00
Joshua Horton
4f4ddb6107
Merge pull request #7290 from keymanapp/fix/common/models/timer-maxtime
fix(common/models): max prediction wait check
2022-09-15 08:23:45 +07:00
Joshua A. Horton
917fce0750 chore(common/models): final requested tweak 2022-09-15 08:23:08 +07:00
Joshua Horton
a390c2fb2f
chore(common/models): Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2022-09-14 13:32:14 +07:00
Joshua A. Horton
6fbe089244 change(web): tweaks max wait time threshold to mitigate lag 2022-09-14 10:13:29 +07:00
Joshua A. Horton
0845210f20 fix(common/models): max prediction wait check 2022-09-14 09:57:29 +07:00
Joshua A. Horton
2f044c45b1 chore(web): Merge branch 'master' into fix/web/non-whitespace-wordbreaks 2022-09-12 15:07:56 +07:00
Joshua A. Horton
665b149b09 fix(common/models): needed export for unit tests 2022-09-12 15:04:17 +07:00
Joshua A. Horton
415201bf15 fix(common/models): isWhitespace, adds related unit tests 2022-09-12 15:03:48 +07:00
Joshua A. Horton
6632d597d5 feat(common/models): adds unit test, minor branch polish 2022-09-12 10:25:24 +07:00
Joshua A. Horton
445c76e31c chore(common/models): Merge branch 'master' into fix/common/models/no-whole-replacements 2022-09-12 09:17:58 +07:00
Joshua A. Horton
666b639404 fix(common/models): adds 'soft bound' for reasonable 100% fat-finger corrections 2022-09-09 15:35:12 +07:00
Joshua A. Horton
9b29339594 fix(common/models): blocks full-text corrections 2022-09-08 13:13:58 +07:00
Joshua A. Horton
6c50de9e9a change(web): conciser version of last commit 2022-09-08 10:56:32 +07:00
Joshua A. Horton
75e0b27bf3 change(web): pushWhitespaceToTail tweak 2022-09-08 10:54:01 +07:00
Joshua A. Horton
52cb9aa19d change(common/models): drops .isNew, replaces with tokenized context contrast logic 2022-09-08 10:48:12 +07:00
Joshua A. Horton
fb0cc5086c fix(common/models): backspacing shouldn't make 'new' tokens 2022-09-07 14:57:53 +07:00
Joshua A. Horton
9be8839685 fix(common/models): undefined != 0 2022-09-06 10:47:51 +07:00
Joshua A. Horton
9634c76353 chore(common/models): suggested tweak from review 2022-09-06 08:57:56 +07:00
Joshua A. Horton
26c5150977 fix(web): context-tracker newFlag management for new contexts 2022-09-05 14:02:55 +07:00
Joshua A. Horton
b47596a803 fix(common/models): context token .isNew maintenance 2022-09-05 12:35:11 +07:00
Joshua A. Horton
57ce30e068 fix(web): post-suggestion-apply error 2022-09-05 12:17:17 +07:00
Joshua A. Horton
d33a9f05bf docs(web): fixes missed doc update 2022-09-05 11:41:42 +07:00
Joshua A. Horton
b0184ec98b fix(web): adds unit test targeting issue, handler for edge case 2022-09-05 11:30:50 +07:00
Joshua A. Horton
be562b3022 fix(web): missed method references 2022-09-05 10:37:50 +07:00
Joshua A. Horton
ad8c30c6c0 fix(web): pred-text context tracking when wordbreak not caused by whitespace 2022-09-05 10:26:31 +07:00
Joshua A. Horton
814a492277 chore(web): tweaks, docs for execution-timer inner-class 2022-08-09 09:00:29 +07:00
Joshua A. Horton
af219def62 fix(web): enhanced timer for prediction alg 2022-08-04 14:38:48 +07:00
Marc Durdin
8fd3442fe2 chore(common): remove builder_init
builder_init was unnecessarily and inconsistently duplicating
builder_describe and builder_parse functionality. Removing it -- all
scripts should use builder_describe and builder_parse instead, which
gives us more flexibility and consistency into the future.
2022-07-27 15:07:12 +10:00
Marc Durdin
93a03acb9f chore(common): builder script :target and --option support
Adds support for :target and --option to the builder_() functions in
build-utils.sh, along with a consistent way of describing command line
parameters in short-hand form, so we can avoid the display_usage getting
out of sync with actual command line parameters.

I opted to tweak the existing usage slightly, reversing parameter order
for `builder_report`, so that we could extend `builder_report` cleanly
to support targets.

The new builder_() functions are `builder_describe` and `builder_parse`,
which should be used in place for `builder_init` where you want to
provide more detailed command-line options (for many scripts, the
defaults provided through `builder_init` may suffice).

`builder_describe` lets you set a single-line description of the script,
along with a list of parameters: `actions`, `:targets` and `--options`.
Options may also specify a shorthand form, e.g. `--option,-o`. Each
parameter may optionally include a short description, separated by
space(s) from the parameter name.

build-utils.test.sh tests the functionality of the various functions,
and provides some examples of using them.

Defaults:
* If a target is not specified in `builder_describe`, a standard target
  of `:project` will be available.
* If the user does not pass an action on the command line, then `build`
  will be used.
* If the user does not pass a target on the command line, all targets
  will have the actions applied.

Note, it is possible to have targets which do not use all actions. These
may be still be specified, but can be ignored. For example, `test:tools`
may not be an action:target that you handle in the script. At this time,
the builder_() functions do not attempt to check for this.
2022-07-25 14:31:58 +10:00
jahorton
f0a0aa379d chore(common): PR review adjustments 2022-06-20 07:57:50 +07:00
jahorton
f06c5b0c8c docs(web): almost lost a significant doc-comment 2022-06-17 08:11:32 +07:00
jahorton
c0a6f082ba chore(web): pr cleanup per suggestions 2022-06-17 08:08:49 +07:00
jahorton
0a29496cc1 chore(web): removes iOS 9 pred-text required pseudo-polyfill 2022-06-14 10:54:37 +07:00
jahorton
0f9ade6899 chore(web): reinserts added || die parts to lm-worker wrapping build 2022-05-31 10:02:08 +07:00
jahorton
6732e16b1c chore(web): reinserts @ts-nocheck 2022-05-31 09:11:15 +07:00
jahorton
6566031d1b docs(common/models): on early Android dependencies 2022-05-31 09:05:06 +07:00
jahorton
7b472ca686 chore(web): Merge branch 'chore/web/merge-web-version-environment' into chore/web/better-lm-worker-bundling 2022-05-27 10:31:43 +07:00
jahorton
3855a25d26 chore(web): Merge branch 'chore/web/fixup-unit-test-fixups' into chore/web/merge-web-version-environment 2022-05-27 10:30:16 +07:00
Marc Durdin
fcf78bcd94 chore: merge master into branch 2022-05-27 13:11:23 +10:00
Marc Durdin
ef86cd46d9 chore(web): revert temporary type patches
There were a few temporary type patches I had made earlier in the
refactor chain in order to get a build to pass. After completing the
refactor, I was able to return them to their more proper types.
2022-05-27 08:31:19 +10:00
Marc Durdin
c22e892e49 chore(web): revert PostMessage and ImportScripts types 2022-05-27 08:26:51 +10:00
jahorton
81fa5ce282 chore(web): addresses PR review 2022-05-24 10:45:34 +07:00
jahorton
ea74a7f2ce chore(web): adds direct keyman-version compile to many build.sh's 2022-05-24 10:11:57 +07:00
jahorton
2aa0b4445c chore(web): lm-worker "test stub" code elimination 2022-05-23 13:56:09 +07:00
jahorton
f20759f26a chore(web): eliminates web-environment package 2022-05-23 13:40:29 +07:00
jahorton
26c30f4204 chore(web): most web packages now use keyman-version 2022-05-23 13:35:19 +07:00
Marc Durdin
05a4c33200 chore(web): move common/core/web to common/web
Relates to #5816.

Moves folders under common/core/web to common/web:

* input-processor -> common/web/input-processor
* keyboard-processor -> common/web/keyboard-processor
* tools/recorder -> common/web/recorder
* tools/sentry-manager -> common/web/sentry-manager
* utils -> common/web/utils

Updates scripts and configuration to point to new folders.
2022-05-18 06:01:03 +10:00
Marc Durdin
af44c0687f chore(web): move web-environment to common/web 2022-05-16 08:29:46 +10:00
Marc Durdin
41bd9069ad chore(web): fixup lmlayer test paths 2022-05-13 09:52:08 +10:00