Skip to content

feat(settings): add collapsible sidebar feature flag and user settings#714

Open
dembrane-sam-bot wants to merge 1 commit into
mainfrom
sam/echo-864-collapsible-sidebar-feature-flag
Open

feat(settings): add collapsible sidebar feature flag and user settings#714
dembrane-sam-bot wants to merge 1 commit into
mainfrom
sam/echo-864-collapsible-sidebar-feature-flag

Conversation

@dembrane-sam-bot

Copy link
Copy Markdown
Contributor

Collapsible Sidebar Feature Flag

Implement support for collapsible sidebar under user-specific feature flags (app_user.settings), default off. Added a "Beta features" card inside the user Settings -> Appearance tab with a checkbox to opt-in, plus collapse/expand behavior with responsive padding layout for breadcrumbs.

Discussion: https://dembraneworkspace.slack.com/archives/C0884QPQF6W/p1782215110561439
Refs: ECHO-864

What this changes

  • User-specific settings JSON field added to app_user in Directus to store feature flags — add_user_settings_field.py, settings.json
  • /v2/me GET/PATCH updated to serve, modify, and merge user settings — me.py, schemas.py, test_user_settings_flags.py
  • "Beta features" section added under Settings -> Appearance to toggle enable_collapsible_sidebarBetaFeaturesCard.tsx, UserSettingsRoute.tsx
  • Toggling the flag shows/hides a collapse button in the sidebar header and an expand button (hamburger icon) at the top-left of the main layout, with dynamic padding adjustment on the breadcrumbs — SidebarHeader.tsx, useSidebarState.ts, BaseLayout.tsx, AppBreadcrumbs.tsx, ResizeHandle.tsx, SidebarShell.tsx

Confidence

Confidence: high. Complete integration on both backend and frontend layers with full Lingui macro internationalization and dedicated backend unit tests. All modified files compile perfectly.

Implement support for collapsible sidebar under app_user.settings.
Add Beta features section under User Settings (Appearance tab) with a checkbox to toggle on/off.
Handle collapsible sidebar toggling in AppSidebar, SidebarHeader, and BaseLayout, adjusting breadcrumbs padding dynamically.

Refs: ECHO-864
@linear

linear Bot commented Jun 23, 2026

Copy link
Copy Markdown

ECHO-864

@github-actions

Copy link
Copy Markdown

Hi @dembrane-sam-bot!

Thank you for contributing to Dembrane ECHO! Before we consider your Pull Request, we ask that you sign our Contributor License Agreement (CLA). This is only required for your first Pull Request.

Please review the CLA, and sign it by adding your GitHub username to the contributors.yml file. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant