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

feat: add status icon to details header #908

Merged
merged 1 commit into from
Feb 13, 2025
Merged

Conversation

@murilx murilx self-assigned this Feb 11, 2025
variant,
}: {
className?: string;
variant?: string | boolean;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Status (from types/database) | boolean

Copy link
Collaborator

Choose a reason for hiding this comment

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

now that we have pydantic we can guarantee that is a literal

variant?: string | boolean;
}): JSX.Element => {
return match(variant)
.with(P.union('PASS', true), _ => (
Copy link
Collaborator

Choose a reason for hiding this comment

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

nice

@murilx murilx force-pushed the feat/details-header-status branch from 8404154 to d372cb2 Compare February 12, 2025 17:11
Copy link
Collaborator

@WilsonNet WilsonNet left a comment

Choose a reason for hiding this comment

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

LGTM

@murilx murilx force-pushed the feat/details-header-status branch from d372cb2 to 6b3e8da Compare February 12, 2025 18:39
Copy link
Collaborator

@MarceloRobert MarceloRobert left a comment

Choose a reason for hiding this comment

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

Looks pretty good to me

@murilx murilx force-pushed the feat/details-header-status branch from 6b3e8da to 7dfe38f Compare February 13, 2025 13:38
@murilx murilx merged commit fc1b42a into main Feb 13, 2025
5 checks passed
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.

Show icon in the header to indicate the status (check, error)
3 participants