Skip to content

Conversation

@setchy
Copy link
Member

@setchy setchy commented Aug 6, 2024

Toggling this setting has no affect when there are multiple accounts authenticated.

@setchy setchy added this to the Release 5.13.0 milestone Aug 6, 2024
@github-actions github-actions bot added the enhancement New feature or enhancement to existing functionality label Aug 6, 2024
Signed-off-by: Adam Setch <[email protected]>
return btoa(`${account.hostname}-${account.user.id}-${account.method}`);
}

export function hasAccounts(auth: AuthState) {
Copy link
Member

Choose a reason for hiding this comment

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

😅

label="Show account hostname"
checked={settings.showAccountHostname}
checked={settings.showAccountHostname || hasMultipleAccounts(auth)}
disabled={hasMultipleAccounts(auth)}
Copy link
Member

Choose a reason for hiding this comment

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

Why exactly do we need to disable this on multiple accounts?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because of this prop

showAccountHostname={
hasMultipleAccounts || settings.showAccountHostname

Copy link
Member

Choose a reason for hiding this comment

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

I see, but can't the hostname be the same on some situations?

Copy link
Member Author

Choose a reason for hiding this comment

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

Indeed, we support repeated hostnames now.

Copy link
Member Author

Choose a reason for hiding this comment

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

so single account, feature flag toggles showing the account header
multiple accounts, feature flag does nada

Copy link
Member

Choose a reason for hiding this comment

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

Right, but does it make sense for it to be disabled on the situations where it is the same for example?

Copy link
Member Author

Choose a reason for hiding this comment

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

showAccountHostname is misleading nowdays. It really should be showAccountNameHeader or something like that as it represents the row containing account name, account avatar, account platform type, etc

Copy link
Member Author

Choose a reason for hiding this comment

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

Renamed in #1464

@setchy setchy requested a review from afonsojramos August 14, 2024 20:24
@setchy setchy merged commit 6845caa into main Aug 16, 2024
@setchy setchy deleted the feature/show-account-setting branch August 16, 2024 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or enhancement to existing functionality

Development

Successfully merging this pull request may close these issues.

3 participants