Skip to content

Conversation

@Miodec
Copy link
Member

@Miodec Miodec commented Jan 19, 2026

No description provided.

Copilot AI review requested due to automatic review settings January 19, 2026 11:45
@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Jan 19, 2026
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jan 19, 2026
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added waiting for update Pull requests or issues that require changes/comments before continuing and removed waiting for review Pull requests that require a review before continuing labels Jan 19, 2026
Copy link
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

This PR refactors the banner and PSA (Public Service Announcement) system from a DOM-manipulation-based approach to a reactive SolidJS implementation, improving maintainability and reactivity.

Changes:

  • Introduced a new SolidJS store (banners.ts) to manage banner state reactively
  • Created a new SolidJS component (Banners.tsx) for rendering banners
  • Migrated all Notifications.addPSA() and Notifications.addBanner() calls to use the new addBanner() function from the store
  • Removed the banner-event observable system in favor of SolidJS reactivity
  • Removed banner/PSA-specific code from the notifications module

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
frontend/src/ts/stores/banners.ts New SolidJS store for managing banner state with add/remove/get functions
frontend/src/ts/components/layout/overlays/Banners.tsx New SolidJS component for rendering banners with reactive updates
frontend/src/ts/hooks/useTailwindBreakpoints.ts New hook for tracking Tailwind breakpoints (added but not used in this PR)
frontend/src/ts/observables/banner-event.ts Removed - replaced by SolidJS reactivity
frontend/src/ts/states/connection.ts Updated to use new banner store for offline notifications
frontend/src/ts/elements/psa.ts Migrated PSA banners to use new store
frontend/src/ts/elements/notifications.ts Removed banner/PSA functionality, keeping only notification logic
frontend/src/ts/elements/merch-banner.ts Updated to use new banner store
frontend/src/ts/controllers/ad-controller.ts Replaced BannerEvent subscription with SolidJS createEffect
frontend/src/ts/components/layout/overlays/Overlays.tsx Added Banners component to the layout
frontend/src/ts/auth.ts Updated to use new banner store for account name change banner
frontend/src/ts/ape/adapters/ts-rest-adapter.ts Updated to use new banner store for version mismatch banner
frontend/src/index.html Removed bannerCenter div (now rendered by SolidJS)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Miodec and others added 2 commits January 19, 2026 12:55
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added waiting for update Pull requests or issues that require changes/comments before continuing and removed waiting for update Pull requests or issues that require changes/comments before continuing labels Jan 19, 2026
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions
Copy link
Contributor

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes.

@github-actions github-actions bot added the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@github-actions github-actions bot removed the waiting for update Pull requests or issues that require changes/comments before continuing label Jan 19, 2026
@Miodec Miodec requested a review from Copilot January 19, 2026 13:45
@github-actions github-actions bot added the waiting for review Pull requests that require a review before continuing label Jan 19, 2026
Copy link
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

Copilot reviewed 20 out of 20 changed files in this pull request and generated 3 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Miodec and others added 2 commits January 19, 2026 14:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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 waiting for review Pull requests that require a review before continuing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants