Repository navigation
fix(cards): fix the card list issues found in review - #774
Conversation
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); |
There was a problem hiding this comment.
isnt there an autofocus on alerts or textfield already?
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
isnt this more a collectionview issue?
There was a problem hiding this comment.
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
Summary
Implementation bugs from the review (design questions go to the design session, see below):
selectionModestore set by the list).folder_outline) on a 20% tinted circle.+sheet keeps the bottom inset (last row no longer under the gesture bar).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-checkclean; run on the iOS simulator and the Android emulator (list style, selection, folder dialog).🤖 Generated with Claude Code