feat(places): Places replaces Collections, with All places, place sheets and a calmer list

- Collections is Places now: /places opens "All places", every place of the
  trips and lists with where it comes from, the same filter row (where from,
  status, category, order), map bar (search, lock, list toggle) and place sheet
  as a list; /places/saved and /places/:id are the lists, and the old
  /collections links still land there. On the phone the same, with its own
  sheet. A place sheet shows each trip (planned day or trip dates, stay,
  booking, notes) and each list (status, labels, rating, notes) as one row
  that opens it.
- The rail: a calm "New list" with its plus tile, All places and All saved as
  views, a "My lists" heading, every name on one edge. Lists can carry one of
  24 symbols, shown in their colour in the rail and the editor.
- A saved place's row keeps to two lines: its category as an icon before the
  name, its average vote as a star on the picture. Map pins wear the same star.
- The place forms put the category in front of the name as a tile that opens
  the category list, instead of a row of chips.
- All saved gets a subtitle; the import dialog opens centred.
- Fixes: a pasted coordinate pair splits from either field of the place form;
  "more" in All places frees itself when a filter changes mid-load; place
  names on the trip map and the rating badge follow the reading direction.
This commit is contained in:
Maurice
2026-11-29 15:49:35 +01:00
parent 0ecca2b46c
commit 01d327b502
179 changed files with 6206 additions and 541 deletions
+54 -7
View File
@@ -29,14 +29,18 @@
}
.trek-dash .col-rail-newrow { display: flex; align-items: stretch; gap: 6px; margin-bottom: 6px; }
.trek-dash .col-rail-new {
display: flex; align-items: center; gap: 9px; width: 100%;
padding: 10px 12px; border-radius: var(--r-sm);
border: 1px dashed var(--line-2); color: var(--ink-2);
font-size: 13px; font-weight: 500; transition: background .15s, color .15s, border-color .15s;
display: flex; align-items: center; gap: 10px; width: 100%; height: 44px;
/* 10px plus the 1px border: the plus sits where the tiles and dots of the rows below sit. */
padding: 0 12px; padding-inline-start: 10px; border-radius: 12px;
border: 1px solid var(--line); background: var(--surface-2); color: var(--ink);
font-size: 13.5px; font-weight: 600; transition: background .15s, border-color .15s, box-shadow .15s;
}
.trek-dash .col-rail-new:hover { background: var(--surface-2); color: var(--ink); border-color: var(--ink-3); }
.trek-dash .col-rail-new:hover { background: var(--surface); border-color: var(--line-2); box-shadow: var(--sh-xs); }
/* The plus as a small accent disc: the one thing in the rail that makes something. */
.trek-dash .col-rail-plus { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: var(--accent); color: var(--accent-text); }
/* Square, icon-only: "New list" is the primary action and keeps the label. */
.trek-dash .col-rail-import { width: auto; flex: 0 0 auto; padding: 10px; justify-content: center; }
.trek-dash .col-rail-import { width: 44px; flex: 0 0 44px; padding: 0; justify-content: center; color: var(--ink-2); }
.trek-dash .col-rail-import:hover { color: var(--ink); }
.trek-dash .col-rail-label {
display: flex; align-items: center; gap: 6px; padding: 14px 11px 5px;
font-size: 10.5px; text-transform: uppercase; letter-spacing: .13em; color: var(--ink-3); font-weight: 600;
@@ -55,9 +59,16 @@
}
.trek-dash .col-row-btn:hover { background: var(--surface-2); color: var(--ink); }
.trek-dash .col-row-btn.on { background: var(--surface-2); color: var(--ink); box-shadow: var(--sh-xs); }
.trek-dash .col-row-btn .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.trek-dash .col-row-btn .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-inline: 9px; }
/* The dot keeps the 28px slot the view tiles take, so every name in the rail starts at one edge. */
.trek-dash .col-row-btn .ico { color: var(--ink-3); flex-shrink: 0; display: grid; place-items: center; }
.trek-dash .col-row-btn.on .ico { color: var(--ink-2); }
/* The two views above the lists wear a small tile, filled in the accent when open. */
.trek-dash .col-row-btn .ico.tile { width: 28px; height: 28px; border-radius: 8px; background: var(--surface-2); color: var(--ink-2); transition: background .15s, color .15s; }
.trek-dash .col-row-btn.on .ico.tile { background: var(--accent); color: var(--accent-text); }
/* A list's tile wears the list's colour, open or not. */
.trek-dash .col-row-btn .ico.tile.list, .trek-dash .col-row-btn.on .ico.tile.list { background: color-mix(in srgb, var(--list) 16%, transparent); color: var(--list); }
.trek-dash .col-row-btn.on .ico.tile.list { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--list) 45%, transparent); }
.trek-dash .col-row-btn .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trek-dash .col-row-btn .ct { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; flex-shrink: 0; }
/* The kebab lives to the right of the count and is always visible (just dimmed)
@@ -691,3 +702,39 @@
.trek-dash .col-lrow.drop-before::before { top: -5px; }
.trek-dash .col-lrow.drop-after::after { bottom: -5px; }
.trek-dash .col-reorder-note { display: flex; align-items: center; gap: 6px; margin: 0 2px 8px; font-size: 12px; color: var(--ink-3); }
/* "All places" (PLC-07/08): a trip or list the place sits in, inside the place sheet. */
.trek-dash .col-origin { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); text-align: start; cursor: pointer; transition: background .12s, border-color .12s; }
.trek-dash .col-origin:hover { background: var(--surface); border-color: var(--line-2); }
.trek-dash .col-origin-chev { flex-shrink: 0; color: var(--ink-3); transition: transform .12s, color .12s; }
.trek-dash .col-origin:hover .col-origin-chev { color: var(--ink); transform: translateX(2px); }
[dir="rtl"] .trek-dash .col-origin-chev { transform: scaleX(-1); }
.trek-dash .col-origin-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.trek-dash .col-origin-ico { width: 34px; height: 34px; flex-shrink: 0; display: grid; place-items: center; border-radius: 9px; background: var(--surface); color: var(--ink-2); box-shadow: var(--sh-xs); }
.trek-dash .col-origin-title { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.trek-dash .col-origin-title .nm { font-size: 13.5px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trek-dash .col-origin-title .sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.trek-dash .col-origin-tag { flex-shrink: 0; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; color: var(--ink-3); background: var(--surface); border: 1px solid var(--line); }
.trek-dash .col-origin-sub { font-size: 12px; color: var(--ink-3); }
.trek-dash .col-origin-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.trek-dash .col-origin-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.trek-dash .col-origin-chip .dim { font-weight: 500; color: var(--ink-3); }
.trek-dash .col-origin-notes { display: flex; flex-direction: column; gap: 4px; padding: 9px 12px; border-radius: 10px; background: var(--surface); }
.trek-dash .col-origin-notes .txt { font-size: 13px; line-height: 1.5; color: var(--ink-2); white-space: pre-wrap; }
/* The places of "All places" name where they come from at the row's end. */
.trek-dash .col-lrow-origins { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; min-width: 0; }
.trek-dash .col-origin-pill { display: inline-flex; align-items: center; gap: 5px; max-width: 170px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); }
.trek-dash .col-origin-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trek-dash .col-origin-pill.more { color: var(--ink-3); }
/* A saved place's tile holds its average vote on the corner; the category sits before the name. */
.trek-dash .col-lrow-avatar { position: relative; display: inline-flex; width: 40px; height: 40px; }
.trek-dash .col-lrow .li .t { display: flex; align-items: center; gap: 6px; }
.trek-dash .col-lrow .li .t .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trek-dash .col-lrow-caticon { display: inline-flex; flex-shrink: 0; color: var(--cat, var(--accent)); }
.trek-dash .col-lrow-caticon svg { display: block; }
/* The average vote on the tile's other corner: an amber star, as on the map's pins, its figure inside. */
.trek-dash .col-lrow-ratebadge { position: absolute; bottom: -7px; inset-inline-end: -8px; width: 30px; height: 30px; display: grid; place-items: center; }
.trek-dash .col-lrow-ratebadge svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: #fbbf24; stroke: var(--surface); stroke-width: 2; stroke-linejoin: round; }
.trek-dash .col-lrow-ratebadge .n { position: relative; margin-top: 3px; font-size: 10.5px; font-weight: 800; line-height: 1; color: #111; font-variant-numeric: tabular-nums; }
.trek-dash .col-lrow-ratebadge .n.frac { font-size: 8.5px; letter-spacing: -.02em; }