Skip to content

Add sidebar_swipe plugin entry - #696

Merged
3clyp50 merged 1 commit into
agent0ai:mainfrom
axbitinfo-jpg:add_sidebar_swipe
Nov 18, 2026
Merged

3clyp50 merged 1 commit into
agent0ai:mainfrom
axbitinfo-jpg:add_sidebar_swipe

Conversation

@axbitinfo-jpg

Copy link
Copy Markdown

New plugin: sidebar_swipe

Adds swipe gestures for the Agent Zero WebUI left sidebar on mobile, as a complement to the existing hamburger toggle button.

Behavior

  • Swipe from the left edge (within 40 px) to the right opens the sidebar.
  • Swipe to the left while the sidebar is open closes it.
  • The existing #toggle-sidebar button and overlay behavior are unchanged.

Guards

  • Active only at viewport <= 768 px, matching the built-in sidebar.isMobile() breakpoint.
  • Ignored while a modal or overlay is open.
  • Ignored for touches starting in input, textarea, select or contenteditable elements.
  • Ignored inside horizontally scrollable containers.
  • Aborted when vertical movement dominates, so page and list scrolling keep working.

Implementation notes

  • Pure frontend JavaScript registered at the existing initFw_end WebUI extension point.
  • Uses the existing sidebar store (/components/sidebar/sidebar-store.js); no core files are patched.
  • No backend code, no network requests, no dependencies, no settings.
  • No setup/install step is required, so no lifecycle hooks are needed.

Repository

Validation

  • scripts/validate_plugin_submission.py passed locally against the submission commit range.

@3clyp50
3clyp50 merged commit 97a081b into agent0ai:main Nov 18, 2026
1 check passed
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.

2 participants