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

issues: fix alert panel #88479

Merged
merged 1 commit into from
Apr 2, 2025
Merged

issues: fix alert panel #88479

merged 1 commit into from
Apr 2, 2025

Conversation

JonasBa
Copy link
Member

@JonasBa JonasBa commented Apr 1, 2025

Before
CleanShot 2025-04-01 at 15 33 34@2x

After
CleanShot 2025-04-01 at 15 33 13@2x

@JonasBa JonasBa requested a review from a team April 1, 2025 19:34
@JonasBa JonasBa requested a review from a team as a code owner April 1, 2025 19:34
@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Apr 1, 2025
@@ -400,8 +401,8 @@ function IssueListActions({
onSelectStatsPeriod={onSelectStatsPeriod}
/>
{!allResultsVisible && pageSelected && (
<StyledAlert type="warning" system>
<SelectAllNotice data-test-id="issue-list-select-all-notice">
<Alert system type="warning">
Copy link
Member

Choose a reason for hiding this comment

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

hmm, the system usage feels wrong here, shouldn't we just be using a panelAlert here?

Copy link
Member Author

@JonasBa JonasBa Apr 1, 2025

Choose a reason for hiding this comment

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

PanelAlert is just Alert with system on it :)

const PanelAlert = styled((props: Omit<AlertProps, 'system' | 'showIcon'>) => (
  <Alert.Container>
    <Alert {...props} showIcon system />
  </Alert.Container>
))`

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 dont think we want the icon in this case, as it'll show the Warning Icon. This entire thing is more of a callout than an actual alert. It probably would have been better to have a pattern next to the checkbox for this. A dropdown with bulk actions might be preferable tbqh

Copy link
Member

Choose a reason for hiding this comment

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

yeah this whole thing just sort of feels semantically wrong

@JonasBa JonasBa merged commit 4f6b808 into master Apr 2, 2025
41 checks passed
@JonasBa JonasBa deleted the jb/issues/alert-panel branch April 2, 2025 13:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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