Commit graph

22386 commits

Author SHA1 Message Date
Darcy Wong
f372936c34 chore(web): Add configure step to copy font 2023-11-13 20:49:25 +07:00
Darcy Wong
799a84579a chore(developer): Add configure step to copy font 2023-11-13 20:31:14 +07:00
Darcy Wong
6ff0cd202d chore(common): Move keymanweb-osk.ttf to common/ 2023-11-13 15:44:46 +07:00
Eberhard Beilharz
75a5d36399
Merge pull request #9954 from keymanapp/fix/web/7940_spacebar-text
fix(web): Increase size of spacebar text
2023-11-13 14:08:11 +07:00
Marc Durdin
220185d454
Merge pull request #9933 from keymanapp/docs/windows-build-config-meson-emscripten
docs(windows): update meson and emscripten details
2023-11-13 10:07:40 +11:00
Keyman Server
33abda1d2a
Merge pull request #9976 from keymanapp/auto/version-master-17.0.209
auto: increment master version to 17.0.209
2023-11-09 01:03:39 +07:00
Keyman Build Agent
f174c9bc0c auto: increment master version to 17.0.209 2023-11-08 13:03:05 -05:00
Eberhard Beilharz
cd49f3f2b7
Update web/src/engine/osk/src/keyboard-layout/oskKey.ts
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-11-08 19:29:15 +07:00
Eberhard Beilharz
5cc027b3b5
Merge pull request #9968 from keymanapp/fix/linux/trigger
fix(linux): Fix trigger for baseline tests
2023-11-08 13:44:17 +07:00
Eberhard Beilharz
203d503bc7
Merge pull request #9965 from keymanapp/chore/linux/fixbuild
chore(linux): Fix GHA triggering
2023-11-08 13:39:30 +07:00
Eberhard Beilharz
0b6feb8839
Merge pull request #9967 from keymanapp/fix/linux/basetests
fix(linux): Fix baseline tests
2023-11-08 13:39:01 +07:00
Eberhard Beilharz
71c9cda362
fix(linux): Fix trigger for baseline tests
When the baseline tests change we want to trigger a Linux build.
2023-11-08 12:26:48 +07:00
Eberhard Beilharz
46cdd07e22
fix(linux): Fix baseline tests
Change the test to use characters in the context that don't appear in
the keyboard.
2023-11-08 12:13:56 +07:00
Eberhard Beilharz
32f3074273
chore(linux): Fix GHA triggering
When we build a PR on TC we use `pull/ID/head` for the build, not
`pull/ID/merge`, i.e. the tip of the feature branch and not a merge
with the base branch. This means that during the build `pull/ID/merge`
is unknown. This change modifies the trigger to use `pull/ID/head` for
GHA builds as well.

It's still a mystery why `pull/ID/merge` was known to builds in most
cases but failed for some PRs.
2023-11-08 10:42:30 +07:00
Eberhard Beilharz
55b2886eb5
Merge pull request #9951 from keymanapp/fix/web/9918_osk-always-visible
fix(web): Ignore `osk-always-visible` on non-desktop devices
2023-11-08 08:14:23 +07:00
Eberhard Beilharz
cbec636d59
Merge pull request #9944 from keymanapp/fix/web/8568_deadkeys
fix(web): Fix clearing of deadkeys
2023-11-08 08:13:04 +07:00
Keyman Server
84e9de7f25
Merge pull request #9959 from keymanapp/auto/version-master-17.0.208
auto: increment master version to 17.0.208
2023-11-08 01:03:18 +07:00
Keyman Build Agent
4467c4d663 auto: increment master version to 17.0.208 2023-11-07 13:02:50 -05:00
Eberhard Beilharz
1fa4090d05
fix(web): Improve cause of issue
One reason for the sometimes small text on the spacebar besides the
too small font size on `kmw-spacebar-caption` was that the calculation
of the ideal font size added double padding: it added two pixels of
padding to the height, but also multiplied the height value by 0.9 which
effectively added more padding. This change removes the 2 pixel padding
from the calculation.

The existing calculation varies the text size to fit in the available
width of the spacebar, so calculating with font size of 1em is reasonable
and better than the previous 0.6em. The previous value would lead to even
an smaller font size for long texts, far below the size that would be
sufficient to fit the text.
2023-11-07 19:23:41 +07:00
Darcy Wong
71a9b9d66a
Merge pull request #9846 from keymanapp/chore/developer/non-printing-chars
feat(developer): Add more non-printing characters
2023-11-07 15:20:21 +07:00
Eberhard Beilharz
66ee06627b
Merge pull request #9953 from keymanapp/refactor/web/index
refactor(web): Link to `index.html` in test pages
2023-11-07 13:31:05 +07:00
Eberhard Beilharz
fde460ecea chore(core): Recompile keyboard with kmcomp 2023-11-07 05:02:30 +01:00
Eberhard Beilharz
1e4546ac2c
fix(web): Increase size of spacebar text
The caption on the spacebar used to be 60%. This change increases it to
100%, but that might be sometimes too big. On the other hand, 80% still
seemed to be too small.

Fixes #7940.
2023-11-07 10:34:04 +07:00
Eberhard Beilharz
ac29930d1f
refactor(web): Link to index.html in test pages
This change adds `index.html` to all links that point to test index pages.
This will show the index page instead of the directory listing when
opening locally, identical to the behavior on TC.
2023-11-07 09:38:15 +07:00
Eberhard Beilharz
ad716f878b
fix(web): Ignore osk-always-visible on non-desktop devices
Fixes #9918.
2023-11-07 08:37:30 +07:00
Eberhard Beilharz
eb64ca4d01
chore(core): Fix test keyboard 2023-11-07 08:29:45 +07:00
Keyman Server
5c4ce627ee
Merge pull request #9947 from keymanapp/auto/version-master-17.0.207
auto: increment master version to 17.0.207
2023-11-07 01:04:00 +07:00
Keyman Build Agent
4b3f16dec3 auto: increment master version to 17.0.207 2023-11-06 13:03:23 -05:00
Eberhard Beilharz
09843634bb
chore(web): Address code review comments 2023-11-06 17:28:25 +07:00
Eberhard Beilharz
4851c547a9
chore(core): Enhance core test 2023-11-06 15:57:07 +07:00
Eberhard Beilharz
abe6cee202
chore(web): Additional tests for backspace
Addresses code review comments.
2023-11-06 15:51:29 +07:00
Darcy Wong
5902c764c7
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-11-06 15:26:32 +07:00
Darcy Wong
699e1f350b chore(common): Revert other files 2023-11-06 15:25:59 +07:00
Marc Durdin
479da80a1a
Merge pull request #9941 from keymanapp/fix/developer/9848-resilient-cache-state-loading
fix(developer): resilience in loading Server config and cache files
2023-11-06 17:56:04 +11:00
Marc Durdin
946dcdabdf
Merge pull request #9940 from keymanapp/fix/developer/9939-sentry-support-in-server
fix(developer): Sentry in Server should honour reporting settings
2023-11-06 17:55:56 +11:00
Darcy Wong
7ff8d7acd9 chore(common): revert VERSIONs 2023-11-06 13:52:20 +07:00
Darcy Wong
132c8c7980 fix(developer): Revert test changes 2023-11-06 13:48:31 +07:00
Darcy Wong
56a86a8f87
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2023-11-06 13:42:36 +07:00
Eberhard Beilharz
a43fad4678
fix(web): Don't clear deadkeys after backspace
Fixes #8568.
2023-11-06 13:29:33 +07:00
Eberhard Beilharz
2e71ec9e70
chore(web): Add failing test for deadkey bug
Also adds a similar testcase to the baseline keyboard tests.
2023-11-06 13:28:49 +07:00
Eberhard Beilharz
84dd0c6b95
chore(web): Improve debug output of nodeProctor 2023-11-06 12:20:57 +07:00
Eberhard Beilharz
fa0b3e839e
refactor(core): Remove obsolete comments
Since things are working in both cases it seems that the problem got
fixed and the comments are obsolete.
2023-11-06 12:20:56 +07:00
Marc Durdin
7a08688ae1
Merge pull request #9938 from keymanapp/feat/developer/9931-line-numbers-for-some-kmw-messages
feat(developer): provide line number for some kmw compiler messages
2023-11-06 14:57:51 +11:00
Marc Durdin
2f42dd41f0
Merge pull request #9937 from keymanapp/chore/common/npm-prepublish-remove
chore(common): remove prepublish step from package.json
2023-11-06 14:57:43 +11:00
Marc Durdin
3e3fb92d59
Merge pull request #9924 from keymanapp/chore/developer/remove-CompileErrorCodes
chore(developer): remove compile.pas and CompileErrorCodes.pas
2023-11-06 14:57:35 +11:00
Marc Durdin
65b73b7c54
Merge branch 'fix/developer/9939-sentry-support-in-server' into fix/developer/9848-resilient-cache-state-loading 2023-11-06 14:47:08 +11:00
Marc Durdin
ea038c6db8 chore(developer): developer-utils embed 2023-11-06 10:46:48 +07:00
Marc Durdin
8e21925c26 fix(developer): resilience in loading Server config and cache files
Fixes #9848.

Root cause of #9848 is unknown, because the cache state file was filled
with nul bytes. It is unclear how that could have happened, but seems
likely to be external interference.

The cascade was that Server failed to start because it would crash when
attempting to load the cache state file. So this fix resolves that by
handling invalid file exceptions.
2023-11-06 08:30:05 +07:00
Marc Durdin
716cb526b7 fix(developer): Sentry in Server should honour reporting settings
Fixes #9939.

Uses refactored KeymanSentry.ts in developer-utils and updates the
loader in Server to run from that.

The changes to tray.ts and friends are required to deal with a top-level
await issue with the shutdown call.

The top-level await issue is described in detail at
https://marc.durdin.net/2023/11/dynamic-import-on-node-js-with-circular-dependencies-leads-to-interesting-failure-modes/

tl;dr: shutdown needed to do a proper Sentry shutdown. The shutdown code
was in index.ts. This led to a circular dependency and caused a silent
and abrupt exit code 13 in Node.js. Moved shutdown code into shutdown.ts
to resolve this.
2023-11-06 08:18:24 +07:00
Marc Durdin
8e6252c7de fix(developer): move KeymanSentry to developer-utils
Relates to #9939. Splits KeymanSentry.ts into common functionality in
developer-utils, and TestKeymanSentry.ts.
2023-11-05 06:57:01 +07:00