Commit Graph

6 Commits

Author SHA1 Message Date
boojack 3bea6df030 refactor(web): one memo component, MemoEditor, with view and edit modes (#6481) 2026-10-18 12:11:55 +08:00
ABird af38e75e2d refactor(api)!: drop the v1 version marker (#6447) 2026-10-08 21:49:37 +08:00
johnnyjoygh 65d2278a2e feat(web): make calendar and map readable with several authors
Explore and other creator-less scopes mix authors, but the calendar and
map were built for one person's memos.

Calendar:
- Excerpts lead with their author's avatar when no creator is selected.
- From xl the grid always makes room for the day panel instead of being
  covered; the panel narrows (to its 320px minimum) so columns keep
  preview width, and cells between 64 and 100px use a slim preview.
- Cells with no room for a preview (phones) carry one mark under the
  date: the first photo, else the day's authors in a mixed scope, else a
  glyph of written lines.

Map:
- Pins follow the calendar's mark order: the memo's first photo, else
  its author's avatar in a mixed scope, else the dot. Hover text names
  the author, and updates once authors resolve.
- A place label is its author's words: the panel title uses one only
  when it speaks for every selected memo, and "Write here" never copies
  another author's label into a new memo.
- Guests are not asked to add a location, and the tile error no longer
  says "your memos".

Shared day/place panel: pin marks only in a single creator's scope,
creators resolved in one batch, and an empty day says so.
2026-09-27 10:01:07 +08:00
boojack 26be2a9663 feat(navigation): unify creator and space browsing scopes (#6378) 2026-09-26 11:36:31 +08:00
johnnyjoygh c218355b1b refactor(web): share one floating memo panel between calendar and map
The calendar's day panel and the map's location panel were two
implementations of the same surface: a resizable side panel that reads a
selection of memos as ordinary cards and ends with a quiet row that
becomes the editor in place. Fold both into components/MemoPanel.

MemoPanel is the map's floating, non-modal card generalized: a fixed
card at the end edge from md, a bottom sheet below it, with one
persisted
width shared by every host like the sidebar's. It owns the header, close
control, resize rail, internal scroll, busy lock and the exit-animation
snapshot. The width lives in a custom property on the document root so a
resize drag reflows the page beside the card live and commits once on
release; the panel measures its committed size for hosts that need
numbers. The rail stops short of the card's corners.

The calendar drops its docked aside and its modal mid-tier sheet for the
shared card. At xl the grid gives way to it so every column stays
legible; below xl it floats over the trailing columns; the phone tier
stays inline under the compact grid. The hand-rolled Escape listener
goes, since the dialog handles it.

MemoPanelList is the shared content block with the compose row keyed to
the selection, so a half-written memo never moves days or places.

Panel strings move to common keys; the calendar and map copies are
removed from every locale that carried them.
2026-09-10 09:30:40 +08:00
johnnyjoygh bc89ec0006 feat(map): add a map page for located memos
Replace the profile's map tab with a /map route (also under Spaces) that
shows every located memo on a Positron vector basemap with clustering,
falling back to raster tiles when the vector style cannot load.

Selecting a pin or a cluster opens a side rail (a bottom sheet on
phones)
with the memos at that place; "Write here" expands into the editor in
place, seeded with the location. Selection and viewport live in the URL.

The sidebar's tag counts are scoped to located memos on this route, and
the editor draft cache now remembers a memo's location.
2026-09-09 23:04:06 +08:00