Skip to content

fix(cards): fix the card list issues found in review - #774

Merged
farfromrefug merged 3 commits into
mainfrom
fix/cardwallet-list-review
Oct 29, 2026
Merged

farfromrefug merged 3 commits into
mainfrom
fix/cardwallet-list-review

Conversation

@farfromrefug

Copy link
Copy Markdown
Collaborator

Summary

Implementation bugs from the review (design questions go to the design session, see below):

  • Rows (cards and vertical folders) hide their chevron while items are selected (a selectionMode store set by the list).
  • List rows: barcode is an icon (no "code" text), a card with no photo shows its title on its color in the thumbnail, taller rows and 17 pt titles, selection marker with the mockup offset.
  • Vertical folders span the whole width in columns; the folder icon is an outline (folder_outline) on a 20% tinted circle.
  • Stacked styles: the title of a card with no photo is top-left.
  • Icon-only chips have the minimum size of the text chips.
  • Android: the + sheet keeps the bottom inset (last row no longer under the gesture bar).
  • iOS: the move to folder dialog focuses its field and its suggestions are readable; coming back to a card just added reloads the list (recycled cell).

Not done here, waiting for the design: chip merge rule, FAB sizes, selection marker shape, bottom bar on tiles, corner radius rule, selection toolbars (red destructive needs a flag in ui-appbar bottom items), menu animation origin, icon set.

Testing

  • svelte-check clean; run on the iOS simulator and the Android emulator (list style, selection, folder dialog).
  • The recycled cell fix could not be reproduced on demand: needs a check on a card creation flow.

🤖 Generated with Claude Code

farfromrefug and others added 2 commits October 29, 2026 14:11
Rows hide their chevron while items are selected, the barcode of a row is an icon instead of
the word "code", a row with no photo shows its name on its color, and the rows are taller with
bigger titles. Vertical folders take the whole width in columns, the folder icon is an outline
on a tinted circle, the name of a card with no photo is top-left in the stacked styles, icon-only
chips have the height of the others and the + sheet keeps the gesture bar inset on Android.
The folder dialog focuses its field, and the list reloads when coming back to a card just added
to avoid a recycled cell on iOS.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… selection

Page count, code and favorite are one pill top-right (22 tall, hairlines between segments),
the title chip is alone. Only the grid scales selected tiles and list rows get a tonal highlight.
Rows are 72 tall with a 96x60 thumbnail, no chevron on Android, no subtitle for name-only
cards. Folder rows are 52 tall with a 32 circle and a 20 outline icon. The Android FABs are a
40 add button above a 56 extended Scan button with the elevation of floating controls.
While selecting, Android shows a themed top bar with Favorite, Move and Delete plus an overflow
(the bottom toolbar is gone) and iOS keeps the system toolbar with Share, Favorite, Move, Delete.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

onMount(async () => {
// the dialog is not shown yet
setTimeout(() => textfield?.nativeView?.requestFocus(), 400);

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

isnt there an autofocus on alerts or textfield already?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

There is one (autoFocus of ui-dialogs), but only for the field it builds itself in prompt / login (iOS: autoFocusTextField). Here the field is inside the custom view of a confirm (it needs the folder suggestions), so the dialog has no handle on it and nothing focused it. Options: keep this requestFocus, or add an autoFocus for custom views to ui-dialogs (find the first TextField of the view). The design now says Move to folder becomes a sheet, where this goes away anyway. Tell me if you want the ui-dialogs change instead.

}
// let needsRefreshOnBack = false;
// a card added then opened: iOS shows a recycled cell for it when coming back
let needsReloadOnBack = false;

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

isnt this more a collectionview issue?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Probably yes, I could not reproduce it on demand (iOS: create a card from +, it opens the card, coming back the added row shows a recycled cell). This is a workaround at the app level (reload the collectionview once when coming back to a card just added). If you agree it is a ui-collectionview bug I can investigate there (insert at the end while the page is not visible) and drop the workaround from this PR.

…-rules

feat(cards): apply the design rules to chips, rows, folders, FABs and selection
@farfromrefug
farfromrefug merged commit 9aff11f into main Oct 29, 2026
1 check failed
@farfromrefug
farfromrefug deleted the fix/cardwallet-list-review branch October 29, 2026 13:31
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.

1 participant