Commit graph

5430 commits

Author SHA1 Message Date
Joshua A. Horton
17605a405e change(web): lm-worker build dir constants 2023-12-15 11:34:20 +07:00
Joshua A. Horton
7392fdd572 refactor(web): lm-worker polyfiller rework 2023-12-15 11:04:45 +07:00
Joshua A. Horton
9f2816ca99 change(web): lm-worker wrapper script generalization 2023-12-15 09:47:50 +07:00
rc-swag
2f737981f7 fix(core): add expected_context to keyboard unit tests
The unit tests needed to be updated to handle the cases
where the context is invalidated by a keystroke. However, they
still need to be able to verify the final string the application
should recieve. To do this a expected context token has been added
to the unit test format.
2023-12-15 11:20:08 +10:00
Steven R. Loomis
10275e699d fix(common): hextobin should return an error status 2023-12-14 15:49:01 -06:00
Joshua A. Horton
0e20cc3552 chore(web): a bit more lm-worker wrapping polish 2023-12-14 15:49:57 +07:00
Joshua A. Horton
2abf2c0142 change(web): lm-worker wrapper generalization prep 2023-12-14 15:46:48 +07:00
Joshua A. Horton
ad56b9ea53 chore(web): centralizes lm-worker build polyfill handling 2023-12-14 15:32:21 +07:00
Joshua A. Horton
0653398ef2 chore(web): mild lm-worker bundling simplification 2023-12-14 15:15:00 +07:00
Joshua A. Horton
154cac8bd5 chore(web): drops unused index.js artifact from lm-worker 2023-12-14 15:14:53 +07:00
Marc Durdin
0ebc5d6aab feat(developer): add -m parameter to control message display
Fixes #10150.

This feature adds a command line parameter to kmc to control the
severity of INFO, HINT and WARN level messages. The severity of any of
these messages can be reduced all the way to INFO, or even disabled, or
increased to ERROR. The compiler and the reporter will honour the new
code and fail builds when failure-level codes are encountered.

Inputs are validated against all the available compiler messages in all
modules. This also provides a good pathway for automated future
documentation generation of compiler messages.

In order to process the input parameters cleanly, have refactored some
of kmc's build command logic.

This commit increases code coverage for kmc to roughly 50%.
2023-12-14 13:17:29 +07:00
Marc Durdin
eb881dc137
Merge pull request #7324 from keymanapp/feature-gestures
epic: new gesture engine 🐵
2023-12-14 15:23:43 +11:00
rc-swag
8e20fcf6b2 fix(core): missed checking in baseline.kpj 2023-12-14 14:20:05 +10:00
rc-swag
437f938368 fix(core): fix baseline test cases k_000 and k_0008
Test k_000___null_keyboard has been updated as the [RALT K_B] should
cause the context to be reset.

Test k_008___vkey_input__ctrl_alt_2_ has been updated as the [LCTRL LALT
K_B] does not match a keyboard rule the context is deemed invalid and should be
reset.

It could be a consideration to modify the text_store object to better
reflect the state of a applications context however this would mean
we would need two expected results one for the application and one
for the context
2023-12-14 12:25:32 +10:00
Joshua A. Horton
8f40936834 chore(web): Merge branch 'feature-gestures' into chore/web/worker-polyfill-cleanup 2023-12-14 08:14:47 +07:00
Steven R. Loomis
6488a42875 chore(linux): docs: fix Node.js install
- update other docs to simply point to NodeSource's instructions

Fixes: chore(linux): script deprecation warning from nodesource #10024
2023-12-13 18:33:51 +00:00
Joshua Horton
c754a22d7f
Merge pull request #10173 from keymanapp/feat/web/path-base-coord-replacement
feat(web): enhanced flick resetting via path base-coord replacement 🐵
2023-12-13 14:09:32 +07:00
Joshua Horton
207324e68a
Merge pull request #10152 from keymanapp/change/web/path-evaluate-signature
change(web): prep for enhanced flick-resets - alters the contact-path evaluation signature 🐵
2023-12-13 14:09:23 +07:00
Joshua Horton
535bfec1b3
Merge pull request #10242 from keymanapp/chore/merge-master-into-feature-gestures
chore: merge master into feature-gestures 🐵
2023-12-13 14:09:05 +07:00
Joshua A. Horton
6887ca3053 chore(web): drops a worker polyfill, makes another conditional 2023-12-13 09:05:38 +07:00
Marc Durdin
67b1b65337 chore(developer): Merge branch 'master' into feat/developer/9473-kmc-module-api-consolidation 2023-12-13 08:07:09 +07:00
Marc Durdin
4f32875a57 chore(web): cleanup tests 2023-12-13 08:06:37 +07:00
Marc Durdin
e2ce64d9be fix(web): mocha describe does not do async
mocha describe() does not accept an async function. Any async prep
should be done in a before() function, which does support async.

One helpful ref: https://github.com/mochajs/mocha/issues/2975#issuecomment-1004176440
2023-12-13 05:38:51 +07:00
Marc Durdin
69a11c9ceb chore(developer): Merge branch 'master' into feat/developer/10161-developer-settings-in-rc 2023-12-13 05:05:53 +07:00
Marc Durdin
60bb1e4d9e chore(developer): Merge branch 'master' into feat/developer/9473-kmc-module-api-consolidation 2023-12-13 05:01:20 +07:00
Marc Durdin
1f06224c6e
Merge pull request #10151 from keymanapp/fix/developer/10144-10145-10146-10148
fix(developer): various project fixes 🦕
2023-12-13 08:45:30 +11:00
rc-swag
4a511bde1e fix(core): clear core context on invalidate cache 2023-12-12 23:49:04 +10:00
rc-swag
e83b0022d2 feat(windows): WIP buc sm doesn't build just backup
background update state machine doesn't even build
2023-12-12 16:15:42 +10:00
Joshua Horton
ea0de2775b
Merge pull request #10169 from keymanapp/feat/web/gesture-path-memory-optimization
feat(web): gesture processing - path memory-use optimization 🐵
2023-12-12 07:31:56 +07:00
Marc Durdin
59cb7b25d3 chore(developer): Merge branch 'master' into feat/developer/10161-developer-settings-in-rc 2023-12-11 21:13:33 +07:00
Marc Durdin
03625c6e98
Merge pull request #10157 from keymanapp/fix/common/10143-kpj-handle-empty-files-element
fix(common): kpj loader needs to handle empty Files element 🦕
2023-12-12 01:12:27 +11:00
Marc Durdin
3d5506ef3e chore(windows): move reportExceptions check in exception handler to caller 2023-12-11 20:44:53 +07:00
Marc Durdin
01fe68a66d feat(developer): Move options to ~/.keymandeveloper/options.json
Fixes #10161.

Includes transition of existing options from registry to options.json,
and once options.json exists, will always read from that and ignore
registry. Was able to eliminate some of the legacy datatype usage for
several options. Reader/writer includes naive file lock retry to avoid
contention, which I am hopeful will be sufficient for our needs, given
the low chance of contention.
2023-12-11 15:31:21 +07:00
Marc Durdin
3a91c7d197 chore(developer): move IDEOptions key responsibility into KeymanDeveloperOptions
First part of addressing #10161 is to refactor the existing usage of the
registry values into the common KeymanDeveloperOptions unit. This was
mostly straightforward except for the changes to KeymanSentryClient,
which happens to be the most important part of this particular fix.
2023-12-11 13:48:43 +07:00
Marc Durdin
d99c4cd669 chore(web): update LexicalModelCompiler call 2023-12-11 12:21:20 +07:00
Marc Durdin
52038e22aa chore(developer): remove unintended usage of callbacks.path/callbacks.fs in kmc 2023-12-11 11:43:24 +07:00
Marc Durdin
f9c3be09a6 refactor(developer): move outFile out of CompilerBaseOptions
`outFile` is not a compiler option, and so it should not be a part of
the `CompilerBaseOptions` interface. This formally separates the
command-line options from the compiler options, which eliminates a
number of restrictive structures.
2023-12-11 09:47:23 +07:00
Marc Durdin
288b822ca8
Merge pull request #10189 from keymanapp/chore/merge-master-into-windows-updates
chore: merge master into windows-updates
2023-12-11 12:07:10 +11:00
Joshua Horton
0825db270f
chhcore(web): Update gestureDebugPath.ts
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-12-09 09:20:55 +07:00
Joshua Horton
2511e37dcc
Merge pull request #10190 from keymanapp/chore/merge-master-into-feature-gestures
chore: merge master into feature-gestures 🐵
2023-12-08 23:06:08 +07:00
Joshua Horton
cfedbc7410
Merge pull request #10185 from keymanapp/fix/common/models/worker-reset-context
fix(common/models): lm-worker context resets didn't properly manage context cache 🐵
2023-12-08 15:36:35 +07:00
Joshua A. Horton
e55daa6a83 fix(web): fixes within-branch bugs from prior commits 2023-12-08 11:51:43 +07:00
Joshua A. Horton
aebdc6a0d7 feat(web): adds gesture-engine path-segment-start replacement 2023-12-08 11:51:42 +07:00
Joshua A. Horton
b98a7c455e change(web): changes model-path evaluate signature 2023-12-08 11:50:36 +07:00
Joshua A. Horton
a8e732033a fix(web): post-rebase export mixup 2023-12-08 11:49:50 +07:00
Joshua A. Horton
a975bc1347 chore(web): updates test resources, specs 2023-12-08 11:48:55 +07:00
Joshua A. Horton
3e1ac6701c refactor(web): differentiated path/src types - default no longer persists all coords 2023-12-08 11:48:50 +07:00
Joshua A. Horton
00e902566b change(web): gesture processing stats-object based aside from subviews 2023-12-08 11:48:24 +07:00
Marc Durdin
aa458152cf
Merge branch 'feature-gestures' into chore/merge-master-into-feature-gestures 2023-12-08 14:24:38 +11:00
Joshua A. Horton
9470c8a55c chore(web): adds 'private' keyword on a method 2023-12-08 09:18:08 +07:00