Open
Conversation
Add type definitions for extensible sidebar tab system. Tabs can be registered at config.admin.sidebar.tabs with icon, content component, and override/disable support. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Create default tab component for displaying collections and globals. This will be the built-in tab shown by default in sidebar. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Create function that returns built-in sidebar tabs. Currently just the collections tab, but more can be added later. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Implement config merging logic for sidebar tabs: - Combines built-in + user tabs - Merges by slug (override support) - Filters disabled tabs - Fully tested Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Ensure sidebar tab icons and components are included in import map generation so they can be resolved at runtime. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Load active tab from user preferences on mount and save changes. Ensures tab selection persists across sessions. - Add activeTab field to NavPreferences type - Update getNavPrefs to fetch sidebar preferences separately - Pass navPreferences to SidebarTabsClient - Save tab changes using setPreference hook Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Move sidebar.tabs from admin.sidebar to admin.components.sidebar to be consistent with other component slots - Update styles to be edge-to-edge like original DefaultNavClient - Remove horizontal padding from tabs and content - Add proper width and flex-grow to match nav layout Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Replace made-up CSS variables with actual design system: - Use base() SCSS function for spacing - Use --style-radius-l for border radius - Use --theme-border-color for borders - Use @include shadow-sm mixin - Use proper sr-only pattern for labels Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Use auto-fit grid with 24% minmax for responsive 4-column layout - Remove aspect-ratio for flexible tab sizing - Reduce padding on individual tabs to calc(var(--base) / 4) - Update border radius: container to --style-radius-m, tabs to --style-radius-s - Remove container padding, use gap only - Active tab border color to --theme-elevation-100 Result: 2-4 tabs fill width, 5+ tabs wrap to max 4 per row. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Create packages/payload/src/preferences/keys.ts with PREFERENCE_KEYS constants - Replace all preference key strings with imported constants - Rename sidebar preference key from 'sidebar' to 'nav-sidebar-active-tab' - Update all files using preferences to import PREFERENCE_KEYS This prevents typos and makes preference keys more discoverable and maintainable. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
- Remove CollectionsTab component (poorly named, showed collections AND globals) - Replace with DefaultNavClient throughout for consistency - Update Nav to fall back to DefaultNavClient when no custom tabs configured - Pass explicit props instead of spreading to SidebarTabs - Move test components from test/_community to test/admin - Add e2e tests for sidebar tabs functionality Tests cover: - Rendering custom sidebar tabs - Switching between tabs - Persisting active tab in preferences - Default nav tab behavior Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Adds FilterIcon and TypeFilter component that renders a checkbox popup for filtering by collection type in the hierarchy list view.
Contributor
📦 esbuild Bundle Analysis for payloadThis analysis was generated by esbuild-bundle-analyzer. 🤖
Largest pathsThese visualization shows top 20 largest paths in the bundle.Meta file: packages/next/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_index.json, Out file: esbuild/index.js
Meta file: packages/payload/meta_shared.json, Out file: esbuild/exports/shared.js
Meta file: packages/richtext-lexical/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_client.json, Out file: esbuild/exports/client_optimized/index.js
Meta file: packages/ui/meta_shared.json, Out file: esbuild/exports/shared_optimized/index.js
DetailsNext to the size is how much the size has increased or decreased compared with the base branch of this PR.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.