Skip to content

fix(rules): move the "Retroactive" marker inline into the transaction subtitle#1921

Merged
canalesb93 merged 1 commit into
mainfrom
claude/awesome-lovelace-1s9u99
Jun 24, 2026
Merged

fix(rules): move the "Retroactive" marker inline into the transaction subtitle#1921
canalesb93 merged 1 commit into
mainfrom
claude/awesome-lovelace-1s9u99

Conversation

@canalesb93

@canalesb93 canalesb93 commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Closes #1917.

Problem

On the rule-detail page (/rules/{id}), the Recent Applications list rendered the RETROACTIVE label as a full-width strip floating in the top-right above each transaction row. That added an awkward extra line and read as disconnected from the row it describes — the spacing looked off, as called out in the issue.

Change

Move the marker inline into the transaction's meta (subtitle) line, right after the account/category, as a compact muted chip (⏪ Retroactive) — matching how the row already surfaces tags, comments, and flags.

  • The shared TxRow component gains an optional, variadic WithMetaBadge option, so all ~50 existing call sites stay unchanged (zero options) — only the rule-detail list passes a badge.
  • The rule-detail page supplies a ⏪ Retroactive chip for non-sync applications; sync (the default firing path) stays unlabeled, exactly as before.
  • Below the sm breakpoint the cramped mobile sub-line would truncate the word, so the label collapses to just the icon (with a title tooltip); the desktop meta line always shows the full label.

The old floating strip is removed. The rule's action itself is still described once in the Then card above, so it isn't repeated per row.

Validation

Built + go vet clean; templ generate regenerated; touched-package tests pass (internal/templates/..., internal/admin, internal/service). Validated in a real browser against a seeded rule with 4 retroactively-applied transactions.

Note: the headless sandbox can't reach the Alpine.js CDN, so the row expand/collapse JS is inert in capture; the screenshots below force the collapsed default state via CSS to match the real rendering. The inline badge itself is fully server-rendered.

The PR-body tooling here strips inline image embeds, so the screenshots are clickable links below. (bb-artifacts CDN; click to view full-size.)

Screenshots

🤖 Generated with Claude Code

https://claude.ai/code/session_01J9FhcQJ7yrrbT1rzRAzkKv

The rule-detail "Recent Applications" list floated a "RETROACTIVE" label
in a full-width strip above each transaction row, which added an awkward
extra line and read as disconnected from the row it described (#1917).

Move the marker inline into the transaction's meta (subtitle) line, next
to the account/category, as a compact muted chip. The shared TxRow gains
an optional `WithMetaBadge` option (variadic, so all ~50 existing callers
are unchanged) that renders a caller-supplied chip at the tail of the meta
line. The rule-detail page passes a "⏪ Retroactive" chip for non-sync
applications. Below the `sm` breakpoint the label collapses to just the
icon (with a tooltip) so the cramped mobile sub-line doesn't truncate.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01J9FhcQJ7yrrbT1rzRAzkKv
@canalesb93 canalesb93 merged commit 582d15d into main Jun 24, 2026
8 checks passed
@canalesb93 canalesb93 deleted the claude/awesome-lovelace-1s9u99 branch June 24, 2026 06:52
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.

[Task] Move the "Retroactive" indicator inline with the transaction

2 participants