Commit Graph

562 Commits

Author SHA1 Message Date
scheinriese
c438798984 Merge origin/master into feat/unified-icon-picker
Brings 1,081 master commits forward. 19 file-level conflicts resolved.
Major master-side changes integrated:

* Migrate yarn → pnpm (package.json + pnpm-lock.yaml)
* Closure compiler upgrade → requires Java 21 runtime
* Recycle-bin properties + delete embedding properties (migrations 65.24/65.25)
* block-renderer plugin replacement infrastructure (block.cljs ~3600-4150)
* Enhanced breadcrumb display (commit 51f0ce261c)
* Heading icon alignment + menu active state (755840c474)
* Scoped choice + sanitize-property-values-for-display in property/config
* Sub-menu Set-icon context menu items
* TooltipArrow / electron handler refactor

Migration renumber: our 65.24-29 → 65.26-31 (after master's 65.24-25).
Schema version bumped to 65.31.

Post-merge fixes (build cleanliness):
- hsl2hex: re-add to util.cljc (master removed; colors.cljs still uses it)
- <unlink-asset: re-add to handler/assets.cljs (master removed; outliner
  pipeline's asset-file unlink still uses it)
- en.edn: dedupe 25 identical keys that survived the conflict resolution
- icon.cljs: drop the duplicate get-used-items / add-used-item! that
  master added (HEAD has v2-storage versions further down with type-aware
  dedup + renderable filtering — preferred)
- block.cljs: restore the inline page-ref avatar size default for
  non-heading contexts (master commit 755840c474 forced 14px via
  ; revert so photo-icons keep their 20px default
  while headings still get heading-aware sizing)
- left_sidebar.cljs: keep master's left-sidebar-resized-at as a real
  binding (not _-prefixed) since the page-title-content fn uses it

Smoke-tested: theme toggle, icon picker, asset delete, page-title
icons, sidebar refs. Outstanding visual issues from master's CSS
changes (icon alignment drift in inline refs, breadcrumb [[]] raw
brackets) tracked as separate follow-up commits.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-13 17:54:31 +02:00
Tienson Qin
00964157b1 dev: run lint-and-test in parallel
run cljs tests in parallel too
2026-05-12 23:36:42 +08:00
scheinriese
50b3cdfbc9 fix: asset deletion lifecycle + PR-review cleanup
Asset deletion (three independent failures stacked):
- Unlink file on asset-block retract via the existing <unlink-asset
  helper at handler/assets.cljs (modules/outliner/pipeline.cljs:74-80).
  The block was commented out; deleted-assets was computed but never
  consumed, so files leaked indefinitely.
- Reactive existence check in image-icon-cp / avatar-image-cp via
  state/sub :db/latest-transacted-entity-uuids. model/sub-block can't
  drive this — worker/react.cljs:63-67 calls (d/entity db-after id),
  which returns nil for retracted entities, so [::block id] is never
  emitted in affected-keys and subscriptions never fire on deletion.
- Force-remount Avatar root via :key on asset-missing? toggle. Radix's
  Avatar primitive tracks image-loading status in context; once
  AvatarImage reported 'loaded', the status sticks even after the image
  unmounts, so AvatarFallback stays hidden.

PR-review cleanup (no behavior change):
- Strip 17+ [DEBUG ...] console statements across icon, block, views,
  two editor handlers, and assets.
- Close content.cljs preview gap: pass :preview-target-db-id +
  :property to icon-search so the block bullet observes hover preview
  consistently with every other surface.
- Scope-correct close-fallback-menu! — use dissoc-icon-preview-field!
  instead of unconditional state/set-state! nil.
- Delete dead code: heal-dangling-asset-icon (raced lazy hydrate),
  asset-uuid->entity, rgb-string->hex, name->hex (named + css),
  format-pairs.
- Hoist icon-grid-cols / custom-tab-cols magic numbers (9 sites).
- Search inputs: add :type "search" and :aria-label (both picker +
  asset-picker).
- Replace hardcoded #6B7280 with (colors/variable :gray :09).
- Reconcile recents-cap doc drift in storage.cljc + recents-lane
  docstring (cap lives in handler/icon-color/max-recents).
- Remove orphan-asset cleanup from outliner/core save-block-inner. Root
  cause (migration 65.27's :url ref-type) is fixed by 65.28/65.29; all
  asset writers are atomic (save-image-asset!, new-asset-block,
  build-new-asset), and the cleanup ran on every save with a silent-
  retract failure mode.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-12 16:28:06 +02:00
Tienson Qin
f1fa9f3f5d fix: remove invalid iOS web fonts 2026-05-10 17:28:10 +08:00
Tienson Qin
63acfae310 fix: ios testflight fonts 2026-05-10 16:40:42 +08:00
Tienson Qin
e3831a2a94 Revert "fix: ios testflight invalid binary"
This reverts commit 61177d19fe.
2026-05-10 16:32:02 +08:00
Tienson Qin
61177d19fe fix: ios testflight invalid binary 2026-05-10 16:00:41 +08:00
Charlie
3c2359a79e enhance(plugins): libs improvements (#12588)
* enhance(libs): add Commands proxy and unified command APIs

* enhance(plugin): improve unregistering of simple and palette commands

* enhance(plugin): add unregister functionality for plugin commands

* chore(libs): add logseq.Commands API guide and implementation

* enhance(libs): introduce LSPluginNet for HTTP client functionality

* fix(ipc): ensure proper handling of IPC messages and improve plugin call structure

* enhance(libs): add HTTP methods (GET, HEAD, POST, PUT, PATCH, DELETE) and error handling

* enhance(api): support additional identifier types for opening blocks in sidebar

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Potential fix for pull request finding

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-05-07 15:21:48 +08:00
rcmerci
c14248c0a9 fix: electron release not include skill file 2026-04-30 21:26:28 +08:00
Tienson Qin
abbc1ad628 Merge pull request #12548 from logseq/feat/desktop-bundle-cli
Feat/desktop bundle cli
2026-04-30 18:09:35 +08:00
rcmerci
6d91d8ccae Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-28 22:59:59 +08:00
rcmerci
eca0ab1a36 Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-28 18:17:17 +08:00
Tienson Qin
70ac6e54ff test(publish): add comprehensive suite and permission coverage 2026-04-28 17:05:33 +08:00
scheinriese
4669d24821 feat: custom color picker with recents, contrast, and named-color autocomplete
Adds a hex/HSV picker pane to the icon-picker color popover, plus a
per-graph recents lane and cross-theme contrast adjustment. Hex input
supports named-color autocomplete (148 CSS + 949 XKCD) with a ghost
suffix that Tab/Right-arrow accepts. Picked colors that fail WCAG 3:1
against either light or dark background are auto-shifted in OKLCH per
mode; recents and the trigger swatch render as half-pie splits when the
two modes diverge.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-26 19:39:38 +02:00
megayu
79c25837cb Migrate from yarn to pnpm (#12529)
* migrate yarn to pnpm

* chore: update pnpm version to 10.33.0 across all package.json files

* chore: update .npmrc and package.json for improved dependency management

* chore: unify Clojure, Node, and Java version in workflow files

* fix: enable shamefully-hoist for now and add electron, keytar to onlyBuiltDependencies

* feat: add cider/piggieback dependency and update nREPL middleware configuration to silence warnings

* ensure pnpm setup prior to node setup

* fix: update logseq/bb-tasks git SHA

* feat: add pnpm configuration for onlyBuiltDependencies in package.json

* feat: add onlyBuiltDependencies configuration for better-sqlite3 in pnpm settings

* chore: update pnpm lockfile

* fix: resolve merge conflicts

* fix: remove invisible characters from markdown headers

* fix: update .npmrc comments for clarity on lockfile usage

* Revert "feat: add cider/piggieback dependency and update nREPL middleware configuration to silence warnings"

This reverts commit 70a111936f.

* fix: remove invisible characters from various README files and add .editorconfig

* fix: clarify lockfile resolution process in SKILL.md

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-04-24 23:40:25 +08:00
Tienson Qin
96009b75c0 add minify 2026-04-24 23:38:06 +08:00
Tienson Qin
ad808fedc9 use vite instead of ncc 2026-04-24 23:32:35 +08:00
Tienson Qin
e048996880 Merge branch 'master' into feat/cliable 2026-04-22 21:07:00 +08:00
megayu
6df9d43c26 update logseq-i18n-lint (#12527)
* chore: update logseq-i18n-lint binaries to 5cb43a2cc559

* chore: update PR creation to use default branch and repo owner variables

* feat(i18n): add check for missing translations in validation process

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2026-04-21 11:11:37 +08:00
Mega Yu
3332972fd9 Merge 'master' into enhance/i18n 2026-04-20 13:24:40 +08:00
charlie
b6e12a263d chore(libs): build cljs sdk with the latest sdk 2026-04-20 12:54:35 +08:00
rcmerci
4b13d67a88 Merge remote-tracking branch 'origin/master' into feat/cliable 2026-04-18 10:25:32 +08:00
Mega Yu
d6bc0b75ec Merge branch 'master' into enhance/i18n 2026-04-17 20:26:15 +08:00
megayu
76285de44b refactor: toolchain upgrade (#12517)
* chore(deps): upgrade Clojure version to 1.12.4 across multiple dependency files

* chore: bump shadow-cljs to 3.3.6

* chore: bump org.clojure/clojurescript to 1.12.134

* chore(deps): upgrade Clojure version to 1.12.4 in workflow files

* chore(deps): upgrade Java version to 21 in workflow files

* chore(deps): upgrade Node.js version to 24 in workflow files

* chore(deps): upgrade Node.js version to 24 in Dockerfile

* feat(updater): migrate electron-forge to electron-builder

* fix wrong android app version

* fix workflow

* feat(dependency-upgrade): add max-update-interval option for dependency audits

* chore(deps): upgrade electron-builder and electron-updater

* fix: update manual verification instructions for Electron shim cache

* chore: update shadow-cljs version to 3.4.4 across all dependencies

* chore: upgrade electron version to 41.2.1

* chore: update metosin/malli dependency to latest

* chore: upgrade cider-nrepl version to 0.59.0 in dependencies

* chore: upgrade clj-kondo version to 2026.04.15 and fix warning

* chore: move Electron windows build configuration from yml to ci

* chore: update Electron signing configuration to extend from base config

* fix: replace icon file for NSIS compatibility

* chore: resolve metosin/malli version conflicts

* chore: upgrade jdk to 21 in e2e workflow

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2026-04-17 19:40:01 +08:00
Mega Yu
007e80d74d enhance(lang): update translation summary to include untranslated count 2026-04-17 11:11:30 +08:00
Mega Yu
81b42a8249 enhance(i18n): add translation summary stats and sorting functions 2026-04-16 16:03:42 +08:00
Mega Yu
b9f08881db feat(util): add utility functions for display width and table rendering 2026-04-16 11:08:00 +08:00
Mega Yu
bf197f9861 feat(lang): add functions for identifying identical translations to English 2026-04-16 11:06:44 +08:00
Mega Yu
26d807d0d6 fix typos 2026-04-15 22:49:11 +08:00
megayu
e7ff4eb2c9 Merge branch 'master' into enhance/i18n 2026-04-15 22:39:48 +08:00
SHI SHUJUN
1a162ae3f0 fix: installation script handling of icons and user-level installations. (#12510) 2026-04-15 22:28:36 +08:00
Mega Yu
e6fbf5a828 add bb lang:format-dicts 2026-04-15 21:27:53 +08:00
Mega Yu
5d244dd93b fix(lang): format percentage output for language translation counts 2026-04-15 20:01:45 +08:00
Mega Yu
0ceda82d33 refactor(lang-lint): leverage logseq-i18n-lint for superior accuracy and performance 2026-04-15 16:00:39 +08:00
Mega Yu
69ee9e2f83 chore: change Github to GitHub 2026-04-15 15:43:52 +08:00
Mega Yu
8347708c69 Merge master into enhance/i18n 2026-04-15 10:23:06 +08:00
Tienson Qin
ca6c254328 add offline scenario tests for chrome instances 2026-04-14 22:11:51 +08:00
Mega Yu
5eda6a8ab6 Merge master into enhance/i18n 2026-04-14 16:42:19 +08:00
Tienson Qin
5c2e8a9f00 fix(sim): emit inline tag block for emptyInlineTag op 2026-04-14 03:33:38 +08:00
Tienson Qin
aefd964a1e fix(sync): simulate all outliner ops and stabilize bootstrap 2026-04-14 03:06:10 +08:00
Tienson Qin
292db15345 add script to create clojure irc graph 2026-04-14 00:19:29 +08:00
Mega Yu
69b7a0e893 improve i18n 2026-04-13 14:39:53 +08:00
Mega Yu
3ac92e7485 improve i18n 2026-04-10 14:39:29 +08:00
Tienson Qin
c80a3cdb98 fix: catch deps clj-kondo warnings in lint-test-deps 2026-04-10 02:37:28 +08:00
Tienson Qin
0392444cdf add bb dev:lint-test-deps to run lint and tests for deps 2026-04-10 00:21:14 +08:00
Tienson Qin
6cd3708c22 enhance(debug): capture sync replay diagnostics 2026-04-09 22:46:43 +08:00
Mega Yu
65180f911c remove unnecessary i18n key 2026-04-09 19:40:24 +08:00
Mega Yu
de1a7a9c6e enhance i18n 2026-04-09 16:22:42 +08:00
Mega Yu
7f0b36e057 enhance i18n 2026-04-09 10:11:14 +08:00
Tienson Qin
8e0114a793 chore(sync-tools): add checksum drift and replay diagnostics tooling 2026-04-09 03:28:00 +08:00