Commit graph

3159 commits

Author SHA1 Message Date
Joshua A. Horton
be715e6e57 chore(web): Merge branch 'feat/web/gesture-recognizer-main' into feat/web/recognizer-input-unit-testing-2 2022-08-03 08:21:33 +07:00
Joshua A. Horton
5d0ad62842 chore(web): Merge branch 'master' into feat/web/gesture-recognizer-main 2022-08-03 08:19:13 +07:00
jahorton
4d14bc6998 fix(web): fixes previously-unstable unit test 2022-08-02 16:10:04 +07:00
jahorton
8fab028632 chore(web): minor unit test issue review, tweak 2022-08-02 15:47:28 +07:00
jahorton
967e36e405 chore(web): cleaner promise flow for other tests 2022-08-02 15:42:51 +07:00
jahorton
d2a92494a5 fix(web): Promise logic for keyboard-loading tests 2022-08-02 15:36:34 +07:00
Joshua A. Horton
8f4198501d refactor(web): converts test_utils funcs to Promise use 2022-08-02 11:08:46 +07:00
Joshua A. Horton
bac2578039 chore(web): addresses PR review comment 2022-08-02 08:10:01 +07:00
Joshua A. Horton
205312c451 chore(web): timeout-adapter implementation 2022-08-01 13:06:15 +07:00
Joshua A. Horton
5a7840753f chore(web): centralizes test-start timeout config logic 2022-08-01 11:39:14 +07:00
Joshua A. Horton
405a553c06 chore(web): requireable module for common CI test-config 2022-08-01 10:54:57 +07:00
Joshua A. Horton
98c2f86c56 chore(web): Merge branch 'feat/web/recognizer-input-unit-testing' into feat/web/recognizer-input-unit-testing-2 2022-07-29 12:20:40 +07:00
Joshua Horton
1b4ad74aed
Merge pull request #6914 from keymanapp/feat/web/recognizer-multipoint-tracking
feat(web): start of support for multi-touchpoint tracking 🐵
2022-07-29 11:15:22 +07:00
Joshua A. Horton
59ade4e8f7 chore(web): Merge branch 'master' into feat/web/gesture-recognizer-main 2022-07-29 09:16:37 +07:00
Joshua A. Horton
4dcfc34fbf chore(web): Merge branch 'feat/web/recognizer-input-unit-testing' into feat/web/recognizer-input-unit-testing-2 2022-07-27 09:51:39 +07:00
Joshua A. Horton
a12746d2f8 fix(web): updates testing host-page 2022-07-27 09:32:17 +07:00
Marc Durdin
ab54c0ecb9 chore(common): more bin bashes 2022-07-25 16:03:22 +10:00
Marc Durdin
767927bf16 chore(common): use /usr/bin/env bash
Fixes up scripts (except under /linux) to use `#!/usr/bin/env bash`
instead of `#!/bin/bash` or `#!/bin/sh` so that we don't end up with
the ancient version of bash supplied with macOS.

This became urgent with this PR, because of bash-4.xisms in
build-utils.sh, for example on line 572:

```
if [[ -v _builder_params[$e] ]]; then
```
2022-07-25 14:59:37 +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
Joshua A. Horton
101b5489c7 change(web): class-name -color => -legend 2022-07-20 13:34:27 +07:00
Joshua A. Horton
f67d51bccf feat(web): links gesture-recognizer unit test for CI 2022-07-19 10:45:05 +07:00
Joshua Horton
b8fd5eea31
Merge pull request #6902 from keymanapp/fix/web/block-set-layer-on-desktop
fix(web): layer-setting ops should not trigger for hardware keystroke processing 🖇️
2022-07-15 11:07:19 +07:00
Joshua A. Horton
0ddb6be8db change(web): minor logging-related tweaks 2022-07-14 15:37:05 +07:00
Joshua A. Horton
dedcc2880d feat(web): InputSequence JSON round-tripping 2022-07-14 15:37:01 +07:00
Joshua A. Horton
2e75b0b35e refactor(web): retooled input sequence event infrastructure 2022-07-14 15:36:54 +07:00
Joshua A. Horton
1e231d1a6f feat(web): start of multi-touchpoint tracking 2022-07-14 15:36:25 +07:00
Joshua A. Horton
a5349f99b9 feat(web): host page safe-zone options 2022-07-14 10:16:55 +07:00
Joshua A. Horton
68869aa5c3 feat(web): host page now directly sets padded safe zone 2022-07-14 09:59:54 +07:00
Joshua A. Horton
5476c7b1c3 chore(web): applies PR suggestion (manually) 2022-07-14 08:42:04 +07:00
Joshua A. Horton
53578a114f change(web): relocates pageFocusHandler def'n 2022-07-13 08:22:48 +07:00
Joshua A. Horton
c5832cf203 chore(web): Merge branch 'feat/web/gesture-recognizer-bounds' into feat/web/gesture-recognizer-rigging 2022-07-12 12:33:31 +07:00
Joshua A. Horton
7db9743d8f chore(web): addresses PR concerns 2022-07-12 12:05:43 +07:00
Joshua A. Horton
4ba11ced92 chore(web): Merge branch 'master' into feat/web/gesture-recognizer-base 2022-07-12 11:48:26 +07:00
Joshua A. Horton
7342f7f9e6 fix(web): applies PR suggestions 2022-07-12 11:01:14 +07:00
Joshua A. Horton
445be0bd86 fix(web): less fragile page styling 2022-07-11 15:27:23 +07:00
Joshua A. Horton
c516762fc7 feat(web): basic recognizer logging 2022-07-11 14:15:08 +07:00
Joshua A. Horton
f19b575152 fix(web): build.sh mkdir: -p 2022-07-11 13:07:52 +07:00
Joshua A. Horton
ba7dd2f104 feat(web): visible safe-proximity, looser safe-zones 2022-07-11 13:07:45 +07:00
Joshua A. Horton
18c59a1503 feat(web): host page - visible safe zone 2022-07-11 13:02:02 +07:00
Joshua A. Horton
d4577698c9 change(web): moved recognizer host page to web/testing, retooled index 2022-07-11 13:02:02 +07:00
Joshua A. Horton
fe5009de1f feat(web): release/unminified/gesture-recognizer 2022-07-11 13:02:02 +07:00
jahorton
f085c60ac1 fix(web): reset context on page focus loss 2022-07-08 09:52:40 +07:00
Marc Durdin
8ba11f608d
Merge pull request #6890 from keymanapp/fix/web/improve-console-error-reporting
fix(web): improve `console.error()` reporting
2022-07-07 09:40:06 +10:00
Marc Durdin
35adc5b970
Merge pull request #6630 from keymanapp/chore/developer/js-to-lmc
chore(developer): rename developer/js to developer/kmlmc 🎢
2022-07-06 05:42:19 +10:00
Marc Durdin
3977ffda2f fix(web): remove spurious log "No keyboard stubs exist"
This error has been logged for every start of Keyman Engine for Web in
embedded contexts, but nothing bad ever happens. It does not really seem
to be anything we need to worry about. (It may be that the
`setDefaultKeyboard()` call will never return true, but it is still
harmless in any case.)
2022-07-05 15:36:21 +10:00
Marc Durdin
f3c091a667
Merge pull request #6891 from keymanapp/chore/web/update-readme
chore(web): update readme
2022-07-05 13:00:53 +10:00
Marc Durdin
c6bb33973c chore(web): update readme 2022-07-05 12:29:13 +10:00
jahorton
aa8730acda fix(web): properly binds 'suggestionApplied' event handler 2022-07-04 09:19:51 +07:00
Joshua Horton
658865d0af
Merge pull request #6854 from keymanapp/fix/web/6853-refresh-layout-undef-guard
fix(web): null-guard for refreshLayout
2022-06-29 13:30:01 +07:00
Joshua Horton
581bda77aa
Merge pull request #6786 from keymanapp/fix/web/6735-sticky-backspace-on-resize
fix(web): clears repeating bksp on keyboard reload ⬅️
2022-06-29 13:28:01 +07:00