Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Move theme switcher to account settings - #10334

Merged
lookacat merged 6 commits into
masterfrom
move−theme−switcher−account−settings
Jan 16, 2024

Hidden character warning

The head ref may contain hidden characters: "move\u2212theme\u2212switcher\u2212account\u2212settings"
Merged

lookacat merged 6 commits into
masterfrom
move−theme−switcher−account−settings

Conversation

@lookacat

@lookacat lookacat commented Jan 15, 2024 •

Copy link
Copy Markdown
Contributor

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
@sonarqubecloud

Copy link
Copy Markdown

@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
@delete-merged-branch
delete-merged-branch Bot deleted the move−theme−switcher−account−settings branch January 16, 2024 11:28

Copy link
Copy Markdown
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
Copy Markdown
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 😅

@AlexAndBear AlexAndBear Jan 16, 2024 •

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
23 of 24 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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