memos/web/src
boojack 26f4b73cb9 feat(filter): standard CEL now variable, time accessors, set ops
Replace the custom now() function with an idiomatic `now` timestamp variable (host-injected, frozen once per compile) and retype created_ts/updated_ts/create_time to CEL timestamp. Filters now use standard timestamp/duration arithmetic, e.g. `created_ts >= now - duration("24h")` and `timestamp("2025-01-01T00:00:00Z")`.

Add standard CEL surface that compiles to SQL across SQLite/MySQL/Postgres: timestamp accessors (getFullYear/getMonth/getDate/getDayOfWeek/..., with 0-based month and weekday normalized), ext.Sets() (sets.contains/intersects/equivalent over tags), tags.exists_one(), size() on string fields, and division/modulo folding. A frozen clock is injectable for deterministic tests.

BREAKING CHANGE: now() is removed (use the `now` variable) and time fields are timestamps, so bare-epoch comparisons need timestamp(<epoch>). Existing saved shortcuts using the old syntax must be updated.
2026-06-22 22:42:44 +08:00
..
components chore: make compact mode an opt-in view setting 2026-06-21 22:55:56 +08:00
contexts chore: make compact mode an opt-in view setting 2026-06-21 22:55:56 +08:00
helpers feat: redesign account and SSO management (#5886) 2026-04-24 09:08:58 +08:00
hooks feat(filter): standard CEL now variable, time accessors, set ops 2026-06-22 22:42:44 +08:00
layouts refactor(frontend): remove react-use dependency 2026-05-31 18:32:17 +08:00
lib refactor(web): share markdown element styles between viewer and editor 2026-06-13 22:17:00 +08:00
locales chore: make compact mode an opt-in view setting 2026-06-21 22:55:56 +08:00
pages feat(filter): standard CEL now variable, time accessors, set ops 2026-06-22 22:42:44 +08:00
router feat(about): add about page with bird sprites 2026-05-14 20:30:37 +08:00
themes chore(ui): align frontend on shadcn kit 2026-06-21 09:17:04 +08:00
types fix(instance): add needs_setup so admin-less instances aren't treated as fresh 2026-06-21 22:14:15 +08:00
utils feat(i18n): add searchable locale picker 2026-06-09 09:33:17 +08:00
App.tsx fix(instance): add needs_setup so admin-less instances aren't treated as fresh 2026-06-21 22:14:15 +08:00
auth-state.ts fix(auth): recover session via refresh cookie when localStorage is empty (#5748) 2026-03-20 19:21:11 +08:00
connect.ts fix(sse): stream initial response and refresh tokens 2026-05-09 09:15:50 +08:00
i18n.ts feat(i18n): expand European locale coverage 2026-06-09 09:07:28 +08:00
index.css fix(editor): collapse lingering select-all selection after delete 2026-06-15 09:33:16 +08:00
main.tsx perf: lazy load heavy first-screen dependencies (#5947) 2026-05-12 20:11:39 +08:00