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

Move theme switcher to account settings #10334

Merged
merged 6 commits into from
Jan 16, 2024

Conversation

lookacat
Copy link
Contributor

@lookacat lookacat commented Jan 15, 2024

Description

See #10181

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

Open tasks:

  • Add the auto theming option

@lookacat lookacat changed the base branch from master to enable-preferences-for-not-logged-in-users January 15, 2024 14:47
@delete-merged-branch delete-merged-branch bot deleted the branch master January 15, 2024 15:21
@lookacat lookacat force-pushed the move−theme−switcher−account−settings branch from 689fdb2 to 4686fc6 Compare January 15, 2024 15:25
@lookacat lookacat changed the base branch from enable-preferences-for-not-logged-in-users to master January 15, 2024 15:25
@AlexAndBear AlexAndBear changed the title Move−theme−switcher−account−settings Move theme switcher to account settings Jan 15, 2024
@AlexAndBear AlexAndBear force-pushed the move−theme−switcher−account−settings branch from cfc2ae3 to 74890b7 Compare January 15, 2024 18:26
Copy link

@lookacat lookacat marked this pull request as ready for review January 16, 2024 11:28
@lookacat lookacat merged commit c2f347e into master Jan 16, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the move−theme−switcher−account−settings branch January 16, 2024 11:28
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move this file away from the Topbar folder when it's not part of the topbar anymore.

Comment on lines +409 to +411
const onUpdateTheme = () => {
showMessage({ title: $gettext('Preference saved.') })
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Why handle this here via events? I'd expect the ThemeSwitcher to handle the message 😅

Copy link
Contributor

@AlexAndBear AlexAndBear Jan 16, 2024

Choose a reason for hiding this comment

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

Why would you expect that?
The ThemeSwitcher doesn't know anything about the context. In that case we would expect a message like "Theme saved" or something like this.
But for account.vue we don't want to go too much into detail with the success message

Copy link
Contributor

Choose a reason for hiding this comment

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

Because it seems unnecessarily complicated to me 🤷 It's not that we're updating data or something in the parent component which would justify that. I'd rather have all theme-logic decoupled in the ThemeSwitcher component (same like e.g. the GDPRExport component handles all gdpr related stuff).

@micbar micbar mentioned this pull request Jun 19, 2024
24 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Move Theme switcher to Account Settings Page
3 participants