Commit graph

102 commits

Author SHA1 Message Date
julia.kirschenheuter
381e3ed0b9 Replace custom input field with NcInputField
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-08-31 11:37:50 +02:00
Julia Kirschenheuter
e42d82fe13
Merge pull request #39987 from nextcloud/fix/39926-fix_predefined_status-buttons
Fix predefined status buttons
2023-08-22 15:07:46 +02:00
julia.kirschenheuter
558f5f97fc Add logic for predefined status to be visible.
Add styles for radio buttons to be visible in checked, active and focus-visible state.

Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-08-22 13:20:34 +02:00
Richard Steinmetz
6982597b6a
feat(dashboard): implement widget item api v2
This API enables the dashboard to render all widgets from the API data
alone without having apps to provide their own bundles. This saves a lot
of traffic and execution time as a lot less javascript has to be parsed
on the frontend.

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2023-08-22 08:36:53 +02:00
julia.kirschenheuter
9545826fc4 Set double outline on checked state for radio buttons
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-08-16 13:22:13 +02:00
Ferdinand Thiessen
663db2bb34 chore: Update nextcloud-vue to v8 beta2 and renamed changed properties
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-08-02 15:19:26 +02:00
julia.kirschenheuter
34bbb4ed48 Set double outline to buttons in focus state
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-07-11 11:22:39 +02:00
Maksim Sukharev
bcb074a90d
wrap user status message input and buttons with native form
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-06-28 15:38:17 +02:00
Ferdinand Thiessen
8506d9018a fix(user_status): Remove redundant styling, use global class instead
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-15 14:31:32 +02:00
Ferdinand Thiessen
e93b20c656 fix(user_status): Use native radio buttons for online status selection
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-15 14:31:32 +02:00
Ferdinand Thiessen
349e12eb56 fix(user_status): Add missing radiogroup role to online status selector
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-15 14:31:32 +02:00
Ferdinand Thiessen
a99265bfbe fix(user_status): Group custom message input elements and assign label to emoji selector
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-15 14:31:32 +02:00
Ferdinand Thiessen
2133b0ecdd fix(user_status): Use role=radio for predefined statuses in online status modal
* Instead of tabable DIVs properly assign the radio role
* Set role to radiogroup of list container to group the predefined statuses

Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2023-05-15 14:31:32 +02:00
Simon L
f5e8268ced Use the color-primary-element* variables
Signed-off-by: Simon L <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2023-05-13 10:15:33 +00:00
Maksim Sukharev
7455df35e3
fix(status): Store locally status message when editing
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-04-18 15:06:29 +02:00
Maksim Sukharev
e2b377f85c
fix(status): Fix infinite loading of predefined statuses
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
2023-04-18 15:06:08 +02:00
Joas Schilling
c90d414fdf
fix(status): Correctly set the message and predefined message using the store
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-18 14:58:12 +02:00
Joas Schilling
64776ff042
feat(user_status): Allow to manually revert an automated status
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-04-18 14:57:44 +02:00
julia.kirschenheuter
0df1361ddd Add aria-hidden='true' to decorative icons inside of modal dialogs
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
2023-04-06 12:37:40 +02:00
John Molakvoæ
8633f13e0a
chore(eslint): fix missing import extensions
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
2023-03-23 08:14:19 +01:00
Christopher Ng
86ddc3f3bb Port clear user status select
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-02-28 17:19:06 -08:00
Christopher Ng
c77998209f Port user menu to Vue
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-02-09 17:54:59 -08:00
jld3103
1f49a56a98
Fix user_status heartbeat response
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2023-01-25 07:16:26 +01:00
Christopher Ng
5ab35aaa7a Fix user status message input
Signed-off-by: Christopher Ng <chrng8@gmail.com>
2023-01-20 16:24:15 -08:00
Joas Schilling
5506229d76
fix(user_status): Allow to use enter to complete characters without automatically closing the modal
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-12 16:57:37 +01:00
Joas Schilling
f998fe0af3
Update the user status dashboard widget and fix the icon color
Signed-off-by: Joas Schilling <coding@schilljs.com>
2023-01-02 11:38:27 +01:00
julia.kirschenheuter
af14bbbbbc Change header semantic in the user status dialog
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-11-29 07:29:45 +00:00
julia.kirschenheuter
e056cd621d User status dialog a11y: make different focus and active state for OnlineStatusSelect and PredefinedStatus
Signed-off-by: julia.kirschenheuter <julia.kirschenheuter@nextcloud.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-11-17 17:08:24 +00:00
Carl Schwan
a18f5e76d5 Make css rule important
Co-authored-by: Joas Schilling <213943+nickvergessen@users.noreply.github.com>
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-10-18 08:13:01 +00:00
Carl Schwan
7d35e2223b Fix vertical alignment of user status icon
Now it is properly centered even if the font size is bigger (when using
the dislexia font)

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-10-17 16:09:26 +02:00
John Molakvoæ (skjnldsv)
009700f16e Fix invisible status
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-09-29 17:55:44 +00:00
John Molakvoæ (skjnldsv)
21fd2d8317 Fix user status emoji picking
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
2022-09-28 18:42:13 +00:00
Carl Schwan
3fcb05e900
Port Profile section checbox to NcCheckoxRadioSwitch component
Improve accessibility and unify the design

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-09-12 15:38:20 +02:00
Carl Schwan
f3ec1d3a9f
Fix user status in the top bar with dark theme
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-09-09 13:37:52 +02:00
Julius Härtl
4beae14fee
Avoid using lists if there are none on the dashboard
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-08-29 08:05:51 +02:00
Julius Härtl
ce9c0b5e30
Fix status button background on dashboard
Signed-off-by: Julius Härtl <jus@bitgrid.net>
2022-08-29 08:05:51 +02:00
Carl Schwan
f1ce2c2b93
Fix rebasing issues and improve profile settings page a bit more
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-26 19:51:10 +02:00
Carl Schwan
1d35a53991
More dark theme fixes
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-26 19:49:00 +02:00
Carl Schwan
2f30d3227f
Various fixes
- Fix user status dialog
  - Add label where missing
  - Move emoji picker inside input field (similar to talk)
  - Fix selecting an emoji
- Fix multiselect
- Fix button with confirmation action
- Fix some other unrelated dark theme issues
- Fix select2 focus
- Run npm lint:fix

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-08-26 19:49:00 +02:00
Vincent Petry
d0473214cd
Add Nc prefix to Nc vue component names
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-08-25 08:38:00 +02:00
Vincent Petry
7080187958
Bump @nextcloud/vue to 6.0.0-beta.3 and related
Update @nextcloud/vue to 6.0.0-beta.3
Update vue and vue-template-compiler to 2.7.8
Update calendar-availability-vue to 0.5.0-beta.1 to fix conflicts.

Signed-off-by: Vincent Petry <vincent@nextcloud.com>
2022-08-25 08:37:46 +02:00
jld3103
3e7a36b309
Make user status heartbeat API publicly accessible
Signed-off-by: jld3103 <jld3103yt@gmail.com>
2022-07-21 13:07:34 +02:00
szaimen
e8b1740c96 use an en-dash for the userstatus panel
Signed-off-by: szaimen <szaimen@e.mail.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-06-30 11:57:40 +00:00
Joas Schilling
1429a9a8ef
Also reset the status on clearAt
When you set yourself to "DND - In a meeting" for one hour,
the expectation is that you are also "online"/normal again
when the meeting is over. So we extend the logic to also include
the status itself to be reverted.

Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-27 11:32:53 +02:00
Joas Schilling
52737c029c
Don't overwrite certain values if the refreshing comes in via short updates
This e.g. happens from the talk participant list which only has the status, message and icon.
Due to the overwriting e.g. the clearAt was overwritten with null
and afterwards the status modal showed "Invalid date" as "Clear at"

Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-05-27 09:30:16 +02:00
Carl Schwan
6d883a8572 Fix various errors reported by eslint
And also make sure eslint doesn't try to index apps-extra that contains
other repo with not necessarely the same eslint rules

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-24 10:12:18 +02:00
Carl Schwan
c1499519d4 Improve accessibility with more visible focus indication for non vue apps
- Add visible-focus effect on each header entry
- Show focus outline when using focus-visible (keyboard navigation)
- Add polyfy for focus-visible since it's only very recently available
  on webkit
- Change text for link to home button to describe the destination and
  not the current page
- Improve focus effect in app sidebar navigation

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-05-16 13:21:48 +02:00
John Molakvoæ
fe47cf40da Dashboard fixes
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2022-04-27 10:56:20 +00:00
Carl Schwan
ddc739b5ac Retrieve user status only once when displaying page
We don't need to inject it in the template if the data is already
available in the initial state. This is also a bit cleaner.

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2022-04-05 19:28:06 +02:00
Vanessa Pertsch
b0b138675a quick fix for focus on userStatus button
Signed-off-by: Vanessa Pertsch <vanessa.pertsch@nextcloud.com>
2022-03-23 14:15:33 +01:00