Yourz
f06649ae42
fix: restore tree container ref
2026-01-22 16:16:45 +08:00
Yourz
22f2ef1898
fix: update virtual list of tree by virtual grid component
2026-01-22 16:16:45 +08:00
Yourz
89d0554746
fix: remove throttle
2026-01-22 16:16:45 +08:00
Yourz
bd47fb376c
fix: solve blank sidebar
2026-01-22 16:16:45 +08:00
Yourz
7042c5dbb4
refactor: extract nested ternary into early return pattern
2026-01-22 16:16:45 +08:00
Yourz
489c82fb3b
fix: add error handling for async node.handleClick
...
Wrap node.handleClick() with errorHandling.wrapWithErrorHandlingAsync
to prevent unhandled promise rejections
2026-01-22 16:16:45 +08:00
Yourz
ed186f9033
refactor: extract SCROLL_THROTTLE_MS constant and inline applyWindow
...
Apply coderabbitai suggestions
2026-01-22 16:16:45 +08:00
Yourz
e094e42c07
refactor: apply coderabbitai suggestions
...
- Use createInitialWindowRange and calculateSpacerHeights in getTotalSpacerHeights
- Use active range after shift for recursive window processing
- Remove unused export from findNodeByKey
2026-01-22 16:16:44 +08:00
Yourz
0738773b15
refactor: extract common shiftNodeWindow helper function
...
Apply DRY principle suggestion from coderabbitai
2026-01-22 16:16:44 +08:00
Yourz
8656cc8468
refactor: optimize TreeExplorer based on coderabbitai suggestions
2026-01-22 16:16:44 +08:00
Yourz
6a6301012f
refactor: use calculateScrollPercentage utility function
...
Apply suggestion from coderabbitai bot
2026-01-22 16:16:44 +08:00
Yourz
19d43ea455
fix: set tree container max height to calc(100vh - 144px)
2026-01-22 16:16:44 +08:00
Yourz
d0005770aa
feat: implement virtual list with sliding window for TreeExplorer
2026-01-22 16:16:44 +08:00
Alexander Brown
5b91434ac4
Cleanup: Sidebar Tabs component and style alignment ( #7215 )
...
## Summary
Unify the current sidebar tabs, structurally and aesthetically.
## Changes
- Removes the Assets only Layout
- Standardizes the title styling and spacing across the tabs.
## Review Focus
<!-- Critical design decisions or edge cases that need attention -->
<!-- If this PR fixes an issue, uncomment and update the line below -->
<!-- Fixes #ISSUE_NUMBER -->
## Screenshots (if applicable)
<!-- Add screenshots or video recording to help explain your changes -->
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-7215-WIP-Sidebar-Tabs-component-and-style-alignment-2c26d73d3650817193bfd752e0d0bbde )
by [Unito](https://www.unito.io )
2025-12-09 00:33:08 -07:00
Alexander Brown
b943c0fa75
Lint: Add tailwind linter ( #5984 )
...
## Summary
Adds the [tailwind lint
plugin](https://github.com/francoismassart/eslint-plugin-tailwindcss/?tab=readme-ov-file#eslint-plugin-tailwindcss )
and fixes the currently fixable rules ([v4 is still in
beta](https://github.com/francoismassart/eslint-plugin-tailwindcss/?tab=readme-ov-file#about-tailwind-css-4-support )).
## Changes
- **What**: Enforces things like consistent class order, and eventually
can prohibit extra classes that could be utilities instead
- **Dependencies**: The plugin and its types
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5984-Lint-Add-tailwind-linter-2866d73d365081d89db0d998232533bb )
by [Unito](https://www.unito.io )
---------
Co-authored-by: GitHub Action <action@github.com >
2025-10-08 19:39:14 -07:00
Alexander Brown
874ef3ba0c
Lint: Add eslint import plugin ( #5955 )
...
## Summary
Adds the linter, turns on the recommended and a few extra rules, fixes
existing violations.
Doesn't prohibit `../../...` imports yet, that'll be it's own PR.
## Changes
- **What**: Consistent and fixable imports
- **Dependencies**: The plugin and parser
## Review Focus
How do you feel about the recommended rules?
What about the extra ones?
[Any
more](https://github.com/un-ts/eslint-plugin-import-x?tab=readme-ov-file#rules )
you'd want to turn on?
┆Issue is synchronized with this [Notion
page](https://www.notion.so/PR-5955-Lint-Add-eslint-import-plugin-2856d73d3650819985c0fb9ca3fa94b0 )
by [Unito](https://www.unito.io )
2025-10-07 20:31:00 -07:00
Alexander Brown
6b59f839e0
Devex: Faster linting ( #5611 )
...
* devex: Keep the presubmit from wiping the lint cache
* devex: typescript for eslint config
* devex: upgrade lint plugins and dedupe lockfile
* lint: Fix autofixable rules with updated vue linter
* lint: Remove default for required prop
* lint: temporarily disable warnings for missing defaults
* deps: Update vue-tsc
* lint: use the config convenience utility, switch to using projectService
* lint: Fix redundant eslint config blocks and misplaced parser
* lint: Split up parsing options for typescript vs vue files
2025-09-16 19:23:03 -07:00
Chenlei Hu
a03841cb1a
[lint] Enable plugin vue recommended rules ( #3403 )
2025-04-11 12:53:20 -04:00
Chenlei Hu
dc5d7ea1be
[lint] Enforce @typescript-eslint/no-floating-promises ( #3402 )
2025-04-11 12:19:22 -04:00
Chenlei Hu
af0bf05883
[TS] Add null checks to TreeExplorer.vue ( #3166 )
2025-03-20 13:08:22 -04:00
Chenlei Hu
a049e9ae2d
[TS] Enable strict mode ( #3136 )
2025-03-18 22:57:17 -04:00
Chenlei Hu
db43f587a6
[TS] Fix ts-strict errors in Vue components (Part 4) ( #3134 )
2025-03-18 20:42:32 -04:00
Chenlei Hu
2db29fc2af
[TS] Fix ts-strict errors in Vue components (Part 1) ( #3119 )
2025-03-17 21:15:00 -04:00
Chenlei Hu
90053058ba
[Refactor] Support handleAddFolder in TreeExplorer ( #3101 )
2025-03-17 14:08:23 -04:00
Chenlei Hu
b36f748a78
[nit] Remove unused provide in TreeExplorer ( #3100 )
2025-03-17 12:26:35 -04:00
Chenlei Hu
d57d12b426
[Refactor] Handle rename in TreeExplorer ( #3099 )
2025-03-17 12:26:26 -04:00
Chenlei Hu
1610d06cd1
[Refactor] Accept single root node in TreeExplorer ( #3088 )
2025-03-17 10:52:06 -04:00
Chenlei Hu
6525ae7cf4
[Refactor] Rename hooks/ to composables/ ( #2437 )
2025-02-05 15:05:56 -05:00
Chenlei Hu
292af3fe3f
[Refactor] Replace explicit 'node' param with 'this' for TreeExplorer ( #2427 )
2025-02-05 12:20:08 -05:00
bymyself
4699360147
Show bookmark buttons when item is focused ( #2386 )
2025-01-30 14:45:04 -08:00
Chenlei Hu
34c267c755
[chore] Update primevue to 4.2.5 ( #2304 )
2025-01-20 16:22:24 -05:00
Chenlei Hu
d8f074fea0
[Lint] Sort imports ( #2104 )
2024-12-30 17:26:37 -05:00
Chenlei Hu
b6038128cb
[i18n] g global namespace ( #1843 )
...
* Batch move global scope i18n to g. namespace
* Minor fix
* Update locale
* Update locales [skip ci]
* More moves
* Regroup icon/color
* nit
* Fix component test
---------
Co-authored-by: github-actions <github-actions@github.com >
2024-12-07 22:07:03 -05:00
Chenlei Hu
dde9c3dad5
Fix tree explorer y-axis padding ( #1540 )
...
* Fix tree explorer y-axis padding
* nit
2024-11-14 17:15:57 -05:00
Chenlei Hu
71eeee6744
Less padding on sidebar tabs for small screens ( #1511 )
...
* Reduce searchbox and tree padding for small screen
* Smaller buttons
2024-11-11 20:15:34 -05:00
Alex "mcmonkey" Goodwin
d2d645f74b
better badges for empty/loading model library folders ( #953 )
...
* better badges for empty/loading model library folders
for #945
* fix total count on loaded nodes
* fix test break
* additional test fix
* use a null prop fallback instead of having to explicitly calc
* patch
2024-09-25 16:01:50 +09:00
Chenlei Hu
810a63f808
Support async hooks in TreeExplorerNode ( #888 )
...
* Support async hooks in TreeExplorerNode
* rebase
* nit
* Fix component test failure
* Add edit vitest
* Add more tests
* Add component test
2024-09-19 20:10:43 +09:00
Chenlei Hu
609984d400
No selection on tree node if selectionKeys prop is not set ( #887 )
2024-09-19 16:48:56 +09:00
Chenlei Hu
a57c958058
Bind extra context menu items on TreeExplorerNode interface ( #886 )
2024-09-19 14:51:07 +09:00
Chenlei Hu
a2cf6a7be2
Refactor TreeExplorer (Add handleClick hook) ( #867 )
...
* Refactor TreeExplorer (Add handleClick hook)
* nit
2024-09-18 09:36:21 +09:00
Chenlei Hu
ebdcd92977
Extract error handling with toast message as hook ( #825 )
2024-09-14 11:25:08 +09:00
Chenlei Hu
d04dbcd2c1
[Major Refactor] Use TreeExplorer on nodeLibrarySidebarTab ( #699 )
...
* Basic move
* Add back node bookmark
* Move node preview
* Fix drag node to canvas
* Restore click node to add to canvas
* Split bookmark tree and library tree
* Migrate rename and delete context menu
* Fix expanded keys
* Split components
* Support extra menu items
* Context menu only for folder
* Migrate add folder
* Handle drop
* Store color customization
* remove extra padding
* Do not show context menu if no item
* Hide divider if no bookmark
* Sort bookmarks alphabetically default
* nit
* proper edit
* Update test selectors
* Auto expand on item drop
* nit
* Fix tests
* Search also searches bookmarks tree
* Add serach playwright test
2024-09-01 14:03:15 -04:00
huchenlei
50f1ca8eaf
Add extra interfaces
2024-08-31 21:10:32 -04:00
huchenlei
280b43fd58
Merge folder and node impl
2024-08-31 21:10:32 -04:00
huchenlei
488f0d82b4
More refactor
2024-08-31 21:10:32 -04:00
huchenlei
bc3ec65967
Move
2024-08-31 21:10:32 -04:00