-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Use nextcloud-vue components for personal info settings #43488
fix: Use nextcloud-vue components for personal info settings #43488
Conversation
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
ee48e44
to
3894f4a
Compare
Resolved the issue with different input sizes. Needed to refactor all sections to use nextcloud vue inputs. Moreover some other minor issues are now fixed. And everything is CI tested now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested and seems to work. Also looks amazing 🤩
(but didnt review the code)
@szaimen I did not change anything on the logic there - I just show an error when there is one. Before it silently failed and did not save anything. (libphonenumber is the dependency we use there). |
Ah I see. Fine then I guess 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than minor remarks, code looks good!
apps/settings/src/components/PersonalInfo/EmailSection/Email.vue
Outdated
Show resolved
Hide resolved
apps/settings/src/components/PersonalInfo/shared/AccountPropertySection.vue
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Great PR :)
<NcActions :aria-label="actionsLabel" @close="showFederationSettings = false"> | ||
<template v-if="showFederationSettings"> | ||
<NcActionButton @click="showFederationSettings = false"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Isn't the latter @click
redundant, due to the parent NcActions having the same effect on close? It can be removed, because the action gets done twice whenever the button is clicked to close.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No thats two different actions as this is a "submenu".
This one (the button click
) is to allow the user to go back in the menu. The close
event is to reset the menu to the main menu on close.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I see. My bad!
…ponents Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
…m handling Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Pytal <24800714+Pytal@users.noreply.github.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
8eaf83c
to
274867f
Compare
apps/settings/src/components/PersonalInfo/LanguageSection/LanguageSection.vue
Show resolved
Hide resolved
<FederationControlActions :additional="additional" | ||
:additional-value="additionalValue" | ||
:handle-additional-scope-change="handleAdditionalScopeChange" | ||
:readable="readable" | ||
:scope="scope" | ||
@update:scope="onUpdateScope" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NcActions
doesn't fully support having NcAction*
as non-direct children. It breaks a11y fixes for this component from #43098
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds like fixing in components? Can we not provide some registration in actions and inject in NcAction* component to register the different types? So we know for sure which aria role to assign?
Summary
Use our common styles to make the look consistent.
Checklist