Commit graph

504 commits

Author SHA1 Message Date
mr. M
8db952694e
Merge branch 'main' of https://github.com/zen-browser/components 2024-10-24 21:46:12 +02:00
mr. M
a67faa2ea4
Refactor ZenThemePicker class to initialize context menu 2024-10-24 21:46:07 +02:00
mr. m 🤙
c7e1f293a6
Merge pull request #64 from Richard-Woessner/dev
Fix issue with workspace icon not updating on edit
2024-10-24 22:38:41 +03:00
ricky
213d507258 Fix issue with workspace icon not updating on edit 2024-10-24 15:23:36 -04:00
mr. m 🤙
dc1400f4db
Merge pull request #63 from kristijanribaric/fix/workspace-reordering-fixes
Fix: Add functionality to move workspace to the end and disable reorder mode on panel close
2024-10-24 21:45:44 +03:00
Kristijan Ribarić
2222d97a99 fix: Add functionality to move workspace to the end
This commit adds the ability to move a workspace to the end of the workspace list by dragging it to a designated drop target.

The changes include:

- Creation of a new "last position drop target" element that allows dragging a workspace to the end.
- Event listeners for dragover, dragenter, dragleave, and drop events on the drop target element.
- Implementation of `moveWorkspaceToEnd` function to update the workspace positions in storage when a workspace is moved to the end.
- Reorder mode is exited if the panel is closed.
- Updates to the workspace list to include the last position drop target.
2024-10-24 20:26:32 +02:00
mr. m 🤙
c5971af912
Merge pull request #61 from kristijanribaric/fix/open-new-tab-when-last-unpinned-tab-is-closed-in-workspace-and-no-pinned-tabs-are-loaded
Fix: Open new tab when last unpinned tab is closed in workspace and no pinned tabs are loaded
2024-10-20 19:04:50 +03:00
Kristijan Ribarić
b77d7ce110 Fix: Open new tab when last unpinned tab is closed in workspace and no pinned tabs are loaded
Added a preference to keep default behavior or apply the new one.
2024-10-20 17:38:21 +02:00
mr. M
e04d67db05
FIxed always rendering the split view overlay, pottentially fixing huge speed issue 2024-10-19 18:05:30 +02:00
mr. M
84f7be7948
Fixed 'cancel' button for workspaces creation 2024-10-19 12:48:04 +02:00
mr. M
c79de8b430
Allow reserved keyboard shortcuts to be changed 2024-10-18 23:10:27 +02:00
mr. m 🤙
7a8579c913
Merge pull request #60 from kristijanribaric/fix/create-new-tab-when-closing-last-unpinned-tab
Fix: Create new tab when closing last unpinned tab.
2024-10-18 23:33:59 +03:00
Kristijan Ribarić
410264c9c6 Fix: Create new tab when closing last unpinned tab. 2024-10-18 20:45:16 +02:00
mr. M
cfa0d1c8f4
Merge branch 'main' of https://github.com/zen-browser/components 2024-10-18 18:19:59 +02:00
mr. M
ed83f5952e
Refactor ZenKeyboardShortcuts.mjs to rebuild shortcuts if data is missing 2024-10-18 18:19:53 +02:00
mr. m 🤙
301fec9557
Merge pull request #59 from GunGunGun/patch-1
Recreate shortcuts file if not exist/deleted -  ZenKeyboardShortcuts.mjs
2024-10-18 19:19:32 +03:00
mr. M
d567e18216
Fixed shortcuts on startup 2024-10-18 17:30:50 +02:00
mr. M
e13fa2315e
Refactor workspace icon picker element IDs 2024-10-18 17:09:13 +02:00
mr. m 🤙
cb51987dc2
Merge pull request #58 from JosueGalRe/main
 Added disable all component handling
2024-10-18 17:49:21 +03:00
Gun
e6d144879c
Recreate shortcuts file if not exist/deleted - ZenKeyboardShortcuts.mjs
Recreate shortcuts file if not exist/deleted -  ZenKeyboardShortcuts.mjs
2024-10-18 19:59:41 +07:00
Bryan Galdámez
2f2881814e Added disable all component handling 2024-10-17 22:57:55 -06:00
mr. m 🤙
d853fa8de4
Merge pull request #57 from HarryHeres/fix/workspaces-icon-picker
Fixing workspaces icon picker
2024-10-18 01:40:31 +03:00
HarryHeres
6b4d3f54f3
Fixing workspaces icon picker 2024-10-18 00:27:56 +02:00
mr. m 🤙
d569f48bb2
Merge pull request #56 from gunir/patch-2
Better placement for Open In Split View
2024-10-17 20:31:48 +03:00
mr. m 🤙
a7eecc0d9c
Merge pull request #55 from HarryHeres/fix/macos-window-buttons-hover
Fixed MacOS window buttons hover in compact mode
2024-10-17 20:31:06 +03:00
mr. m 🤙
ec791a3ea1
Merge pull request #54 from kristijanribaric/feature/workspace-reordering
Feature:  Workspace reordering
2024-10-17 20:29:44 +03:00
Gunir
2bb41daebe
Better placement for Open In Split View 2024-10-17 09:35:03 +07:00
HarryHeres
624eb62453
Fixed MacOS window buttons hover in compact mode 2024-10-16 21:19:58 +02:00
Kristijan Ribarić
c8deb36100 Re-implemented workspace reordering to be based on dragging. 2024-10-16 10:08:45 +02:00
Kristijan Ribarić
17cace3097 feat: Allow workspace reordering
This commit introduces the ability to reorder workspaces in the workspace manager. This adds functionality to move workspaces up and down within the list, allowing users to customize the order in which they appear.

- Added new buttons for moving workspaces up and down.
- Implemented `moveWorkspaceUp` and `moveWorkspaceDown` methods in `ZenWorkspacesStorage` to handle workspace reordering.
- Updated `ZenWorkspaces` to handle the new reorder mode and button events.
- Modified the workspace list UI to display reorder buttons and indicate when reorder mode is active.

These changes provide users with more control over their workspace organization and improve the overall usability of the workspace manager.
2024-10-15 20:05:07 +02:00
mr. M
686c364b59
Refactor ZenSidebarManager to use dynamic Firefox version in default mobile user agent 2024-10-15 17:06:43 +02:00
mr. M
83a612c6e5
Fix issue with corrupted themes data file 2024-10-15 16:10:25 +02:00
mr. M
3dc7738737
Refactor ZenKeyboardShortcuts to remove event listener duplication 2024-10-15 15:38:30 +02:00
mr. M
cdc9fb4980
Refactor ZenKeyboardShortcuts to migrate from version 2 to 3 2024-10-15 15:05:27 +02:00
mr. M
ecdc196752
Fixed MacOS native shortcuts 2024-10-15 14:05:02 +02:00
mr. M
d66477ba43
Refactor ZenWorkspaces to fix issue with workspace icon picker positioning 2024-10-15 12:09:09 +02:00
mr. M
53317969bf
Refactor ZenWorkspaces to fix issue with workspace icon picker positioning 2024-10-15 09:38:48 +02:00
mr. M
612abc81e7
Refactor ZenKeyboardShortcuts to handle null key values 2024-10-15 08:28:16 +02:00
mr. M
cfdac01690
Refactor ZenWorkspaces to remove unnecessary then call and return an array 2024-10-14 20:55:32 +02:00
mr. M
2d43df747d
Fixed workspaces not rendering properly 2024-10-14 19:55:01 +02:00
mr. M
6031981acd
Refactor ZenSidebarManager and ZenWorkspaces
This commit refactors the ZenSidebarManager and ZenWorkspaces classes. In ZenSidebarManager, the _createWebPanelBrowser method now includes the userContextId when creating a new browser. Additionally, a new method createContainerTabMenu is added to handle the creation of a context menu for container tabs. The contextChangeContainerTab method is also added to handle changing the userContextId for a container tab.

In ZenWorkspaces, the ownerWindow property is now set to the window object. The _contextMenuId property is now bound to the ZenWorkspaces instance. The onclick event handler is modified to use the ownerWindow property and the changeWorkspace method is now called on the ZenWorkspaces instance.

These changes improve the functionality and maintainability of the ZenSidebarManager and ZenWorkspaces classes.
2024-10-14 18:31:05 +02:00
mr. M
b645656e6f
Fixed workspaces syncing across windows 2024-10-14 17:45:09 +02:00
mr. m 🤙
41193b2050
Merge pull request #53 from kristijanribaric/feature/force-container-tabs-to-open-in-assigned-workspace
Feature: Force container tabs to a workspace where that container is set as default
2024-10-14 17:24:07 +02:00
Kristijan Ribarić
c9adec30cb Fix: Remove unnecessary then call in ZenWorkspaces and return an array. 2024-10-14 16:21:40 +02:00
Kristijan Ribarić
74bd43f9c9 Add lazy pref getter for zen.workspaces.force-container-workspace 2024-10-14 10:43:14 +02:00
Kristijan Ribarić
b66af853f2 feat(workspaces): Force container tab to open in workspace where it's assigned as default
This commit introduces a new preference, `zen.workspaces.force-container-workspace`, which allows users to automatically switch to the workspace associated with a specific tab's container.
2024-10-14 10:33:09 +02:00
mr. m 🤙
232cb69ccf
Merge pull request #52 from kristijanribaric/fix/workspaces-open-external-links-in-default-container
Fix: Open external links in workspace's default container
2024-10-13 23:48:21 +02:00
Kristijan Ribarić
ca0e6030d5 This commit introduces a new parameter allowInheritPrincipal to the getContextIdIfNeeded function in ZenWorkspaces.mjs. This allows recognition of opening bookmarks in new tab so that they can be opened in a default container. 2024-10-13 22:41:37 +02:00
Kristijan Ribarić
893ebcd0f7 fix(workspaces): Use active workspace context ID for external calls
This commit modifies the `getContextIdIfNeeded` method to automatically use the active workspace context ID for external calls.

Previously, external calls would use the provided `userContextId` if it was different from the active workspace context ID. Now, if `fromExternal` is true and there's an active workspace, the method will return the active workspace context ID, ensuring consistency with the active workspace.
2024-10-13 22:07:30 +02:00
mr. M
1bc2cf53c8
Refactor KeyShortcutModifiers to handle platform-specific key modifiers consistently 2024-10-13 17:41:13 +02:00