Skip to content

refactor: remove conditional and animeconditional (@miodec)#7898

Merged
Miodec merged 7 commits intomasterfrom
show
May 2, 2026
Merged

refactor: remove conditional and animeconditional (@miodec)#7898
Miodec merged 7 commits intomasterfrom
show

Conversation

@Miodec
Copy link
Copy Markdown
Member

@Miodec Miodec commented May 2, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 2, 2026 14:44
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label May 2, 2026
@Miodec Miodec changed the title refactor: remove conditional and animeconditional refactor: remove conditional and animeconditional (@miodec) May 2, 2026
@github-actions github-actions Bot added the waiting for review Pull requests that require a review before continuing label May 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the custom Conditional / AnimeConditional helper components and migrates call sites to SolidJS control-flow primitives (<Show>) plus explicit anime presence/animation wrappers.

Changes:

  • Deleted Conditional and AnimeConditional components (and their Storybook stories + tests).
  • Replaced usages of Conditional with <Show when ... fallback ...> across UI components.
  • Replaced AnimeConditional usage with <AnimePresence> + <Show> + <Anime> composition where needed.

Reviewed changes

Copilot reviewed 22 out of 22 changed files in this pull request and generated no comments.

Show a summary per file
File Description
frontend/storybook/stories/Conditional.stories.tsx Removes Storybook coverage for deleted Conditional component.
frontend/storybook/stories/AnimeConditional.stories.tsx Removes Storybook coverage for deleted AnimeConditional component.
frontend/src/ts/components/ui/table/DataTable.tsx Replaces sortable-header conditional rendering with <Show> + fallback.
frontend/src/ts/components/popups/alerts/NotificationHistory.tsx Replaces message rendering conditional with <Show> + fallback.
frontend/src/ts/components/pages/profile/UserDetails.tsx Replaces account-page action button branch selection with <Show> + fallback.
frontend/src/ts/components/pages/login/LoginPage.tsx Replaces signup-disabled branching with <Show> + fallback.
frontend/src/ts/components/pages/leaderboard/UserRank.tsx Replaces null-data branching with <Show> + fallback.
frontend/src/ts/components/pages/leaderboard/Table.tsx Replaces type-based table selection with <Show> + fallback.
frontend/src/ts/components/layout/overlays/Notifications.tsx Replaces innerHTML conditional rendering with <Show> + fallback.
frontend/src/ts/components/layout/overlays/Banners.tsx Replaces multiple Conditional blocks with <Show> + fallback.
frontend/src/ts/components/layout/header/Nav.tsx Replaces AnimeConditional with explicit <AnimePresence> + <Show> + <Anime>.
frontend/src/ts/components/common/anime/index.ts Removes AnimeConditional export from the anime barrel.
frontend/src/ts/components/common/anime/AnimeConditional.tsx Deletes the AnimeConditional component implementation.
frontend/src/ts/components/common/User.tsx Replaces AnimeConditional / Conditional with <AnimePresence> + <Show> and <Show> respectively.
frontend/src/ts/components/common/Separator.tsx Replaces Conditional with <Show> + fallback.
frontend/src/ts/components/common/LoadingCircle.tsx Replaces Conditional with <Show> + fallback.
frontend/src/ts/components/common/DiscordAvatar.tsx Replaces Conditional with <Show> + fallback.
frontend/src/ts/components/common/Conditional.tsx Deletes the Conditional component implementation.
frontend/src/ts/components/common/Button.tsx Replaces anchor/button branching with <Show> + fallback.
frontend/src/ts/components/common/AsyncContent.tsx Replaces alwaysShowContent conditional with nested <Show> logic.
frontend/tests/components/common/anime/AnimeConditional.spec.tsx Removes tests for deleted AnimeConditional.
frontend/tests/components/common/Conditional.spec.tsx Removes tests for deleted Conditional.

fehmer
fehmer previously approved these changes May 2, 2026
@github-actions github-actions Bot removed the waiting for review Pull requests that require a review before continuing label May 2, 2026
@Miodec Miodec merged commit 3789970 into master May 2, 2026
15 checks passed
@Miodec Miodec deleted the show branch May 2, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend User interface or web stuff

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants