Commit Graph

27 Commits

Author SHA1 Message Date
Bridget Morningstar
90fe7d8e03 adds ability to scroll between workspaces as well as fixing the issue with trackpad 2024-11-28 22:19:25 -06:00
mr. m
c0da03cfe8 Merge pull request #3215 from kristijanribaric/feature/workspace-specific-bookmarks
Feature:  Workspace-specific bookmarks
2024-11-28 18:55:51 +01:00
mr. m
a02ae261cf Merge branch 'dev' into formatting
Signed-off-by: mr. m  <91018726+mr-cheff@users.noreply.github.com>
2024-11-28 18:52:43 +01:00
mr. M
f35cc90ea4 Enhance animations and sidebar panel styles for improved UI transitions 2024-11-28 18:29:22 +01:00
Vijay A
92de4022cb Remove trailing spaces 2024-11-28 07:34:29 +05:30
Kristijan Ribarić
c0df38c23d Fix: Rename _bookmarkWorkspaceCache to _workspaceBookmarksCache
Renames the internal cache variable `_bookmarkWorkspaceCache` to `_workspaceBookmarksCache` for consistency and clarity.  This change does not affect functionality.
2024-11-27 21:54:42 +01:00
Kristijan Ribarić
78d10b4c1b Added workspace selector on bookmarks create/edit modal, added table for storing relationships between workspaces and bookmarks. 2024-11-27 19:51:21 +01:00
Kristijan Ribarić
01c8032f20 Fix: Handle essential tabs and container-specific essentials
Refactor workspace switching logic to correctly handle
essential tabs and introduce container-specific essentials.

This change addresses issues with essential tabs not being
handled correctly during workspace switches.

The `changeWorkspace` function is refactored to improve
clarity and maintainability.  The logic for showing and
hiding tabs is streamlined, and tab selection is handled
more robustly.  A new `_shouldShowTab` function is
introduced to centralize the logic for determining tab
visibility based on workspace and container settings.  The
logic also handles pinned essential tabs in the different workspace types.

The pinned tab manager is updated to support container-
specific essentials and to refresh pinned tabs on workspace
changes.  The `_shouldShowPin` function is introduced to
manage visibility of pinned tabs in different workspaces
considering essential tabs, pinned tabs and containers.

This change also fixes a bug where the selected tab would
sometimes be changed unexpectedly when switching
workspaces.
2024-11-20 10:05:07 +01:00
mr. M
ec681b841e refactor: move sidebar height throttle and content element separation to ZenUIManager; streamline tab toolbar updates 2024-11-19 00:10:30 +01:00
mr. M
ec433fa852 fix: correct typo in essential tab attribute to prevent changing selected tab 2024-11-13 23:33:58 +01:00
mr. M
6185f421b8 fix: prevent changing selected tab for essential tabs and update version to 132.0.2 2024-11-13 23:23:49 +01:00
Kristijan Ribarić
bc45092e03 Added a pref to make essentials container specific, i.e. if a workspace has a container assigned to it, on that workspace only essentials opened in that container will be visible. 2024-11-12 10:44:12 +01:00
kristijanribaric
110279cf4c (feat) Add workspace switching by scrolling sidebar (#2828)
This commit adds the ability to switch workspaces by horizontally
scrolling the sidebar.  A scroll cooldown and threshold are
implemented to prevent accidental workspace changes.  The
`_setupHoverDetection` method is renamed to `_setupSidebarHandlers`
as it now handles both hover and scroll events.
2024-11-10 19:05:15 +01:00
mr. M
056de6fc13 Hide toolbar buttons and workspace indicator in specific conditions 2024-11-10 18:04:47 +01:00
mr. M
dc4f8c6c98 Hide workspace indicator icon when no icon is present 2024-11-10 17:50:49 +01:00
mr. M
f923078445 Fixed expand on hover sidebar 2024-11-10 17:30:27 +01:00
mr. M
7a91ea7107 (feat) Enable swipe actions for workspace navigation 2024-11-09 18:52:22 +01:00
Kristijan Ribarić
14b8a1d8a2 (refactor) Remove debug logging
Removed a debug `console.log` statement that was used
during swipe gesture implementation.  This is no
longer needed.
2024-11-09 17:20:04 +01:00
Kristijan Ribarić
7ab07c69aa Add workspace navigation via mouse back/forward buttons
Adds the ability to navigate workspaces using the mouse
back/forward buttons when hovering over the sidebar.  This
improves the user experience by providing a more intuitive
way to switch between workspaces.

This feature is only enabled when workspaces are enabled.
It intercepts the "AppCommand" events to handle back/forward
navigation.
2024-11-09 17:18:01 +01:00
Kristijan Ribarić
84de31e85b (feat) Implement workspace switching via swipe gestures
This commit implements workspace switching using swipe gestures on the
navigator toolbox and tab bar. It introduces new event listeners for
`MozSwipeGesture*` events to detect and handle horizontal swipes.

The logic determines the swipe direction and switches to the next or
previous workspace accordingly, taking RTL layout into account.  The
implementation uses a state object to track the gesture progress and
prevent unintended workspace switches.
2024-11-09 16:21:46 +01:00
mr. M
31cc0ce7a8 feat: Add swipe gesture support for workspace navigation 2024-11-09 13:50:03 +01:00
mr. M
d7a48bd855 refactor: Remove redundant tab refresh during initialization and streamline workspace startup process 2024-11-08 20:07:02 +01:00
mr. M
f093228f71 feat: Update new tab button preferences and improve workspace indicator styles 2024-11-08 19:34:51 +01:00
mr. M
d05e849299 Fixed not updating workspace name in sidebar when saving 2024-11-05 20:53:22 +01:00
mr. M
ca2dd38f9b Add current workspace indicator and update styles in zen workspaces 2024-11-05 00:38:13 +01:00
mr. M
649d82425a Added zen essentials! 2024-11-04 19:34:32 +01:00
mr. M
ec65a69496 Translated files to a single monorepo 2024-11-04 17:37:02 +01:00