Skip to content

sidebar: cleanup organization dropdown#105689

Merged
JonasBa merged 2 commits intomasterfrom
jb/sidebar/organizationdropdown
Jan 12, 2026
Merged

sidebar: cleanup organization dropdown#105689
JonasBa merged 2 commits intomasterfrom
jb/sidebar/organizationdropdown

Conversation

@JonasBa
Copy link
Member

@JonasBa JonasBa commented Jan 5, 2026

Small reorg of the OrganizationDropdown selector so I can familiarize myself with the code.

@JonasBa JonasBa requested a review from a team as a code owner January 5, 2026 22:28
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jan 5, 2026
}: OrganizationAvatarProps) {
if (!organization) {
// @TODO(jonasbadalic): Do we need a placeholder here?
Sentry.captureMessage('OrganizationAvatar: organization summary is undefined');
Copy link
Member Author

@JonasBa JonasBa Jan 5, 2026

Choose a reason for hiding this comment

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

Nothing screams if I remove the undefined type, but I don't trust the types here, so I would like to see some data first

Comment on lines 3 to 4
import type {OrganizationSummary} from 'sentry/types/organization';
import {explodeSlug} from 'sentry/utils';
Copy link
Collaborator

Choose a reason for hiding this comment

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

we should try to no tie core components to sentry specific types / utils. Maybe this shouldn’t be in scraps ?

Copy link
Member Author

Choose a reason for hiding this comment

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

It was moved here initially because it was part of the Scraps initial component set, but I agree that we should either move it out of scraps, or make it's interface not tied to the Sentry type

Copy link
Member Author

Choose a reason for hiding this comment

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

I would keep it out of the scope of this PR though, it's going to be a larger change

@JonasBa JonasBa enabled auto-merge (squash) January 12, 2026 18:14
@JonasBa JonasBa merged commit eb72fb1 into master Jan 12, 2026
53 checks passed
@JonasBa JonasBa deleted the jb/sidebar/organizationdropdown branch January 12, 2026 18:21
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants