Skip to content

fix(frontend): include HiddenMicroTransactionsInfoBox in AllTransactions banners logic#12619

Merged
AntonioVentilii merged 5 commits intomainfrom
fix-frontend-include-hidden-micro-transactions-in-has-banners
Apr 28, 2026
Merged

fix(frontend): include HiddenMicroTransactionsInfoBox in AllTransactions banners logic#12619
AntonioVentilii merged 5 commits intomainfrom
fix-frontend-include-hidden-micro-transactions-in-has-banners

Conversation

@AntonioVentilii
Copy link
Copy Markdown
Collaborator

@AntonioVentilii AntonioVentilii commented Apr 28, 2026

Motivation

The hasBanners derivation in AllTransactions.svelte decides whether the banners wrapper renders, but it was not aware of HiddenMicroTransactionsInfoBox's visibility. As a result, the hidden-micro-transactions info box was not considered a banner for layout/derivation purposes.

Changes

  • Expose visibility from HiddenMicroTransactionsInfoBox via an optional $bindable prop.
  • Bind it in AllTransactions and include it in hasBanners.

…ons hasBanners

Expose visibility from HiddenMicroTransactionsInfoBox via a $bindable prop
and factor it into the hasBanners derivation in AllTransactions.
Copilot AI review requested due to automatic review settings April 28, 2026 07:19
@AntonioVentilii AntonioVentilii requested a review from a team as a code owner April 28, 2026 07:19
@AntonioVentilii AntonioVentilii changed the title fix(frontend): include HiddenMicroTransactionsInfoBox in AllTransactions hasBanners fix(frontend): include HiddenMicroTransactionsInfoBox in AllTransactions banners logic Apr 28, 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

This PR updates the transactions page banner derivation so the “Hidden micro-transactions” info box can participate in the hasBanners calculation, enabling the layout logic to account for its visibility.

Changes:

  • Expose HiddenMicroTransactionsInfoBox visibility via an optional bindable visible prop, synced with its internal visibility logic.
  • Bind that visible value in AllTransactions.svelte and include it in the hasBanners derivation.

Reviewed changes

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

File Description
src/frontend/src/lib/components/transactions/HiddenMicroTransactionsInfoBox.svelte Adds optional bindable visible prop and syncs it from internal computed visibility.
src/frontend/src/lib/components/transactions/AllTransactions.svelte Tracks info-box visibility via binding and incorporates it into hasBanners.

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

Comment thread src/frontend/src/lib/components/transactions/AllTransactions.svelte Outdated
Comment thread src/frontend/src/lib/components/transactions/AllTransactions.svelte Outdated
…ers wrapper

Lift the visibility and dismissal logic into AllTransactions so the banner
is rendered inline within the {#if hasBanners} wrapper, avoiding an empty
wrapper div (and stray gap-5 spacing) when it is the only visible banner.
Revert the now-unneeded $bindable visible prop on HiddenMicroTransactionsInfoBox.
Extract the visibility computation for the hidden micro-transactions info
banner into a shared `hiddenMicroTransactionsBannerVisible` derived so the
component can stay reusable while parents (e.g. `AllTransactions`) can
include its visibility in `hasBanners` and render it inside the banners
wrapper without duplicating logic.
@AntonioVentilii AntonioVentilii added this pull request to the merge queue Apr 28, 2026
Merged via the queue into main with commit 008a73a Apr 28, 2026
80 checks passed
@AntonioVentilii AntonioVentilii deleted the fix-frontend-include-hidden-micro-transactions-in-has-banners branch April 28, 2026 08:23
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.

3 participants