feat(web): UI quick wins for items, navigation and settings

- Toggling an item only disables that row, so several items can be
  marked in a row; failures roll back just that item and show a toast,
  and the list refetches once the last toggle settles.
- Sidebar, bottom nav and header share one set of sections
  (Inicio / Listas / Ajustes); the bottom nav drops the duplicated
  "Cuenta" link and the header drops the non-functional search button.
- Settings: the name is saved through BetterAuth, the email is shown
  read-only, and the fake notification switches are replaced by a real
  theme picker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-10-19 12:52:08 -03:00
parent bba10361f0
commit debf3b2728
10 changed files with 230 additions and 213 deletions

View File

@@ -9,6 +9,7 @@ import { ItemRow } from './item-row'
type BoughtItemListProps = {
items: ListItem[]
updateItem: ReturnType<typeof useUpdateItem>
savingIds: string[]
}
/**
@@ -16,7 +17,7 @@ type BoughtItemListProps = {
* default so marking an item visibly moves it down; the user can fold it.
* Tapping an item here un-buys it and it returns to the pending list.
*/
export function BoughtItemList({ items, updateItem }: BoughtItemListProps) {
export function BoughtItemList({ items, updateItem, savingIds }: BoughtItemListProps) {
return (
<Collapsible defaultOpen>
<CollapsibleTrigger className="group flex w-full items-center gap-1.5 py-1 text-left">
@@ -27,7 +28,12 @@ export function BoughtItemList({ items, updateItem }: BoughtItemListProps) {
<CollapsibleContent>
<ul className="flex flex-col gap-2 pt-2">
{items.map((item) => (
<ItemRow key={item.id} item={item} updateItem={updateItem} />
<ItemRow
key={item.id}
item={item}
updateItem={updateItem}
isSaving={savingIds.includes(item.id)}
/>
))}
</ul>
</CollapsibleContent>