Commit Graph

23320 Commits

Author SHA1 Message Date
Tienson Qin
3fa232cd1f downgrade posthog 2026-03-24 21:33:39 +08:00
Tienson Qin
e369163c34 updated yarn.lock 2026-03-24 19:04:41 +08:00
megayu
d6403b7746 dependencies upgrade (#12460) 2026-03-23 21:32:28 +08:00
charlie
767540d85b enhance(ux): improve headings function to include normal text option https://github.com/logseq/logseq/issues/12446 2026-03-20 09:31:18 +08:00
Tienson Qin
eaa0d6ff96 fix: re-ordered tx data by replace-attr-retract-with-retract-entity 2026-03-18 16:42:21 +08:00
Tienson Qin
a928a29208 fix: remove new-graph-helper retry for rtc tests 2026-03-18 15:13:56 +08:00
Tienson Qin
8d080cd4fa fix: lint 2026-03-18 07:48:01 +08:00
Tienson Qin
e7bcdb0bcc fix: batch tx should separate schema ops from data ops 2026-03-18 07:43:23 +08:00
Tienson Qin
35206ab1f4 ignore recycle apis 2026-03-18 06:35:28 +08:00
Tienson Qin
ad3cc18a63 fix: lint 2026-03-18 06:31:47 +08:00
Tienson Qin
e122073693 fix: lint 2026-03-18 06:23:22 +08:00
Tienson Qin
9218c16a1d fix: e2e tests 2026-03-18 06:11:04 +08:00
Tienson Qin
2801276ce1 fix(sync): handle recreated lookup refs 2026-03-18 06:11:04 +08:00
Tienson Qin
e3e54eba3f tag/property/closed value should be hard retracted 2026-03-18 06:11:04 +08:00
Tienson Qin
1f30693851 fix: tests 2026-03-18 06:11:04 +08:00
Tienson Qin
6ca2cc4312 fix(sync): disable checksum for encrypted graphs 2026-03-18 06:11:04 +08:00
Tienson Qin
16f775c9ad refactor: separate sync into modules 2026-03-18 06:11:04 +08:00
Tienson Qin
9ff7b99bd4 add adr to strengthen simulation tests 2026-03-18 06:11:04 +08:00
Tienson Qin
5e957beafb add more tests 2026-03-18 06:11:04 +08:00
Tienson Qin
55834b541d fix: db-worker stops working after hot-reload 2026-03-18 06:11:04 +08:00
Tienson Qin
fb76b061b4 fix: simplify db sync for recycle semantics 2026-03-18 06:11:04 +08:00
Tienson Qin
7630d49207 fix: tests 2026-03-18 06:11:04 +08:00
Tienson Qin
174cdfd865 feat: recycle 2026-03-18 06:11:04 +08:00
Tienson Qin
dc829be3f1 fix: lint 2026-03-18 06:11:04 +08:00
Tienson Qin
071677859d refactor(sync): simplify remote sync flow 2026-03-18 06:11:04 +08:00
Rustum Zia
5fe47fb69f fix(left_sidebar): don't activate resizer when sidebar is closed (#12455) 2026-03-17 13:43:09 +08:00
Tienson Qin
b27272828d code cleanup round 2 2026-03-17 00:07:33 +08:00
Tienson Qin
db6fee669a sync client code cleanup 2026-03-17 00:07:33 +08:00
Tienson Qin
917309113f feat: sync checksum 2026-03-17 00:07:33 +08:00
Tienson Qin
6183ba2375 fix(rtc): recover legacy rebased tx tempids 2026-03-17 00:07:33 +08:00
Tienson Qin
33098113ee enhance: returns rejected tx 2026-03-17 00:07:33 +08:00
Tienson Qin
e3366e8e07 enhance(rtc): preserve rebased tx boundaries 2026-03-17 00:07:33 +08:00
Tienson Qin
071d922442 fix: sync tests 2026-03-17 00:07:33 +08:00
Tienson Qin
68476aee3e refactor(outliner): batch ops via temp conn 2026-03-17 00:07:33 +08:00
Tienson Qin
42fec8324e simplify sync by applied txs sequentially 2026-03-17 00:07:33 +08:00
Tienson Qin
b8d7483a81 add scripts to manage graphs 2026-03-17 00:07:33 +08:00
charlie
f023071ac3 fix(ui): improve dropdown menu for the choices values 2026-03-14 15:44:46 +08:00
Tienson Qin
01c1a498cd fix: uploaded graph not ready 2026-03-14 10:11:34 +08:00
scheinriese
e8bddda236 fix(shortcut): limit prefix-conflict detection to same-handler only
Cross-handler prefix overlaps don't cause chord dormancy because each
Closure KeyboardShortcutHandler instance has its own independent key
tree and state machine. Only same-handler prefix conflicts (where
Closure's tree can't have a node be both leaf and branch) cause
actual chord dormancy.

- Change binding-match? to use same-handler? instead of handler-match?
  for prefix overlaps (exact matches still use handler-match?)
- Update test to verify cross-handler prefixes are NOT detected

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 21:10:35 +08:00
Tienson Qin
32d5aaf29d fix: don't show upload-temp graph 2026-03-13 21:00:57 +08:00
Tienson Qin
6a019909cb Merge pull request #12447 from logseq/enhance/shortcut-redesign
enhance(ux): redesign shortcut component and keymap settings page
2026-03-13 20:59:57 +08:00
Tienson Qin
33b2bc0c14 chore: remove unused dict 2026-03-13 20:59:00 +08:00
Tienson Qin
3f6788410a fix: lint 2026-03-13 20:58:36 +08:00
Tienson Qin
088b7be0b0 adjust keymap space 2026-03-13 20:45:58 +08:00
scheinriese
a3471e0406 refactor(shortcut): defer prefix-conflict banner to post-reassign state
Show the amber "Deactivates" banner only after the user confirms
Reassign, not alongside the red "Used by" prompt. Reduces visual
noise during the decision step and shows consequences after the action.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:45:58 +08:00
scheinriese
22a165472a feat(shortcut): inline compact keycaps in prefix-conflict banners
Show chord keycaps alongside action names in the amber "Deactivates"
banner so users can see both the chord pattern and what it does.

- n=1: inline keycap + quoted name
- n=2-3: vertical list with keycap + name per row
- n≥4: count-only fallback
- Proportional auto-fade: 6s/8s/10s based on item count
- Chord strokes visually grouped with 6px gap between strokes
- Compact keycaps tinted amber-12 inside warning banners

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:45:58 +08:00
scheinriese
1cd7cad8ae feat(shortcut): tiered prefix-conflict banners and cross-handler detection
Prefix conflicts (chord shortcuts that go dormant when a simple key
shadows their leading stroke) are now shown as amber warnings instead
of red blocking errors.  Exact-match conflicts remain red with
Reassign.

Key changes:
- Extend binding-match? from same-handler? to handler-match? so
  cross-handler prefix overlaps between co-active handlers are detected
- Add partition-conflicts-by-type and conflict-has-exact? helpers in
  data_helper to split conflicts into exact vs prefix sub-maps
- Three-way debounce in shortcut dialog: exact → red blocking,
  prefix-only → amber auto-save with undo, mixed → stacked banners
- Widen Closure error catch to handle both chord-prefix conflict
  directions ("shortcut: null" and "shortcut: <id>")
- Add CSS color override for undo link inside amber warning banner
- Add i18n keys: deactivates-chord, deactivates-chords
- Add tests for partition-conflicts-by-type and cross-handler detection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:45:58 +08:00
Tienson Qin
b3c9f75eec fix(shortcut): handle prefix conflicts and disabled edits
Cover the three regression cases from review.

- block same-handler leader/chord prefix collisions in keymap conflict detection so bindings like mod+c cannot silently leave mod+c mod+s or mod+c mod+c dormant at runtime
- collapse canonical-equivalent bindings back to default when saving so recorded meta/cmd variants do not linger as redundant custom overrides
- allow disabled shortcut rows to reopen the customize dialog and normalize false defaults into editable empty bindings
- add focused regression tests for conflict detection and shortcut persistence/editability
2026-03-13 20:45:58 +08:00
Tienson Qin
4956f6aef6 wrong comments
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-13 20:45:58 +08:00
scheinriese
57adfb144a Assorted code quality cleanups
- Remove unused clojure.string require in core_test.cljs
- Replace promesa.core p/delay with js/setTimeout, remove import
- Remove redundant final-result binding in print-shortcut-key
- Flatten nested if chain to cond for raw-binding
- Fix nested button inside button (keystroke-active → div)
- Remove dead .cp__shortcut-table-wrap CSS
- Align global-handlers set in get-cross-context-conflicts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 20:45:58 +08:00