Commit graph

72 commits

Author SHA1 Message Date
Ferdinand Thiessen
f6e6ba4851 refactor(styles): Adjust code style in SCSS sources to match our stylelint config
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-11-19 09:42:13 +01:00
Ferdinand Thiessen
e8c1e2c611
fix(code-style): Adjust JS code to our code style
This resolves 68 ESLint warnings about invalid code style.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-10-16 22:11:59 +02:00
Grigorii K. Shartsev
7e03371dd7 chore(sass): migrate from deprecated mixed decls
Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2024-10-14 18:52:36 +02:00
provokateurin
51d9d63a01
chore: Use more gender neutral language
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-10-14 13:59:24 +02:00
Ferdinand Thiessen
085aab24ff
chore: fix usage of deprecated functions and adjust code style
This solves 57 ESLint warnings by replacing deprecated code with `@nextcloud/` libraries,
as well as adding missing type information, importing jQuery instead of relying on global one,
and the same with Moment.js.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-09-20 03:30:20 +02:00
Ferdinand Thiessen
aea0e8df6a fix: Adjust more places for logical position
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-08-29 08:32:48 +00:00
Mostafa Ahangarha
723780d184 feat: Add bidi support in core directory
Signed-off-by: Mostafa Ahangarha <ahangarha@riseup.net>
2024-08-29 08:32:47 +00:00
Jérôme Herbinet
f9bf3eda1c
fix(wording): "Line" manager instead of "Account" manager
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2024-08-26 18:08:04 +02:00
Louis Chemineau
3574d7eec8
feat(users): Enable features for delegated user admins
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-07-22 19:58:44 +02:00
Louis Chemineau
1af827fdb3
fix(users): Improve error handling of some fields update
Signed-off-by: Louis Chemineau <louis@chmn.me>
2024-07-22 17:17:35 +02:00
Ferdinand Thiessen
4bcb0734cd
refactor: Fix some linting issues in frontend code
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-19 22:45:13 +02:00
Christopher Ng
feb9a2f862
fix(settings): Fix endless spinner when wiping or deleting accounts
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-07-19 10:42:53 +02:00
Christopher Ng
07319a118b feat: Add Recent accounts section
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-07-11 11:19:09 -07:00
Ferdinand Thiessen
691f570237
chore: Enable ESLint for apps and fix all errors
Nevertheless this causes a huge amount of new warnings.
Previously the shell script for directories to lint was wrong it was generating all app names to lint,
but was missing the `apps/` prefix. Causing only `core` to be linted.

Co-authored-by: Grigorii K. Shartsev <me@shgk.me>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-07-09 17:13:30 +02:00
Christopher Ng
4b392ebb4e perf(settings): Optimize user list scroll performance
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-07-08 17:37:35 -07:00
Jérôme Herbinet
7b13405370
fix: Better wordings in the new user modal
Co-authored-by: Jan C. Borchardt <925062+jancborchardt@users.noreply.github.com>
Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com>
Co-authored-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
Signed-off-by: Jérôme Herbinet <33763786+Jerome-Herbinet@users.noreply.github.com>
2024-06-25 00:10:13 +02:00
Ferdinand Thiessen
81ad28f910
chore(deps): Update debounce to 2.1.0
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-06-23 16:53:10 +02:00
Christopher Ng
d32f7d1ff6 feat(settings): Support svg user row action icons
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-06-06 17:25:50 -07:00
Christopher Ng
51cd2ad13d feat(settings): Close user row action menu after click
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-06-05 15:05:39 -07:00
Christopher Ng
1de77edfdf feat(settings): Add action enabled callback
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-06-05 15:05:39 -07:00
Andy Scherzinger
ec5b60af28
chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-06-03 20:33:31 +02:00
Christopher Ng
6b583f73b7 chore: Change more "user" strings to "account"
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-30 15:32:20 -07:00
Christopher Ng
fad49e6aee refactor: Shorten input focus calls
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-30 15:32:20 -07:00
Christopher Ng
76104aa709 fix: Autofocus username input
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-30 15:32:20 -07:00
Christopher Ng
45ba61bbfb refactor: Migrate to built-in NcSelect input label
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-30 15:32:19 -07:00
Christopher Ng
6f63ecfc80 chore: Change some "user" strings to "account"
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-30 15:32:19 -07:00
Christopher Ng
359003da12 fix(settings): Move user creation modal to dialog
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-30 15:32:19 -07:00
Christopher Ng
6815d5b8aa chore(settings): Rename "User backend" to "Account backend"
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-17 10:15:46 -07:00
Christopher Ng
5b260ff480 chore(settings): Change "username" to "account name"
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-17 10:15:46 -07:00
Christopher Ng
553b8d5425 feat: Split display name and username columns
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-05-14 09:50:51 -07:00
Ferdinand Thiessen
5453c1d7fa
feat(settings): Allow to sort groups in the account management alphabetically
We can do this purly in the frontend - but when enforced from the backend using the existing system config,
we need to follow the requirement. We then show a warning about the configuration.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-27 12:04:03 +01:00
Jérôme Herbinet
c97d63540a fix: more comprehensive wording for devices wipe action
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
2024-03-16 13:18:08 +01:00
Ferdinand Thiessen
78bcab1aac
fix(settings): Save account management settings in local storage
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-11 16:02:40 +01:00
Ferdinand Thiessen
30d5b02811
feat(settings): Split account management into navigation and content
The should ease the maintenance of it due to reduced complexity.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-11 16:02:34 +01:00
Ferdinand Thiessen
c3c6de7bcb
fix(settings): Refactor logger code to use Typescript
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-03-05 12:55:31 +01:00
Christopher Ng
81b027574f fix(settings): Fix required groups validation for subadmins
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-02-20 18:27:46 -08:00
John Molakvoæ
b1a47f79f3
fix: cypress
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-02-13 21:08:08 +01:00
Vincent Petry
839ddaa354
feat: rename users to account or person
Replace translated text in most locations

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2024-02-13 21:06:30 +01:00
Ferdinand Thiessen
b758e0496e
fix: Correctly import types in Typescript files
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2024-02-13 18:04:45 +01:00
Christopher Ng
fa295625ab fix(l10n): Add context note for table footers
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2024-01-15 11:26:29 -08:00
John Molakvoæ
0a34cf846f
fix(settings): set default or unlimited user quota
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2024-01-12 08:42:48 +01:00
Marcel Klehr
162f801744 fix(Users/Quota setting): Prevent floating point value from getting truncated in locales other than english
fixes #18468

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
2023-12-07 09:57:21 +01:00
Christopher Ng
919b5dbdf5 fix(settings): Duplicate update user manager calls
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-11-28 10:50:05 -08:00
Christopher Ng
722b78ea3f fix(settings): User row text field styles
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-11-16 16:14:36 -08:00
Ferdinand Thiessen
a106b7b7be
fix(settings): Pass user object to user row actions
This is required as otherwise the action has no information on which user it was called

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-11-08 21:49:26 +01:00
Ferdinand Thiessen
5b0c27b6da
fix(settings): Stablize user list cypress tests
* Use common `data-testid` to identify elements rather than to depend on internal classes or properties
* Force clean the state for the user tests
* Move leftover acceptance tests for users from drone to cypress

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-25 11:36:24 +02:00
Grigorii K. Shartsev
d33ce8a8d5 fix(settings): label user quota progress with aria-labelledby
Labeling with `<label>` doesn't work in some screen readers.
`<label>` also doesn't work as a clickable link here.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-10-21 04:16:45 +02:00
Grigorii K. Shartsev
5249c3376e fix(settings): users page html validation
- Remove non-existing `button-class` from `NcAppNavigationNew`
- Type: use `input-id` instead of `id` on `NcSelect` to be labeled
- Encode uniqueId with user's ID, because user.id may contain space

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-10-21 03:49:01 +02:00
Grigorii K. Shartsev
2d6cd78c32
fix: replace non-standard autocorrect with spellcheck attribute
`autocorrect` was actual for Safari long time ago when Safari didn't fully supported HTML 5 spellcheck.

Signed-off-by: Grigorii K. Shartsev <me@shgk.me>
2023-10-20 00:35:51 +02:00
Ferdinand Thiessen
3f83ae145f
fix(cypress): Test using data-test-id attributes rather than private classes
Makes the test more resilant to inner component changes of the `@nextcloud/vue` library.

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-10-19 16:17:20 +02:00