Commit graph

54 commits

Author SHA1 Message Date
mauro-balades
9a1dcde549 Refactor ZenSidebarManager to handle drag enter event properly 2024-09-22 17:49:16 +02:00
mauro-balades
f56b8c0e59 Refactor ZenViewSplitter to reset tab state when removing a group 2024-09-22 13:36:09 +02:00
mauro-balades
ef5da75e5e Refactor ZenKeyboardShortcuts to add zenChangeWorkspaceBack shortcut 2024-09-21 17:25:09 +02:00
mauro-balades
e14fbd8e5c Refactor ZenCompactMode to add event listeners and flashSidebar enhancements 2024-09-21 16:58:20 +02:00
mauro-balades
3c66cbdc24 Refactor ZenWorkspaces to fix newWorkspacesButton height calculation 2024-09-20 13:33:01 +02:00
mauro-balades
20c2fc640f Refactor ZenWorkspaces to add attributes to newWorkspacesButton 2024-09-20 09:59:55 +02:00
mauro-balades
1d5e336462 Refactor ZenWorkspaces to improve workspace icon strip functionality 2024-09-19 21:05:33 +02:00
mauro-balades
f84a42cb7e Refactor ZenWorkspaces to add event listener for TabBrowserInserted 2024-09-19 07:50:28 +02:00
mauro-balades
72396b8f55 Refactor ZenSidebarManager to adjust parentRelativeHeight calculation 2024-09-18 22:05:31 +02:00
mauro-balades
0f775df5e6 Refactor ZenWorkspaces initialization and workspace check 2024-09-18 00:06:02 +02:00
mauro-balades
5f61c3b5af Merge branch 'main' of https://github.com/zen-browser/components 2024-09-16 22:53:49 +02:00
mauro-balades
437fdfecb5 Refactor ZenWorkspaces to add event listener for TabBrowserInserted 2024-09-16 22:53:45 +02:00
Kristijan Ribarić
f4c876c8de fix: Await workspace save in changeWorkspace
This change ensures that the `unsafeSaveWorkspaces` function is called asynchronously. This is necessary to prevent blocking the UI thread while saving the workspaces.
2024-09-16 21:10:34 +02:00
mauro-balades
95af4ba082 Merge branch 'main' of https://github.com/zen-browser/components 2024-09-16 07:51:37 +02:00
mauro-balades
fa248aecd9 Refactor ZenWorkspaces to initialize workspace icons and context menus 2024-09-16 07:51:34 +02:00
Mauro Baladés
b9c35455ad Refactor ZenWorkspaces to use getUserContextLabel instead of formatContextLabel 2024-09-15 20:00:14 -07:00
mauro-balades
329b197bda Fixed workspaces 2024-09-15 19:20:32 +02:00
mauro 🤙
7bfeaefb27
Merge branch 'main' into cycle-to-last-selected-workspace-tab 2024-09-14 12:04:54 +02:00
mauro-balades
62c056b4d0 Refactor ZenWorkspaces.mjs to discard unloaded tabs when hiding workspace 2024-09-14 11:34:26 +02:00
mauro-balades
d0f32a6ee8 Refactor ZenWorkspaces.mjs to preserve full icons instead of just the first character 2024-09-14 09:05:38 +02:00
mauro-balades
cc4601f0e1 Fixed display when choosing containers for each workspace 2024-09-13 23:01:22 +02:00
mauro-balades
5a9fb8d7be Allow pinned tabs to be workspace specific 2024-09-13 22:52:03 +02:00
mauro-balades
4cedd84ac8 Refactor ZenWorkspaces.mjs to add createContainerTabMenu method 2024-09-13 20:12:05 +02:00
Jivan Flores
569127a141 feat: Remember the last selected tab when cycling between workspaces 2024-09-13 09:49:39 -07:00
Jivan Flores
82814b4c9a chore: Reformat ZenWorkspaces.mjs 2024-09-12 21:48:05 -07:00
mauro-balades
89f28b307d Refactor ZenSidebarManager.mjs to remove console.log statement
Refactor ZenWorkspaces.mjs to remove console.log statements
2024-09-12 19:54:28 +02:00
mauro-balades
c9c5c94e8d Refactor ZenWorkspaces.mjs to return an array with contextId and a boolean flag 2024-09-11 23:44:44 +02:00
mauro-balades
b372ec2694 Refactor ZenWorkspaces.mjs to fix parsing of workspace icons and improve workspace creation
- Refactor ZenWorkspaces.mjs to fix parsing of workspace icons and ensure compatibility with icons that have more than one character.
- Improve workspace creation by displaying the first character of each icon and adding container information.
2024-09-11 22:54:17 +02:00
mauro-balades
014161404d Refactor ZenWorkspaces.mjs to fix parsing of workspace icons 2024-09-11 21:07:49 +02:00
mauro-balades
831801add3 Refactor tab navigation logic and add contextChangeContainerTab method 2024-09-11 20:59:02 +02:00
mauro-balades
26173f7cfb Refactor tab navigation logic in ZenWorkspaces.mjs 2024-09-09 20:27:52 +02:00
mauro-balades
bdcc6a8c97 Formatted the entire project 2024-09-09 19:36:06 +02:00
HarryHeres
9edbe7f657
Fixing workspace change duplicates 2024-09-07 20:58:55 +02:00
mauro-balades
9a5efb4a87 refactor: Simplify workspace initialization logic 2024-09-04 19:05:09 +02:00
mauro-balades
82824a1716 refactor: Simplify workspace initialization logic 2024-09-04 19:01:37 +02:00
mauro-balades
06134b02e0 refactor: Simplify workspace initialization logic
Improves the logic for initializing workspaces in the ZenWorkspaces module. The code now checks for the last used workspace and sets it as the active workspace if available. If the last used workspace is not found, it creates a default workspace or selects the first available workspace. This change enhances the user experience by automatically loading the last used workspace or providing a default option when no workspaces exist. (https://github.com/zen-browser/desktop/issues/1196)
2024-09-04 18:59:17 +02:00
mauro-balades
ddf84fa3df refactor: Improve workspace initialization logic
Simplify the logic for initializing workspaces in the ZenWorkspaces module. The code now checks for the last used workspace and sets it as the active workspace if available. If the last used workspace is not found, it creates a default workspace or selects the first available workspace. This change improves the user experience by automatically loading the last used workspace or providing a default option when no workspaces exist.

Closes #376
2024-09-02 14:38:59 +02:00
mauro-balades
175e38c51b Fix opening links from external apps 2024-08-29 21:09:07 +02:00
mauro-balades
97ce49174c Fix opening URLs in windows 2024-08-28 10:45:05 +02:00
Katelyn Dickey
b69fe5e69d feat(workspaces): modify ZenWorkspaces to enable creation flow to be a single step 2024-08-25 12:52:18 -04:00
Katelyn Dickey
0b7a125130 feat(workspaces): update ZenWorkspaces to allow editing workspaces 2024-08-25 12:12:54 -04:00
Mauro Balades
e12618009e refactor: Update ZenWorkspaces to use textContent instead of innerHTML for XSS prevention 2024-08-23 19:57:16 +02:00
Mauro Balades
dde5f80b8b Fixed Ampersand & character in Workspace Name breaks Workspace Menu permanently 2024-08-23 19:53:19 +02:00
Mauro Balades
76f54a4f21 Fixed changing workspaces again 2024-08-22 20:34:39 +02:00
Mauro Balades
be8eafad5f Fixed closing workspaces 2024-08-22 20:23:41 +02:00
Mauro Balades
2ef396ee87 refactor: Add event listener for tab close in ZenWorkspaces
This commit adds an event listener for the "TabClose" event in the ZenWorkspaces module. When a tab is closed, the listener checks if it is the last tab in a workspace and creates a new tab if necessary. It also closes other tabs in the workspace. This enhancement improves the functionality and user experience of ZenWorkspaces.
2024-08-21 20:48:13 +02:00
Mauro Balades
dab7fd0b2f refactor: Update ZenWorkspaces to enable setting default workspace and opening workspaces 2024-08-20 22:00:46 +02:00
Mauro Balades
ccea9cbae7 refactor: Remove unnecessary code in ZenViewSplitter.mjs and initialize workspace tab context menus in ZenWorkspaces.mjs
Remove the `insertSplitLinkIntoContextMenu` method in ZenViewSplitter.mjs as it is no longer needed. Additionally, initialize the workspace tab context menus in ZenWorkspaces.mjs to allow users to change the workspace of a tab.

Refactor ZenViewSplitter.mjs:
- Remove `insertSplitLinkIntoContextMenu` method

Refactor ZenWorkspaces.mjs:
- Initialize workspace tab context menus
2024-08-14 15:56:15 +02:00
Mauro Balades
0ab7cda4d5 refactor: Update ZenKeyboardShortcuts to include split view and workspace actions
This commit updates the ZenKeyboardShortcuts module to include new actions for split view and workspace management. It adds shortcuts for toggling between grid, vertical, and horizontal split views, as well as closing split views. Additionally, it introduces a shortcut for changing workspaces.

The changes also include the addition of default shortcuts for the new actions and the initialization of shortcuts only on the browser page.

Refactor other modules:
- Remove unnecessary console.log statement in ZenThemeBuilder
- Disable Firefox shortcuts in ZenKeyboardShortcuts
- Remove redundant code in ZenViewSplitter

Refactor ZenProfileDialogUI:
- Improve profiles list and profile creation

Refactor ZenWorkspaces.mjs:
- Remove unnecessary code

Refactor ZenViewSplitter.mjs:
- Activate docShell for tab
- Remove redundant code
2024-08-11 13:37:44 +02:00
Mauro Balades
714a4428ef refactor: Update ZenKeyboardShortcuts to toggle web panels and improve shortcuts
Remove unnecessary console.log statement in ZenThemeBuilder
Disable Firefox shortcuts in ZenKeyboardShortcuts
Initialize shortcuts only on the browser page
Update ZenProfileDialogUI to improve profiles list and profile creation
Remove unnecessary code in ZenWorkspaces.mjs
Activate docShell for tab in ZenViewSplitter
Remove redundant code in ZenViewSplitter
2024-08-10 10:52:53 +02:00