-
Notifications
You must be signed in to change notification settings - Fork 472
feat(assets): add ModelInfoPanel for asset browser right panel #8090
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
DrJKL
wants to merge
74
commits into
main
Choose a base branch
from
drjkl/others-call-it-a-garage-sale
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,908
−686
Open
Changes from all commits
Commits
Show all changes
74 commits
Select commit
Hold shift + click to select a range
ecab4c8
feat(assets): add ModelInfoPanel for asset browser right panel
DrJKL 213774e
Add tests for ModelInfoPanel and assetMetadataUtils
DrJKL 8ae753a
refactor(BaseModalLayout): convert right panel state to defineModel
DrJKL 1204eaa
refactor: improve modal layout and add class prop to PropertiesAccord…
DrJKL 3f9ccce
style: add border separators to ModelInfoPanel accordion items
DrJKL 409a492
style(ModelInfoPanel): improve source link styling with Civitai logo
DrJKL 02b6feb
fix: update asset metadata to use correct user_metadata fields
DrJKL ae1c319
feat(ModelInfoPanel): use TagsInput for Compatible Base Models
DrJKL a09ce02
feat(ModelInfoPanel): use TagsInput for Additional Tags
DrJKL 3eff550
feat(assetsStore): add updateAssetMetadata with optimistic cache update
DrJKL 004580a
feat: add editable Model Type select to ModelInfoPanel
DrJKL 5a26072
fix: show collapse button in AssetBrowserModal right panel header
DrJKL 77c1ecc
feat: add slide-in animation for right panel in BaseModalLayout
DrJKL 206a3b6
feat: add editable Description field to model user_metadata
DrJKL 0ed66dd
refactor: use computed properties in ModelInfoPanel
DrJKL 8fbf8be
fix: handle optional created_at in asset schema
DrJKL 9f24174
Knip fix
DrJKL 6225559
Fix the color of the accordion header.
DrJKL 4c6b2c3
fix: clear focusedAsset when side panel is closed via button
DrJKL 356e101
fix: prevent panel close when interacting with select dropdown
DrJKL 92d27e2
fix: prevent Escape key in TagsInput from closing parent modal
DrJKL a974a54
fix: blur textarea on Escape
DrJKL 9403a65
Escape when in the main modal closes the modal
DrJKL f04d79a
feat: make display name editable in ModelInfoPanel
DrJKL 9fb1e8e
fix: update display name optimistically from pendingUpdates
DrJKL ea2080c
feat: use Select component in ModelInfoPanel for model type selection
DrJKL 301dd9e
Non-muted text for editable Display Name
DrJKL 4d61ce2
feat: replace double-click with Use button on Asset Cards
DrJKL 1e469b8
Only color the display name when it is editable.
DrJKL 8aa27f7
fix: update ModelInfoPanel tests to use correct field names and real …
DrJKL e1f0393
fix: use keydown.escape in NodeHeader test to match component handler
DrJKL 95fd72b
fix: Consistent keydown use for EditableText events.
DrJKL 0a233a7
refactor: remove unused fade transition CSS from BaseModalLayout
DrJKL ef2254a
refactor: restructure BaseModalLayout from flexbox to CSS Grid
DrJKL 4ff3158
fix: add min-w-72 to right panel inner div for proper animation
DrJKL 78ef2c0
fix: use fixed rem units for grid columns to enable animation
DrJKL 0df6013
fix: ensure left panel background fills full height in BaseModalLayout
DrJKL ff49060
feat: control right panel via button instead of asset focus
DrJKL 8e5b73c
feat: add placeholder content to right panel when no asset selected
DrJKL cf62a13
fix: use toBeInViewport for clipped nav visibility check in templates…
DrJKL 948cd1c
Add empty and immutable description, set cursor to not-allowed
DrJKL 38b58b4
refactor: remove asset rename functionality from AssetCard
DrJKL 3a1ec15
test: add unit tests for getAssetBaseModels, getAssetModelType, getAs…
DrJKL 5fc713f
test: parameterize remaining assetMetadataUtils tests with it.for
DrJKL bdbc0c2
fix: add accessible labels to icon-only buttons in BaseModalLayout
DrJKL dbe559f
Consistent return type (Promise<void>)
DrJKL 0204cb0
feat: add info button to asset cards to open model info panel
DrJKL 9a00fc4
fix: handle base_models as array in asset filtering
DrJKL d291273
feat: add All vs Imported navigation to AssetBrowserModal
DrJKL c9bfc16
Update icon and i18n function
DrJKL 6f08fd4
fix: test expectation
DrJKL 6999679
fix: revert i18n change to use direct import from @/i18n
DrJKL 5626b35
fix: Mark comfy-api-plugin as build-time only
DrJKL de1db1a
fix(test): i18n plugin instead of global mock
DrJKL e21edcd
Update src/components/widget/layout/BaseModalLayout.vue
DrJKL 1d98d49
cleanup: Use a real SortOption, fix the type to require it.
DrJKL 31d2941
Change NavId to a hinted string
DrJKL 12a49ca
Update src/platform/assets/components/AssetFilterBar.test.ts
DrJKL dc44184
Update src/components/widget/layout/BaseModalLayout.vue
DrJKL b8fda31
a11y: Add aria-label for model info button
DrJKL ad5cd4a
fix: Bad coderabbit commit
DrJKL 9448d4d
feat: Add user editable fields to search
DrJKL 9d1cba7
fix: use display name for asset name sorting
DrJKL bf73f0d
feat: add session download tracking to assetDownloadStore
DrJKL d602b5a
feat: add badge prop to NavItemData interface
DrJKL 177893b
feat: add badge rendering to NavItem component
DrJKL 7c776d8
feat: pass badge prop to NavItem in LeftSidePanel
DrJKL 6871930
feat: wire up session download count badge to Imported nav item
DrJKL 6e94a2d
test: add session download tracking tests
DrJKL 0d25d6d
[automated] Apply ESLint and Prettier fixes
actions-user d22b7d6
refactor: use production types with type guard in useAssetBrowser tests
DrJKL d87e547
feat: implement progressive pagination for Asset Browser model assets
DrJKL a0d4e38
fix: add defensive checks for undefined assets in useAssetWidgetData
DrJKL d36f045
fix: remove unused cn import from NavItem
DrJKL File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick | 🔵 Trivial
Consider adding a brief code example for the i18n testing pattern.
The recommendation to use real
createI18nwith empty messages is good guidance, but a minimal code example would help developers understand the setup quickly without needing to look upSearchBox.test.ts.📚 Suggested addition
🤖 Prompt for AI Agents