Skip to content

Revert "fix: transaction list UI polish" - #584

Closed
gringokiwi wants to merge 1 commit into
masterfrom
revert-555-wt-tx-list-fixes-20260422
Closed

gringokiwi wants to merge 1 commit into
masterfrom
revert-555-wt-tx-list-fixes-20260422

Conversation

@gringokiwi

@gringokiwi gringokiwi commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Reverts #555

Summary by CodeRabbit

  • Bug Fixes

    • Corrected the haptics setting label text
  • UI/Style Improvements

    • Enhanced transaction history list styling and visual presentation
    • Updated border color styling for improved consistency across transaction rows
    • Refined asset information display with updated layout and typography
    • Improved organization and visual clarity of transaction details

@coderabbitai

coderabbitai Bot commented Apr 30, 2026 •

Copy link
Copy Markdown
Contributor

Walkthrough

Updates TransactionsList.tsx UI with a text heading, border styling changes, and prop refactoring; also updates the SettingsOptions.Haptics enum value from 'haptic feedback' to 'haptics feedback' in types.ts.

Changes

Cohort / File(s) Summary
Transaction List UI Refactoring
src/components/TransactionsList.tsx
Added TextLabel heading ("Transaction history"), updated border color token from --dark10 to --dark20, removed conditional top-border logic across all rows, removed isFirst prop from TransactionLine, and reordered AssetAvatar to render after amount text within asset rows.
Settings Enum Update
src/lib/types.ts
Updated SettingsOptions.Haptics enum string literal value from 'haptic feedback' to 'haptics feedback'.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • pietro909
  • bordalix
  • Kukks
🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: reverting a previous commit about transaction list UI polish. The title is specific, concise, and directly reflects the primary action.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch revert-555-wt-tx-list-fixes-20260422

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
Review rate limit: 0/1 reviews remaining, refill in 60 minutes.

Comment @coderabbitai help to get the list of available commands and usage tips.

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying wallet-bitcoin with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63285ef
Status: ✅  Deploy successful!
Preview URL: https://a10bf33e.wallet-bitcoin.pages.dev
Branch Preview URL: https://revert-555-wt-tx-list-fixes.wallet-bitcoin.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying wallet-mutinynet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63285ef
Status: ✅  Deploy successful!
Preview URL: https://558eb03d.arkade-wallet.pages.dev
Branch Preview URL: https://revert-555-wt-tx-list-fixes.arkade-wallet.pages.dev

View logs

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying tmp-boltz-upstream-mainnet-arkade-wallet with  Cloudflare Pages  Cloudflare Pages

Latest commit: 63285ef
Status: ✅  Deploy successful!
Preview URL: https://a7c49dcb.tmp-boltz-upstream-mainnet-arkade-wallet.pages.dev
Branch Preview URL: https://revert-555-wt-tx-list-fixes.tmp-boltz-upstream-mainnet-arkade-wallet.pages.dev

View logs

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@src/components/TransactionsList.tsx`:
- Around line 227-239: The list container in TransactionsList.tsx uses a fixed
height calc(100dvh - 380px) and doesn't account for the newly added heading
(TextLabel/Focusable block), which can cause overflow; update the container (the
div with ref parentRef and handlers handleListKeyDown/focusOnFirstRow) to either
subtract the heading's height from the calc (e.g., reduce the constant by the
heading's pixel height) or refactor the parent to a flex column so the header
takes its natural height and the list uses flex: 1 to consume remaining
space—choose one approach and apply it consistently so the list never exceeds
viewport height on short screens.

In `@src/lib/types.ts`:
- Line 71: Enum member Haptics currently uses the label 'haptics feedback' which
is a typo; update the enum value for Haptics in src/lib/types.ts to a standard
label such as 'haptic feedback' (or 'haptics') by replacing the string literal
for the Haptics member, and if any consumers rely on the previous exact string,
update those usages to the new label.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c7fb29ef-9156-4a40-96dd-7a9b0ade8259

📥 Commits

Reviewing files that changed from the base of the PR and between 767f515 and 63285ef.

⛔ Files ignored due to path filters (1)
  • bun.lock is excluded by !**/*.lock
📒 Files selected for processing (2)
  • src/components/TransactionsList.tsx
  • src/lib/types.ts

Comment on lines +227 to +239
<>
<TextLabel>Transaction history</TextLabel>
<Focusable id='outer' onEnter={focusOnFirstRow} ariaLabel={ariaLabel()}>
<div
ref={parentRef}
onKeyDown={handleListKeyDown}
className='hide-scrollbar scroll-fade'
style={{
borderBottom: border,
height: 'calc(100dvh - 380px)',
minHeight: '200px',
overflowY: 'auto',
}}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major | ⚡ Quick win

Adjust the list height for the new heading.

This adds a new block above a container that still uses a fixed calc(100dvh - 380px) height. On shorter viewports, the extra heading height will push the list past the available space and can reintroduce page-level overflow/nested scrolling. Please subtract the heading height here or switch this section to a flex column so the list consumes the remaining space.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/components/TransactionsList.tsx` around lines 227 - 239, The list
container in TransactionsList.tsx uses a fixed height calc(100dvh - 380px) and
doesn't account for the newly added heading (TextLabel/Focusable block), which
can cause overflow; update the container (the div with ref parentRef and
handlers handleListKeyDown/focusOnFirstRow) to either subtract the heading's
height from the calc (e.g., reduce the constant by the heading's pixel height)
or refactor the parent to a flex column so the header takes its natural height
and the list uses flex: 1 to consume remaining space—choose one approach and
apply it consistently so the list never exceeds viewport height on short
screens.

Comment thread src/lib/types.ts
Backup = 'backup',
General = 'general',
Haptics = 'haptic feedback',
Haptics = 'haptics feedback',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟡 Minor | ⚡ Quick win

Fix the settings label copy.

"haptics feedback" reads like a typo and will show up directly in the Settings UI. Please keep the standard wording here ("haptic feedback" or just "haptics").

Suggested fix
-  Haptics = 'haptics feedback',
+  Haptics = 'haptic feedback',
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
Haptics = 'haptics feedback',
Haptics = 'haptic feedback',
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@src/lib/types.ts` at line 71, Enum member Haptics currently uses the label
'haptics feedback' which is a typo; update the enum value for Haptics in
src/lib/types.ts to a standard label such as 'haptic feedback' (or 'haptics') by
replacing the string literal for the Haptics member, and if any consumers rely
on the previous exact string, update those usages to the new label.

@bordalix

Copy link
Copy Markdown
Collaborator

Closing, no need to revert.

@bordalix bordalix closed this Apr 30, 2026
@gringokiwi
gringokiwi deleted the revert-555-wt-tx-list-fixes-20260422 branch September 15, 2026 18:36
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.

2 participants