Commit Graph
2983 Commits
Author SHA1 Message Date
ABird af38e75e2d refactor(api)!: drop the v1 version marker (#6447) 2026-10-08 21:49:37 +08:00
boojack b1fa9aefcc chore: tweak action orders in memo action menu 2026-10-07 07:38:44 +08:00
boojack d2560e0877 chore: tweak memo actions 2026-10-07 07:22:42 +08:00
boojack cfb16a8ced chore: polish markdown rendering rhythm and heading scale
- Drop the top margin of the first block so a leading heading sits flush
  with the memo header; headings also reset when they open a nested
  block.
- Calmer heading scale (24/20/18px, semibold, no h1/h2 rules) shared
  with
  the editor's heading lines via headingTypeClass, so edit and view
  match.
- Headings get more space above than below to bind to their content.
- Unify block spacing (mb-2, no top margin) across code, table, mermaid;
  give hr a real section break (my-4).
- Trim trailing margins inside list items so nested lists don't add
  gaps;
  mute list markers.
- Inline code sizes relative to its context; blockquotes drop italics
  (poor CJK obliques) for a quieter neutral border; images get rounded
  corners matching attachments.
2026-10-07 07:19:00 +08:00
Hussnain Ahmadandboojack 5d1649bec6 fix: delete comment subtree when a memo is deleted (#6424)
Co-authored-by: boojack <stevenlgtm@gmail.com>
2026-10-07 07:08:20 +08:00
boojack 698460dfeb chore: apply BRAND.md copy to the app (#6417) 2026-10-02 11:34:58 +08:00
lemoana 631a7ef488 fix: prevent reaction picker from flashing at page origin (#6402) 2026-10-02 09:41:45 +08:00
Mohammad Kanaan c621d03ae4 fix: image preview controls not being accessible on mobile (#6401) 2026-10-02 09:37:05 +08:00
lemoana 1724f0bd26 fix: preserve whitespace outside Markdown marks (#6404) 2026-10-02 09:36:43 +08:00
johnnyjoygh a80576a6de chore: polish space selector from the visibility menu
The composer's visibility control becomes AudienceMenu, a dropdown that
replaces the popover with a nested Space select, and it replaces the
Move to Space dialog.

- Visibility options come first, as two-line rows (label, then a
  description that wraps for long translations) in a 224px menu.
- Space is an optional row below them that never names the empty state:
  "Add to space" until one is chosen, then the Space itself. The
  selected Space in the submenu toggles back off (a check at rest, an ✕
  on hover, focus, or touch). A Space the author has left stays listed
  so it can be removed.
- Editing a top-level memo the user can manage now offers the Space row;
  comments never do, and a new memo composed inside a Space stays fixed
  to it. A Space change is saved with the edit, sending space and
  visibility together, and shows "Memo moved".
- The Move to Space dialog and its More submenu entry are removed.
- Copy: "Add to space", "Remove from {{space}}", the Space audience is
  now "Members · Everyone in {{space}}", shorter English descriptions,
  and short Russian visibility labels.

The sidebar scope menu gets the same row grammar: its Browse/Spaces half
and account half used different insets, icon sizes, row heights, and
text sizes. Every row now has 4px section padding, 28px height, 13px
text, and a 20px leading slot with a 14px glyph, so icons, the avatar,
and Space marks share a column and all text starts at the same x.
Section labels reuse SidebarSectionHeader, the Spaces "+" lines up with
the row chevrons, and the Inbox chip uses the 11px step.
2026-09-28 20:20:21 +08:00
Maxine bf427ebe69 feat(i18n): Added Norwegian Nynorsk (nn) translation (#6394) 2026-09-28 18:58:20 +08:00
johnnyjoygh cb42e326ba chore: tweak about page 2026-09-27 22:58:52 +08:00
johnnyjoygh 594ccd02c5 feat(editor): add Space selection to memo visibility setting
Close #6374
2026-09-27 20:58:27 +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
johnnyjoygh 0db0025d32 fix(web): show the Space mark beside the creator in the sidebar switcher
With a creator and a Space both selected, the switcher trigger showed
only
the creator avatar, hiding which Space was active. It now shows the
creator
avatar, a hairline slash, and the Space mark with its title; the creator
name moves to the tooltip so the Space title keeps the width.

User avatars are now always round, separating people from square Space
marks, and the instance logo keeps its square shape. In the trigger the
avatar draws 22px inside the Space mark's 24px slot so the solid circle
does not outweigh the pale tile.

Closes #6381
2026-09-27 08:57:37 +08:00
johnnyjoygh 2c889d14ee fix(web): only honor pinned memos in single-creator feeds
Explore mixed other users' pinned memos to the top and showed the pinned
mark on them. Pinning is the owner's arrangement of their own memos, so
pinned-first ordering and the mark now apply only when the feed is
scoped
to one creator (Home, user profile); Explore stays chronological.
2026-09-27 08:23:17 +08:00
johnnyjoygh 200b4d0920 fix(web): keep preference submenus on screen in narrow viewports
When neither side of the user menu has room, the theme and language
submenus now fall back below the row, like nested submenus do, instead
of overflowing the viewport.
2026-09-27 08:12:39 +08:00
68db65243a feat(editor): transcribe existing audio attachments (#6375)
Co-authored-by: Bee mines <Beemines82@gmail.com>
Co-authored-by: boojack <stevenlgtm@gmail.com>
2026-09-26 19:04:58 +08:00
boojack 88f13675d8 chore: tweak user default avatar display 2026-09-26 18:49:05 +08:00
boojack 10919ab498 chore(views): remove built-in Tasks and improve empty states 2026-09-26 18:29:05 +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 c5e7d65c12 chore: make individual memos easier to open
Timestamp: the card timestamp was a button that navigated in script, so
it
had no URL preview and could not be opened in a new tab. It is now a
real
link that keeps the origin page and underlines on hover. On the memo's
own
page it renders as plain text, since the link would point at itself.

Action menu: ordered by how often each action is used, showing only what
applies:

- Owner: Open, Edit, Pin | Archive, one task action, Copy > (link,
  content),
  then More > (Move, Delete) when the memo can move, otherwise Delete.
- Archived: Restore | Delete.
- Comment: Edit | task action, Copy | Delete.
- Viewer: Open, Copy.

Open is a real link (new DropdownMenuLinkItem kit wrapper), hidden on
the
memo's own page. Check all / Uncheck all collapse into one item chosen
by
whether tasks are still open. Move only appears when there is a Space to
move to or leave, and a comment's copied link lands on the comment
inside
its parent memo.

Detail sidebar: remove the back-to-origin row. It duplicated browser
back
and the navigation above it, pushed a new history entry instead of going
back, sat inside the mobile drawer, and labelled most origins as Home.
Returning to the origin after archive or delete is unchanged.

Refs #6359
2026-09-26 13:05:58 +08:00
boojack 26be2a9663 feat(navigation): unify creator and space browsing scopes (#6378) 2026-09-26 11:36:31 +08:00
tandyleo110 6ff88e36a2 fix(web): adapt react-hot-toast to dark mode (#6377) 2026-09-25 19:58:48 +08:00
johnnyjoygh 05a2c6db7a chore: replace bird sprites with ink empty states
Use one SVG composition with scene-specific marks for memo, search, and
inbox empty states. Remove the sprite pool and unused placeholder
variants so callers supply the scene and localized message directly.
2026-09-23 08:19:08 +08:00
Johnny c2b8399574 fix(memo): make pinned memos easier to identify (#6369) 2026-09-23 07:28:18 +08:00
johnnyjoygh 61ea0711f8 fix(markdown): align disclosure spacing and weight with body text 2026-09-22 23:54:09 +08:00
Johnny 80bab62c72 feat(editor): add contextual tag, checklist, and visibility suggestions (#6367) 2026-09-22 23:17:52 +08:00
Johnny 4340103c3d feat(markdown): style collapsible sections (#6364) 2026-09-22 19:06:26 +08:00
Johnny fa12d84606 feat: adopt calendar versioning and reset the migration baseline (#6362) 2026-09-22 09:03:49 +08:00
boojack e3d25e18dc fix(i18n): use neutral Korean label for hidden content 2026-09-21 22:11:07 +08:00
bluedbird eab07d8081 refactor(export): rename Memo Archive to Memos Export Format
Avoid confusion with archived memos while preserving legacy ZIP imports. Move Export & Import to the end of basic settings.
2026-09-20 00:37:50 +08:00
bluedbird 2204eceeef fix(i18n): sync translations and remove unused locale keys 2026-09-20 00:09:27 +08:00
bluedbird 7e3d3c6315 fix(web): limit comment menus to relevant actions 2026-09-19 00:33:01 +08:00
kalelovicandkalelooz fa5e55dfc1 fix(web): toggle numbered task list items correctly (#6346)
Co-authored-by: kalelooz <212041863+kalelooz@users.noreply.github.com>
2026-09-19 00:22:27 +08:00
boojack 4f46523758 chore: unify user permissions
An active application ADMIN now passes every memo-local authorization
check on named operations: authorship, audience, Space membership and
participation, attachment and reaction ownership. Structural validity
still applies, an archived admin holds no privilege, and collection
listings keep the audience predicate so feeds never surface other users'
private memos.

- core/access: admin bypass in the read policy; CanManageMemo and
  CanManageAttachment as the shared author-level predicates.
- store: drivers read the actor's role alongside its lifecycle state in
  the mutation transaction; validators accept an admin where they
  required the author or a member; shared attachment binding and
  removal predicates.
- api: handlers use the shared predicates; admins may place memos in
  any existing Space and see a memo's Space by name.
- web: one canManageMemo helper replaces the ad hoc creator checks.
- docs: multi-spaces design revised in place; share RPC comments
  updated.
2026-09-17 23:28:19 +08:00
Johnny 289ca1ec3d fix(web): render tel: and sms: markdown links (#6341) 2026-09-17 23:01:09 +08:00
qwist1233-cpuandqwist1233-cpu f3bec7c735 chore(i18n): complete Turkish translations (#6339)
Co-authored-by: qwist1233-cpu <qwist1233-cpu@users.noreply.github.com>
2026-09-17 19:34:12 +08:00
bluedbird 471745b431 fix: harden attachment, auth, and import paths for public deployment
Bound work an anonymous or low-privilege caller can force:

- Bound thumbnail decoding by declared pixel count before decoding and
  remember images that cannot be thumbnailed (over the bound or not
  decodable), so a small image declaring billions of pixels is served
  as-is instead of decoded on every request. Transient storage read
  errors are not remembered. The bound lives in internal/imagelimit and
  is shared with EXIF stripping.
- Cap request bodies at 16 MiB for procedures that carry no file bytes;
  only inline attachment creation, transcription, and chunked uploads
  keep their larger caps.
- Digest over-long submitted usernames before using them as sign-in
  limiter keys, add header and idle timeouts to the HTTP server, limit
  filter expression size, and cap the SQLite regexp cache.

Close correctness gaps:

- Delete the thumbnail the file server actually writes (.v2.jpeg), its
  failure marker, and the legacy name when an attachment is removed.
- Decide EXIF stripping from the sniffed content as well as the declared
  type, so a mislabeled JPEG keeps no metadata.
- Revoke every other session when a password changes; an admin reset
  revokes all of the target's sessions. Prune expired refresh tokens.
- Enforce the 2 MiB avatar limit the web client already applies.
- Keep S3 object keys unique when the path template has no {uuid}.
- Reject negative attachment page tokens.
- Charge memo archive imports against the write and upload budgets,
  charge repeated validate-only plans, discard only attachments an
  import actually stored, and refuse archives that declare far more
  bytes than they hold.
- Load database-stored attachment bytes only after authorization.
- Remove the unused, unguarded linkmeta.GetImage fetcher.

Frontend: send no referrer when loading external images in memos and
link previews, and drop picture/source from the sanitizer so every
remote image goes through the https-only src rule.

Dependencies: grpc 1.83.1 and x/crypto 0.56.0 for reported advisories.
2026-09-17 08:47:44 +08:00
ABird 14d3c689dd feat(web): highlight search matches in memo content (#6335) 2026-09-16 23:48:00 +08:00
ABird 019ca26bd3 feat: export and import memos as a Memo Archive (#6334) 2026-09-16 22:23:38 +08:00
johnnyjoygh 305310cdd1 fix(map): clean up failed WebGL layers before leaving map 2026-09-16 08:51:41 +08:00
周耕毅(Ryan Chou) 143f224cdd fix(web): keep blurred memo header interactive (#6269) 2026-09-15 09:05:32 +08:00
ABird 2148bf7a21 fix(editor): expand tag autocomplete beyond heading markers (#6327) 2026-09-14 22:39:42 +08:00
ABird ba44a66911 feat: show attachment storage usage in account settings (#6326) 2026-09-14 21:49:48 +08:00
Anand Hegde a69d286735 fix(web): reveal metadata row controls on hover (#6324) 2026-09-14 19:46:50 +08:00
ocfox 49b7ecc583 fix(web): add dark mode theme-color meta tag for PWA status bar (#6320) 2026-09-14 19:43:32 +08:00
Johnny 2e33e7a561 fix(web): normalize memo header author spacing 2026-09-13 23:03:37 +08:00
ABird 45519accd3 refactor: name packages by role and enforce import direction (#6317) 2026-09-13 18:22:54 +08:00
boojack c506f67d22 feat(server): rate limit sign-in, signup, fetches, uploads, and writes (#6315) 2026-09-13 11:58:26 +08:00