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

Fix highlighting of the currently selected language #8972

Merged
merged 3 commits into from
May 3, 2023

Conversation

JammingBen
Copy link
Contributor

Description

Fixes a regression due to the refactoring in #8911. Also adds proper types for the settings stuff.

Related Issue

Screenshots:

image

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

@JammingBen JammingBen self-assigned this May 3, 2023
Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

🤩

@sonarcloud
Copy link

sonarcloud bot commented May 3, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication

@JammingBen JammingBen merged commit bd8bb65 into stable-7.0 May 3, 2023
@delete-merged-branch delete-merged-branch bot deleted the fix-current-language-highlight branch May 3, 2023 11:11
Copy link
Member

@kulmann kulmann left a comment

Choose a reason for hiding this comment

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

Not too happy with the settings related interface names. Why Account? 🤔

boolValue?: Record<string, any>
}

export interface AccountBundle {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export interface AccountBundle {
export interface SettingsBundle {

}
}

export interface AccountBundleSetting {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export interface AccountBundleSetting {
export interface Setting {

@@ -0,0 +1,53 @@
export interface SettingValue {
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
export interface SettingValue {
export interface SettingsValue {

const selectedLanguageValue = ref()
const disableEmailNotificationsValue = ref()
const valuesList = ref<SettingValue[]>()
const bundlesList = ref<AccountBundle>()
Copy link
Member

Choose a reason for hiding this comment

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

Why is the bundles list not of type ref<AccountBundle[]>? 🤔

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Because bundlesList is actually not a list of bundles but the account bundle. Let my fix that name in a follow-up, just like the new interface names :)

Copy link
Member

Choose a reason for hiding this comment

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

thank you 💪

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.

4 participants