Restyle Inventory page as Pocket Ledger mobile concept - #280
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Restyles the Inventory page (
/inventory) using the "Pocket Ledger" mobile design concept explored indesign/mobile-mockups/c-pocket-ledger.html— a big total-value hero, floating item cards with category-inferred icon badges, and a pill "Add item" CTA — then reconciled it against the site's real design-system tokens so it matches the rest of the app's colorscheme (Pitt Royal blue / gold, glass surfaces) at every width, not a separate palette.Changes
Features/PhysicalAssets/Inventory.razor/Inventory.razor.css— page header restyled; no page-eyebrow (matchesPhysical Assets); desktop switches to the shared serif--font-displaytitle and row layout.Features/PhysicalAssets/InventoryList.razor/InventoryList.razor.css— total-value hero card, item rows with category icon badges (electronics/housewares/pantry/furniture/apparel/generic), Edit/Delete moved into the expanded detail panel for a cleaner collapsed row (Revalue stayed in place). On desktop (min-width: 48rem) the item list becomes one glass pane with hairline-divided rows, matchingNetWorthCalculator's.records-cardpattern instead of floating cards.Components/App.razor— added Sora/Inter Google Fonts link (scoped.razor.cssfiles can't use@import).--pl-*custom properties resolve to the shared--brand/--glass-bg/--text/--accent-texttokens, so mobile and desktop render the identical palette — only the layout (floating cards vs. glass pane with hairlines, column vs. row header) differs by breakpoint.Preserved
Every test-critical selector (
.asset-row,.asset-row-summary,button.btn-primary,input[placeholder='Name'/'Category']) and all@codelogic are untouched aside from two new pure helper methods (CategoryIconKey/CategoryIconMarkup).Verification
dotnet test)dotnet format/prettier --checkcleanPhysical Assets/Financial(same glass card, serif title, brand-blue buttons).