Skip to content
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

enh(profile): Refactor code to use vue components and styles where possible #42668

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

susnux
Copy link
Contributor

@susnux susnux commented Jan 9, 2024

Summary

Refactor profile view to make use of standard vue components. This reduces code complexity and duplicated code.
Moreover some visual bugs are resolved, e.g. the profile action buttons now work correctly (see below).

Also a lot of custom styling is removed in favor of our component styles from the nextcloud vue library.

actions before actions after
Screenshot_20240109_194640 Screenshot_20240109_203810

Checklist

@susnux susnux added this to the Nextcloud 29 milestone Jan 9, 2024
@susnux susnux requested review from skjnldsv, emoral435, a team and sorbaugh and removed request for a team January 9, 2024 18:55
@susnux susnux added enhancement 3. to review Waiting for reviews feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.) labels Jan 9, 2024
@susnux susnux force-pushed the enh/refactor-profile branch 2 times, most recently from b9517e7 to 8742fab Compare January 9, 2024 19:40
@susnux susnux changed the title Enh/refactor profile enh(profile): Refactor code to use vue components and styles where possible Jan 9, 2024
@susnux susnux requested a review from Pytal January 9, 2024 19:41
@susnux susnux marked this pull request as ready for review January 9, 2024 19:41
@emoral435
Copy link
Contributor

unrelated comment to the PR - wish I could review this PR while at University because it looks like a good change, but my computer has 3% 😔 will try to review later if not merged !

Copy link
Member

@Pytal Pytal left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🖖

@emoral435 emoral435 force-pushed the enh/refactor-profile branch from 8742fab to e1cd0f3 Compare January 10, 2024 17:22
@emoral435 emoral435 enabled auto-merge January 10, 2024 17:22
@emoral435 emoral435 merged commit 5e6f6b2 into master Jan 10, 2024
49 of 50 checks passed
@emoral435 emoral435 deleted the enh/refactor-profile branch January 10, 2024 18:50
@nickvergessen
Copy link
Member

OpenAPI / openapi (pull_request) Failing after 1m

Merged with red CI breaking it.

@@ -42,7 +42,7 @@
use OCP\Share\IManager as IShareManager;
use OCP\UserStatus\IManager as IUserStatusManager;

#[IgnoreOpenAPI]
#[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sadly this is not supported by the tool yet.... Still waiting for @provokateurin in nextcloud/openapi-extractor#24

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix in #42705

@susnux
Copy link
Contributor Author

susnux commented Jan 20, 2024

/backport to stable28

@blizzz blizzz mentioned this pull request Mar 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement feature: profile PRs or issues related to the Profile feature (e.g. Profile page, API, etc.)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants