-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
refactor: Contacts menu to Vue #40749
Conversation
Requesting early feedback. I'll try to organize the styles into BEM. Otherwise this should be mergeable. |
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.
Amazing!! 👑
Some rules to consider though:
- Classes are a bit messy, sometimes it looks like BEM, sometimes it doesn't. Let's be compliant ad follow BEM entirely? But maybe you just reused the old css classes and wanted to keep changes to a minimum, I don't know)
-
icon-loading
should be replaced with VueNcLoadingIcon
component -
emptycontent
class style should be replaced withNcEmptyContent
component - Variables should have strict typing if possible (like
this.loadingText
) - Maybe reset the error when searching again? (See
this.error
) -
contactsAppEnabled
is alwaystrue
-
searchTerm
should reset on close maybe? Not sure :)
See PR description |
I did not reset before and unified search doesn't do that either. I'm keeping the search term. |
@skjnldsv I can add Vue component unit tests as a replacement for the removed js specs. Would you be okay with that? I'd install and use https://www.npmjs.com/package/@vue/test-utils on top of jest. |
@ChristophWurst absolutely! |
Branch updated to latest master and removed two accidentally added files. @skjnldsv please double-check if I fulfilled your requested changes. |
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.
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.
🙌
Failing CI related |
@skjnldsv did you compile the sources? 🤭 Because those two bugs are fixed with the rework:
|
I think I did, but maybe I did it wrong 🙈 |
1bfb021
to
9c7472a
Compare
Pushed a rebased, squashed and compiled version. edit: I can reproduce the |
9c7472a
to
ce390cb
Compare
CI failure related afaics |
ce390cb
to
0779039
Compare
This comment was marked as outdated.
This comment was marked as outdated.
eb21c30
to
52b1c78
Compare
@ChristophWurst how much work is still to be done here? Asking because of #40873 |
|
52b1c78
to
7e05805
Compare
/compile amend / |
Signed-off-by: Christoph Wurst <[email protected]> Signed-off-by: nextcloud-command <[email protected]>
7e05805
to
6a375ca
Compare
Drone is about to pass. Cypress fails but I don't see the relation. Let's get this in. |
🎉🎉🎉🎉🎉 |
Summary
The contacts menu is still based on jQuery, Backbone and handlebars.
Changes
Screenshots
TODO
Replace icon classes with material iconsnot possible because icon URIs are provided via public APIChecklist