D. Berge
d5af6df052
Merge branch '177-refactor-users-code' into 'devel'
...
Refactor users code
Closes #177 and #176
See merge request wgp/dougal/software!57
2025-07-25 12:26:39 +00:00
D. Berge
daa700e7dc
Add (temporarily disabled) menu option for vessel config.
...
The idea is to have a frontend access to a screen where duly
authorised users can modify vessel-wide configuration parameters.
2025-07-25 14:01:49 +02:00
D. Berge
8db2c8ce25
Use access rights mixin in Equipment view
2025-07-25 13:36:16 +02:00
D. Berge
890e48e078
Revert "Don't refresh projects if no user is logged in."
...
This reverts commit 3a0f720f2f .
2025-07-25 13:35:35 +02:00
D. Berge
11829555cf
Add <v-tooltip/> showing permissions.
...
Hovering over the user avatar or a project name in the breadcrumbs
shows a tooltip with the relevant permissions.
2025-07-25 13:33:59 +02:00
D. Berge
07d8e97f74
Fix Markdown functions in root component
2025-07-25 13:32:30 +02:00
D. Berge
fc379aba14
Silence errors when refreshing projects.
...
We use this endpoint also to do autologins, so HTTP 403's are not
unexpected.
2025-07-25 13:31:28 +02:00
D. Berge
8cbacb9aa7
Allow silencing API request errors.
...
The {silent: true} option in the new `opts` argument to the
`api` action does the trick.
2025-07-25 13:30:26 +02:00
D. Berge
acb59035e4
Add missing file
2025-07-25 13:29:39 +02:00
D. Berge
b7d0ee7da7
Remove dead code from the frontend
2025-07-25 11:02:24 +02:00
D. Berge
3a0f720f2f
Don't refresh projects if no user is logged in.
...
Avoids a 403.
2025-07-25 10:43:08 +02:00
D. Berge
6cf6fe29f4
Improve presentation of organisation component in project settings
2025-07-24 23:04:44 +02:00
D. Berge
6f0f2dadcc
Add "actions" slot to DougalOrganisations component
2025-07-24 23:04:15 +02:00
D. Berge
64fba1adc3
Add project permissions tooltip to breadcrumbs
2025-07-24 23:03:41 +02:00
D. Berge
b1b7332216
Add access mixin to Project and use in child component
2025-07-24 20:43:22 +02:00
D. Berge
8e7451e17a
Adapt the access rights mixin to new user management code
2025-07-24 20:42:25 +02:00
D. Berge
bdeb2b8742
Show organisation membership in user avatar
2025-07-24 20:41:07 +02:00
D. Berge
ccfabf84f7
Add user management page to frontend
2025-07-24 20:40:18 +02:00
D. Berge
5d4e219403
Refactor Vuex store to adapt to new User class
2025-07-24 20:38:51 +02:00
D. Berge
3b7e4c9f0b
Add client-side User class derived from @dougal/user.
...
Adds methods to communicate with the backend.
2025-07-24 20:37:50 +02:00
D. Berge
683f5680b1
Add organisations configuration section to project settings UI
2025-07-24 20:36:45 +02:00
D. Berge
ce901a03a1
Add component for editing users
2025-07-24 20:35:46 +02:00
D. Berge
f8e5b74c1a
Add components for editing organisations settings
2025-07-24 20:35:17 +02:00
D. Berge
ec41d26a7a
Use @dougal/user, @dougal/organisations modules in frontend
2025-07-24 20:32:25 +02:00
D. Berge
7f067ff760
Add contextual info about sailline CSV files.
...
The information that has to go on those and their layout is not
very obvious so adding a contextual help dialogue and an example
file puts the user on the right track.
Closes #319
2025-07-20 11:03:10 +02:00
D. Berge
1295ec2ee3
Add function to return allowed operations in a given context
2025-07-13 00:01:15 +02:00
D. Berge
ae79d90fef
Remove obsolete Vuex getters
2025-07-12 11:31:38 +02:00
D. Berge
c8b2047483
Refactor client-side access checks.
...
Go from a Vuex based to a mixin based approach.
2025-07-12 11:31:38 +02:00
D. Berge
d21cde20fc
Add mixin to check access rights client-side.
...
This replaces the Vuex getters approach (writeaccess, adminaccess)
which, as access rights are no longer global but dependent on each
project's settings, are no longer appropriate.
2025-07-12 11:31:38 +02:00
D. Berge
25f83d1eb3
Share access() function between front and back end.
...
This is so that any changes to the code are reflected on both sides.
2025-07-12 11:31:38 +02:00
D. Berge
dc294b5b50
Change prefix used for storing user preferences.
...
The `role` value no longer exists; we're replacing that with the
user ID.
2025-07-12 11:31:38 +02:00
D. Berge
bdf62e2d8b
Show project orgs in projects list
2025-07-11 22:46:47 +02:00
D. Berge
1895168889
Show user orgs in avatar
2025-07-11 22:46:47 +02:00
D. Berge
071fd7438b
Reimplement <dougal-project-settings-online-line-name-format/>.
...
Closes #297 .
2025-07-09 16:45:35 +02:00
D. Berge
9cc21ba06a
Mark planned reshoots as such
2025-07-09 16:40:48 +02:00
D. Berge
0ef2e60d15
Do not fail on non-existing property
2025-07-03 11:44:52 +02:00
D. Berge
289d50d9c1
Update caniuse database
2025-06-27 00:23:37 +02:00
D. Berge
e6669026fa
Add validation messages for final P1/11 lineNameInfo
2025-06-26 23:48:35 +02:00
D. Berge
12082b91a3
Add validation messages for raw P1/11 lineNameInfo
2025-06-26 23:47:38 +02:00
D. Berge
7db9155899
Add default fields for raw P1/11 lineNameInfo
2025-06-26 23:46:49 +02:00
D. Berge
f8692afad3
Add named slots to DougalProjectSettingsFileMatchingParameters.
...
Used to display error or information messages.
2025-06-26 23:41:51 +02:00
D. Berge
028cab5188
Add default fields for raw P1/11 lineNameInfo
2025-06-26 23:41:00 +02:00
D. Berge
fc73fbfb9f
Add GUI for editing lineNameInfo of final P1/111
2025-06-26 23:40:28 +02:00
D. Berge
96a8d3689a
Add defaults for lineNameInfo text and fields
2025-06-26 23:39:47 +02:00
D. Berge
ec26285e53
Refresh caniuse's browser statistics.
...
In other words:
npx update-browserslist-db@latest
2024-05-06 12:13:06 +02:00
D. Berge
40bc1f9293
Fix log sequence view
2024-05-04 17:29:31 +02:00
D. Berge
8c6eefed97
Add support for fixed strings to file parameters widget
2024-05-04 17:27:55 +02:00
D. Berge
59971a43fe
Support fixed text in <dougal-fixed-string-decoder/>
2024-05-04 17:27:08 +02:00
D. Berge
a2a5a783a3
Add <dougal-fixed-string-text/> component.
...
It's similar to <dougal-fixed-string-decoder-field/> but it handles
static strings.
Used to match, e.g., file names, where certain parts of the name
are expected to contain a specific string (such as a project prefix
and the like).
2024-05-04 17:24:52 +02:00
D. Berge
c20b3b64c7
Fix symlink target
2024-05-01 10:40:04 +02:00