Commit Graph

7 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 153625210b chore: open calendar and map to guests, simplify navigation
Calendar and Map are reading views like Timeline, so signed-out visitors
can now open them and see the memos readable to them. Their Space
variants still require sign-in, and composing stays signed-in only.

Navigation:
- Guests get Timeline, Calendar, Map; Attachments stays signed-in only.
  The About pill is gone; About lives in the scope menu and the common
  sidebar for everyone.
- One NavPill renders every nav control, from a single destination list.
- A memo list without a creator is Explore, so Timeline sends guests
  there directly instead of through the Home redirect.

Scope menu:
- One UserMenu for both cases: preferences, then account pages when
  signed in. Guests sign in from the sidebar footer only.
- Guests no longer see a Browse control whose only option is Explore.
- Theme and Language are submenus instead of dialogs; a choice applies
  at once, saved to the account or kept locally for guests.
- The system theme listener reads the latest preference, so local guest
  choices follow OS changes correctly.
2026-09-26 17:09:15 +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