Commit graph

108 commits

Author SHA1 Message Date
Darcy Wong
786c223b98 chore(web): Cleanup per review comments 2021-07-26 20:59:08 +07:00
Darcy Wong
5d1a652314 Merge remote-tracking branch 'origin/master' into feat/web/add-keyboard-promise 2021-07-23 13:12:40 +07:00
Darcy Wong
0d50ff04c6 chore(web): Clarify comment about ignoring RegionCode 2021-07-23 13:12:33 +07:00
jahorton
b723d8c51b chore(web): Merge branch 'refactor/web/osk-keyboard-view' into refactor/web/osk-cleanup-and-init 2021-07-21 09:13:27 +07:00
Darcy Wong
bf9dd55853 chore(web): Merge remote-tracking branch 'origin/master' into feat/web/add-keyboard-promise 2021-07-09 16:22:03 +07:00
Darcy Wong
e01f6bf201 fix(web): Add wrapper to convert one-to-many keyboard stubs 2021-07-09 16:16:41 +07:00
Darcy Wong
ec092ba1e3 chore(web): Change syntax for clone 2021-07-08 14:14:40 +07:00
Darcy Wong
3770b69692 fix(web): Copy the keyboard stubs for registration 2021-07-08 10:00:17 +07:00
jahorton
dbded0dd23 refactor(web): osk.prepare -> constructor, sync _Load 2021-07-07 11:46:12 +07:00
jahorton
e2ba78582e feat(web): prevents crash on null keyman.osk field 2021-07-07 11:45:27 +07:00
Darcy Wong
082ed9bd9c chore(web): Add button to test keyboard stub
* Per review comment, have separate button to add keyboard  involving keyboard stub with languages Object and no filename.
2021-07-07 10:45:53 +07:00
Darcy Wong
20fa22dab6 fix(web): Move code to registerStub 2021-07-05 13:52:16 +07:00
Darcy Wong
d37e48c0cc fix(web): Start fixing registeruStub return 2021-07-02 16:53:23 +07:00
Darcy Wong
6af2831c23 chore(web): Merge branch 'master' into feat/web/add-keyboard-promise 2021-07-02 09:04:58 +07:00
Marc Durdin
55c2192171
Merge pull request #5348 from keymanapp/feat/web/949-spacebar-text-controls
feat(web): spacebar text controls
2021-07-02 08:17:59 +10:00
Darcy Wong
2215452d20 chore(web): Rename to mergeAndResolveStubPromises 2021-07-01 10:11:56 +07:00
Darcy Wong
cbfc9b9f6b
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-07-01 09:53:35 +07:00
Darcy Wong
53b21d877a chore(web): Add keyboard ID to error message 2021-06-30 11:17:12 +07:00
Darcy Wong
144125080b feat(web): Handle deferment of adding keyboards 2021-06-30 10:26:19 +07:00
Darcy Wong
c68251bd23 fix(web): Fix adding single language element 2021-06-30 08:54:22 +07:00
Darcy Wong
da7a5b0f2e chore(web): Minor cleanup 2021-06-30 08:37:00 +07:00
Darcy Wong
55bcdc5429 fix(web): Refactor merge of stubs 2021-06-29 16:50:10 +07:00
Darcy Wong
f706540165 feat(web): Fix handling of keyboardStubs and errorStubs 2021-06-29 13:28:31 +07:00
Darcy Wong
2622171456 feat(web): Update registerDeferredStubs to return a Promise 2021-06-29 10:32:03 +07:00
Darcy Wong
f5e7343d35 chore(web): Handle args in kmwbase 2021-06-29 08:51:57 +07:00
Darcy Wong
1d6ed84155 feat(web): Start updating addKeyboards to return Promise 2021-06-28 23:39:15 +07:00
Marc Durdin
e56f377d69
Merge branch 'master' into feat/web/949-spacebar-text-controls 2021-06-28 16:01:26 +10:00
Marc Durdin
5fe40f70a5 fix(web): allow addKeyboards to set displayName
While `registerStub` supported `displayName`, `mergeStub`, as used by
`addKeyboards`, also needs to support it.
2021-06-28 10:31:27 +10:00
Darcy Wong
972d6920b4 chore(web): Update languageListPromise type 2021-06-25 12:38:19 +07:00
Darcy Wong
37c42e7dee chore(web): Merge branch 'feat/web/alert-option' into feat/web/error-stubs 2021-06-25 09:24:19 +07:00
Darcy Wong
c14443d798 chore(web): Cleanup console logging 2021-06-25 08:45:00 +07:00
Darcy Wong
c8f7a4cdf4 fix(web): Use util.internalAlert() wrapper 2021-06-24 13:02:49 +07:00
Darcy Wong
36acc16927 fix(web): Check useAlerts on internal calls 2021-06-24 11:42:02 +07:00
Darcy Wong
63e01e8d0b chore(web): Cleanup keymanCloudRequest type 2021-06-24 10:39:11 +07:00
Darcy Wong
246e0cd250 fix(web): Clean up Error returns 2021-06-24 10:07:00 +07:00
Marc Durdin
38fc826fbf feat(web): spacebar text controls
Relates to #949.

* Adds optional `displayName` property to keyboard stubs: if present,
  this will override the name on the spacebar.

* Adds optional `spacebarText` member to `keyman.options`. This defaults
  to `SpacebarText.LANGUAGE_KEYBOARD`, and can be one of:

  ```
  SpacebarText.LANGUAGE
  SpacebarText.KEYBOARD
  SpacebarText.LANGUAGE_KEYBOARD
  SpacebarText.BLANK
  ```

* Sets the display pattern for LANGUAGE_KEYBOARD to be
  "language - keyboard" instead of "language (keyboard)", which
  reduces the number of parentheses visible on the spacebar.
2021-06-24 08:44:23 +10:00
Darcy Wong
f46d06907a fix(web): Update ErrorStub type 2021-06-23 21:32:17 +07:00
Darcy Wong
359eabec2f feat(web): Merge keyboard stub with error stub 2021-06-23 16:19:37 +07:00
Darcy Wong
9bbd8035e0 fix(web): Start addressing review comments 2021-06-18 15:26:54 +07:00
Darcy Wong
d1b76684a2
Apply suggestions from code review
Co-authored-by: Marc Durdin <marc@durdin.net>
2021-06-18 14:51:37 +07:00
Darcy Wong
d762c80125 chore(web): Adjust call in languageUnavailable 2021-06-17 13:08:44 +07:00
Darcy Wong
b2636603d8 feat(web): Add option useAlerts to control alerts() 2021-06-17 13:03:56 +07:00
Darcy Wong
8633c07516 chore(web): More cleanup
* Clarify TODO
* Consolidate addKeyboardsForLanguage() call in commonHeader.js
2021-06-17 10:53:58 +07:00
Darcy Wong
d599a406f3
Apply suggestions from code review
Co-authored-by: Joshua Horton <joshua_horton@sil.org>
2021-06-17 08:58:08 +07:00
Darcy Wong
e81a7c1611 fix(web): Fix return of nested promises 2021-06-16 17:57:17 +07:00
Darcy Wong
59f26a0e64 chore(web): Remove Error return type 2021-06-16 09:26:59 +07:00
Darcy Wong
2c0f8e8566 chore(web): Minor cleanup 2021-06-15 12:59:00 +07:00
Darcy Wong
083d2ba711 fix(web): Use async/await for getting language list catalog 2021-06-15 12:27:27 +07:00
Darcy Wong
6899a52616 fix(web): Add nested promises 2021-06-14 15:10:43 +07:00
Darcy Wong
2e9cbc58dd fix(web): Add catch for errors 2021-06-13 08:24:50 +07:00