8 Commits
Author SHA1 Message Date
David Straub c65ee3b7e6 Manage several sync tokens per user (#1482)
* Manage several sync tokens per user

Move persistent access token management from the user settings view into
a new grampsjs-access-tokens component and support scopes with several
labelled tokens per user (gramps-web-api#1033), used for sync devices.

Each sync token is listed with its label, creation and last use time and
can be revoked on its own. New tokens are created with a device name and
their value is shown once. Servers without the token list endpoint answer
404, and the sync scope is hidden, so older API versions keep working.

* Accept 204 responses and refresh tokens when settings are shown

Revoking a sync token returns 204 No Content, which apiPutPostDelete
treated as an error, so successful revocations were reported as failures.

The token component's active binding never became false because inactive
views don't render, so it didn't reload when the settings view was shown
again. The view now calls the component's refresh() on activation.
2026-10-04 14:55:51 +02:00
David Straub bae926895a Prevent bugs when changing trees (#1449)
* Prevent bugs when changing trees

* Address comment

* Address comments

* Refactor

* Refactor once more

* Address comment

* Address comment

* Last time I address a comment
2026-09-23 16:59:45 +02:00
David Straub 6f69ee3563 Fix OIDC logout (#1329) 2026-08-05 15:51:15 +02:00
David Straub bd47b7d03c Commit missing test 2026-07-29 14:58:56 +00:00
David Straub 74caa938dc Allow admin accounts to create a tree (#1321)
* Allow admin accounts to create a tree

* Address comments

* Refactor

* Add guard
2026-07-29 16:47:41 +02:00
IliaandIlia Mikhailov 7b51acf583 fix(tasks): clean up polling listeners (#1049)
Co-authored-by: Ilia Mikhailov <iliamikhailov@MacBook-Pro-Ilia.local>
2026-04-07 20:38:37 +02:00
David Straub 76b8f87ce0 Grey out login button; more helpful errors (#1029)
* Grey out login button; more helpful errors

* Reviewer comments

* Add tests

* Reviewer comments
2026-04-02 09:49:03 +02:00
Juan GarciaandJuan Garcia 26ecbfd830 Fix: Pass appState to grampsjs-task-progress-indicator in all views (#1012)
* Fix: Pass appState to grampsjs-task-progress-indicator in all views

* Add unit test

---------

Co-authored-by: Juan Garcia <juangarcia@Juans-Mac-mini.local>
2026-03-30 08:23:08 +02:00