Commit Graph

143 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
scheinriese
1d1a131e1f feat: avatar banner state-as-label, emoji fallback, class-icon inheritance
- Banner redesign: scope · descriptor (Default · Letters, circle), whole row
  expands the customize panel, decorative chevron rotates, 12px medium typography
  matching Linear/Notion metadata patterns
- Compact-state avatar matches sidebar's .page-icon (20×20, 10px / 500),
  avatar-fallback class added so the existing sidebar CSS rule activates
- Class-default-icon inheritance flows to the page-title (was reading the
  tag's own page icon instead of :logseq.property.class/default-icon)
- Emoji as a third :fallback-type alongside :letters and :icon; humanizer
  drives the chip label and banner copy ("Briefcase filled", "White check mark")
- Fallback's "Icon…" opens as a Radix sub-menu (matching content.cljs's
  "Add reaction" pattern), with All/Icons/Emojis tabs, no redundant color or
  delete buttons, and a synchronous focus handoff in onOpenAutoFocus so the
  search input is ready to type the moment the sub-menu opens
- Live preview broadcasts wrapped avatars to :ui/icon-hover-preview so both
  the page-title trigger and the band's tile mirror the hovered fallback
- Fixed cb-rail-wrap collapse via explicit height transition (grid 0fr was
  bleeding ~30px); chip ellipsis logic now lets long icon names ("Align box
  bottom left filled") fit without wrapping the structural label

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 15:42:39 +02:00
scheinriese
c85e8e5588 feat: avatar shape + customize band in asset-picker
Adds a Shape dimension to avatar icons (circle | rounded-rect) with
inheritance through `:logseq.property.class/default-icon`. Surfaced via
a tap-the-preview customize band in the asset-picker (avatar mode) with
a Shape dropdown and a keymap-style Reset/Done rail. Animates open/close.

Highlights:
- normalize-icon defaults `:shape :circle` for legacy data on both the
  slow path and the already-shaped fast path.
- get-node-icon extends class-default `select-keys` to propagate :shape.
- avatar.tsx accepts `data-shape`; CSS in icon.css drives the radius via
  `[data-shape="rounded-rect"]` selectors (avoiding Tailwind JIT issues
  with conditional arbitrary-value classes).
- Customize band: preview tile + Shape dropdown + Reset/Done rail. All
  blocks always rendered so CSS transitions can interpolate height,
  gradient, and the cue badge crossfade. Layout matches Paper artboard
  99K-1 / 97A-1 (344px inner content inside 380px band, inset rail
  separator, gradient flush against topbar).
- Fixes `keep-popup?` plumbing at three forwarding wrappers (asset-
  picker, icon-search, icon-picker) and the topmost on-chosen handler
  in property/value.cljs. Single click now produces a single write
  instead of the prior triple-write race.
- icon-row (property/value.cljs) and icon-search (icon.cljs) both made
  reactive via model/sub-block — so in-popup commits update the picker
  preview/chip live, not just the page-header avatar.
- Lazy `*text-measure-ctx` so the namespace loads in the Node test
  runner (was previously blocking all icon tests).
- New `.lx-toolbar-action` / `.lx-toolbar-reset-link` utility CSS
  mirrors Settings → Keymap shortcut popover footer styling.
- 10 new test assertions for shape default, preservation, fast-path
  handling, and field independence.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-08 00:26:49 +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
Mega Yu
b0fb33d80a fix e2e & revert limit login to email 2026-04-20 12:28:33 +08:00
Mega Yu
39577a1ba4 improve i18n in packages/ui 2026-04-11 09:42:33 +08:00
Mega Yu
9b8ee19c18 feat(i18n): add authentication error handling and localization 2026-04-10 17:45:55 +08:00
Mega Yu
ca1f1ab69b fix: prevent interval memory leaks in countdown timer 2026-04-10 17:39:45 +08:00
Mega Yu
445f2e5ae8 fix: change email input type to email for better validation 2026-04-10 17:23:51 +08:00
Mega Yu
d9a09213c7 feat(i18n): packages/ui 2026-04-10 17:18:54 +08:00
Mega Yu
6153078342 enhance i18n 2026-04-05 17:06:46 +08:00
Mega Yu
8150432710 feat(i18n): add unit tests for translation functionality and improve locale handling in ui 2026-04-01 10:14:15 +08:00
megayu
d6403b7746 dependencies upgrade (#12460) 2026-03-23 21:32:28 +08:00
scheinriese
e782310e57 feat: add unified icon picker with emoji, text SVG, and image icon support
Introduces a comprehensive icon picker system supporting 5 icon types:
emoji, tabler icons, text (SVG viewBox), avatar, and image assets.

Key features:
- Text icons rendered as crisp SVG with smart text splitting
- Image asset picker with grid view, drag-and-drop upload
- Wikipedia Commons image search with license confirmation
- URL-based asset import with validation
- Recently used assets tracking
- Unified icon format with normalize-icon for consistent storage
- DB migrations for default-icon, wikidata-id, property-key-width properties
- Context menu "Set icon" / "Change icon" entry points
- Bordered tooltip arrows for web image info
- Photo-icon sizing in CMD+K and page title contexts

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 13:38:14 +01:00
Tienson Qin
bcc478b5f7 refactor: separate og and db version (#12276)
separate og and new version apps

remove file sync, tldraw, excalidraw and zotero
2025-12-29 15:39:32 +08:00
Tienson Qin
8f4a6d962b chore: remove silkhq components 2025-12-09 20:53:38 +08:00
Charlie
a0a19a91fa feat: new authenticate UI (#12172)
* enhance(ui): login form

* enhance(ui): add localization support with translate and locale management

* enhance(ui): WIP implement new authentication forms with context management

* enhance(ui): add password visibility toggle to input row

* enhance(ui): adjust padding for password visibility toggle

* enhance(i18n): implement internationalization support for authentication UI

* enhance(ui): implement sign in and sign up functionality with loading state

* enhance(ui): add session management and error handling in login form

* enhance(ui): add confirm code form and enhance authentication flow

* enhance(ui): improve sign-in flow and confirm code handling

* enhance(ui): add warning variant to alerts and improve error handling

* enhance(ui): implement countdown timer for code resend functionality

* enhance(ui): implement countdown timer for password reset and enhance login flow

* enhance(ui): export authentication and enhance UI components

* enhance(ui): integrate new login component and refresh token handling

* chore: clear amplify related codes

* enhance(i18n): normalize language codes and update locale handling

* enhance(auth): add multilingual support for signup and password reset flows

* enhance(ui): update login styles to inherit text color

* enhance(ui): adjust input color variables for improved accessibility

* enhance(auth): add password policy validation and tips in multiple languages

* enhance(ui): improve localization handling and update alert styles

* enhance(mobile): enhance login modal styling and accessibility

* fix(ui): update password validation regex for special characters

* enhance(ui): add padding to card header in login dialog

---------

Co-authored-by: Tienson Qin <tiensonqin@gmail.com>
2025-10-28 16:55:43 +08:00
charlie
97634a44a7 fix(android): adjust depth sheet top offset for android compatibility 2025-09-08 16:42:17 +08:00
Tienson Qin
a54b1586b3 fix(mobile): clicking item in left sidebar should close it quickly 2025-08-16 20:31:31 +08:00
Tienson Qin
fb6180c525 enhance(mobile): use persistent sheet for left sidebar 2025-08-16 18:34:56 +08:00
charlie
1de207a0ca enhance(ui): refactor mobile UI components for improved readability and maintainability 2025-08-12 16:15:34 +08:00
Tienson Qin
ba39408d8f chore: remove ionic ui 2025-08-05 23:07:05 +08:00
Tienson Qin
4960790857 add silk sidebar and persistent sheet 2025-08-05 22:09:36 +08:00
charlie
315941c05c enhance(mobile): add page component 2025-07-13 15:49:00 +08:00
charlie
1828fbbdbc enhance(mobile): add root page component 2025-07-10 15:34:17 +08:00
charlie
e1db8e958d enhance(mobile): adapt silkhq page components 2025-07-10 11:49:12 +08:00
charlie
1995da3ae1 enhance(mobile): add silkhq components 2025-07-09 11:19:00 +08:00
charlie
dff4aa64bb enhance(mobile): add silkhq basic components 2025-07-08 17:23:05 +08:00
Tienson Qin
c74abbb7a3 Merge branch 'master' into feat/capacitor-new 2025-06-06 10:28:24 +08:00
Tienson Qin
876db84672 fix: can't scroll more than a couple journals down
without losing position. This bug happens for file graphs because
 it keeps creating the today journal page if it's empty.
2025-06-06 06:35:10 +08:00
Tienson Qin
7c510aaa67 enhance(ux): use presentingElement cards instead of nav 2025-06-03 05:35:19 +08:00
charlie
6955747049 fix: missing files 2025-05-28 18:18:02 +08:00
charlie
6bc47f641e chore(capacitor): ionic ui 2025-05-28 18:14:01 +08:00
Tienson Qin
81ed9bc09b fix: whiteboards block auto resize 2025-05-06 18:35:04 +08:00
Tienson Qin
04fd74806c chore: remove unused code 2025-05-06 16:49:46 +08:00
charlie
8255725178 fix(ui): toolbar seperator for the whiteboard 2025-05-06 15:15:03 +08:00
charlie
7183bbd2b4 fix(shui): dialog content warning 2025-04-25 14:33:00 +08:00
Charlie
d9bc7fb61b refactor(ui): remove the radix primitives (#11832)
* refactor(ui): remove cloned radix primitives

* fix(ui): radix dialog warning

* fix(ui): remove radix toast warning
2025-04-25 13:02:10 +08:00
Tienson Qin
a74c99af0f fix: add background color for code block actions 2025-04-09 18:18:54 +08:00
Tienson Qin
02a3c407fb Merge branch 'feat/db' into feat/blocks-action-bar 2025-02-28 19:25:24 +08:00
charlie
9a95448014 enhance(ui): sync specific branch for the radix ui primitives 2025-02-27 12:42:18 +08:00
Tienson Qin
82ca4bc9e5 wip: add action bar for selected blocks
New UI component: ButtonGroup.
2025-02-27 00:07:58 +08:00
charlie
c953fb7925 enhance(ui): dom attributes warning 2025-01-20 12:25:01 +08:00
Gabriel Horner
dbb84f0327 Merge branch 'feat/db' into refactor/tag-as-type 2024-12-19 15:29:25 -05:00
charlie
96fb8da599 enhance(ui): add ghost shui button for the toolbar 2024-12-19 17:51:33 +08:00
Tienson Qin
2599b45768 Merge branch 'feat/db' into refactor/tag-as-type 2024-12-19 15:09:02 +08:00
Charlie
630c077c02 Enhance(UX): left sidebar (#11649)
* chore(ui): add sidebar related components

* chore(shui): add sidebar core

* enhance(ui): WIP polish left sidebar

* enhance(ui): polish opacity value

* enhance(ui): remove unnecessary css

* enhance(ui): simplify the left sidebar related css

* enhance(ui): polish left sidebar navigations

* enhance(ui): polish navigations items

* enhance(ui): polish graphs picker from the left sidebar

* enhance(ui): polish graphs selector

* enhance(ui): graphs dropdown content

* enhance(ux): create new page for the graphs selector section

* enhance(ui): remote icon for the graphs selector

* enhance(ui): polish sidebar navigations filter

* fix(ui): background color for the left sidebar

* enhance(ui): refactor names related with the left sidebar

* enhance(ux): WIP configurable navigations from the left sidebar

* enhance(ux): configurable navigations popup

* enhance(ux): persist user navigations from the left sidebar

* fix(ui): bad graph selector type icon

* fix: lint

* fix: lint

* enhance(ui): polish details for the left sidebar

* chore: remove shadcn sidebar component

* chore: remove shadcn sidebar related component

* fix(ui): text overflow for the page name item
2024-12-19 15:00:52 +08:00
Tienson Qin
6505d535c3 Add shadcn tabs 2024-12-17 22:04:27 +08:00
Tienson Qin
96e9319c52 fix: block ref color 2024-11-06 13:14:03 +08:00
charlie
93685fefac enhance(ui): polish colors for the srs buttons 2024-09-26 14:18:55 +08:00