Commit Graph

58 Commits

Author SHA1 Message Date
mr. m
cc7780e078 test: Fixed tests for the pinned tabs manager, b=no-bug, c=tabs, folders, tests, welcome 2025-12-14 11:16:29 +01:00
mr. m
f094b6239d feat: Dont mix remoteness when changing browser views and restore window spaces, b=no-bug, c=common, folders, workspaces 2025-12-14 00:59:05 +01:00
mr. m
cc31282ce2 feat: Start implementing old pinned tab behaviour we used to have, b=no-bug, c=common, tabs 2025-12-13 17:40:34 +01:00
mr. m
3285eb9dd5 feat: Make sure to always initialize an empty state with the sidebar object, b=no-bug, c=workspaces 2025-12-12 11:43:28 +01:00
Mr. M
307e8fc0ef feat: Make sure to not lose any tabs when opening from a private window, b=no-bug, c=workspaces 2025-12-07 18:58:04 +01:00
Mr. M
f720dce237 feat: Make sure to properly flush all windows when making a new one and fix removing progress listeners, b=no-bug, c=workspaces 2025-12-06 18:49:26 +01:00
Mr. M
aecea1f565 feat: Improved support for unsynced windows support, b=no-bug, c=workspaces, folders 2025-12-05 09:35:22 +01:00
Mr. M
5d964511aa chore: Update patches to ff 146, b=no-bug, c=no-component 2025-12-03 16:49:37 +01:00
Mr. M
8be603ac88 Merge branch 'dev' of https://github.com/zen-browser/desktop into window-sync 2025-12-03 16:45:04 +01:00
mr. m
fa6bb8d27f chore: Sync upstream Firefox to version 146.0, p=#11519 2025-12-03 16:26:18 +01:00
mr. m
d4f1916382 fix: Fixed pinned tabs wrongly restoring on macos, making it crash, b=closes #11416, c=no-component 2025-11-29 00:37:43 +01:00
Mr. M
04ab9a4b4e feat: Listen for more tab events and properly sync them, b=no-bug, c=common, folders, tabs 2025-11-22 18:15:18 +01:00
Mr. M
c6cd912262 feat: Start making use of IDs instead of sync identifiers, b=no-bug, c=folders 2025-11-21 14:29:58 +01:00
Mr. M
40bc51f904 feat: Run session saver before opening a new window, b=no-bug, c=no-component 2025-11-21 13:16:57 +01:00
Mr. M
6fbba04dab feat: Run session saver before opening a new winodw, b=no-bug, c=tabs 2025-11-21 13:12:22 +01:00
mr. m
00417582fb Discard changes to src/browser/components/sessionstore/SessionStore-sys-mjs.patch 2025-11-21 13:11:47 +01:00
Mr. M
32d603ced9 chore: Update patches to ff 145, b=no-bug, c=no-component 2025-11-21 13:11:46 +01:00
Mr. M
2706e8761d feat: Dont restore windows that are already initialized, b=no-bug, c=no-component 2025-11-21 13:11:39 +01:00
Mr. M
61659c63d9 feat: Stop using pinned manager and use zen session sidebar, b=no-bug, c=common, folders, tabs, workspaces 2025-11-21 13:11:39 +01:00
Mr. M
34c725aad0 feat: Start doing out own session restore, b=no-bug, c=folders, tabs 2025-11-21 13:08:38 +01:00
Jun Jie
8ee2840b45 fix: Set workspace id of duplicated essential tab to current active workspace, b=bug https://github.com/zen-browser/desktop/issues/10457, p=#11293 2025-11-15 13:46:47 +01:00
mr. m
96c6ec658c chore: Update to Firefox 145.0, p=#11167 2025-11-08 11:40:06 +01:00
mr. m
2dc98fa7f7 chore: Updated to Firefox 144.0, p=#10725, c=l10n, tabs, media, common, tests, workspaces 2025-10-07 23:06:47 +02:00
mr. m
8c6c13573b fix: Fixed essentials reordering on every restart, b=bug #10309, c=tabs, workspaces 2025-09-27 13:14:03 +02:00
mr. m
5933c55c13 chore: Update to Firefox 143.0, c=l10n, common (#10304) 2025-09-11 18:00:10 +02:00
Mr. M
005cdf53bd fix: Dont restore pinned tabs for deferred session stores, b=no-bug, c=no-component 2025-08-28 11:57:34 +02:00
mr. m
199da1f824 chore: Updated to firefox 142.0, p=#9870
* chore: Updateed to firefox 142.0, b=no-bug, c=l10n, folders

* chore: Finish updating to firefox, b=no-bug, c=tabs

* chore: Fixed mods builds, b=no-bug, c=mods

* feat: Small changes to tabs layout, b=no-bug, c=tabs, compact-mode, folders, workspaces

* test: Fixed tests, b=no-bug, c=scripts, tests, folders

* test: Fixed tests, b=no-bug, c=tabs, tests, welcome
2025-08-13 23:21:38 +02:00
octaviusz
591dce5921 feat: Zen Folders, p=#9355, c=folders
* Start working on zen folders

* Rework zen-folder SessionStore

* Refactor restoreDataFromSessionStore

* fix linter

* Fix preserve folder order on restore

* Feat allow dragging tabs into zen-folder

* Fix ensure collapsed folders are hidden on session restore

* Feat store parentId nested folders

* feat: Implement tabs list popup

* refactor: Move tabs popup to `popups.inc`

* feat: Implement drag-and-drop folder into folder

* feat: Improved UI for search panel, b=no-bug, c=folders

* fix: Add extra margin when animating collapsed folders, b=no-bug, c=folders

* feat: Implement tab group rename and other UI changes, b=no-bug, c=folders, common

* feat: Add animated folder dots and adaptive search popup positioning

* fix: resolve conflicts

* fix: Correct active state indication for collapsed folders

* feat: Allow folders to be double clicked, b=no-bug, c=common, folders

* fix: incorrect tab order

* chore: Update prefs to the rust version, b=no-bug, c=folders

* fix: better handling of subfolders

* chore: Improve dynamic spacing when drag and dropping and fixed split views UI, b=no-bug, c=tabs, folders

* feat: Empty tab and improve drag and drop

* fix: add tab search event once

* fix: Empty tab should always be at first position

* feat: improve drag and drop interaction with folders

* feat: Improve drag-and-drop interaction for zen folders

* fix: Improve zen folder session restoration and visibility

* fix: Correct visible element indexing

* fix: Correct restore subfolder order

* feat: Use empty tabs and dont highlight current folder we currently are in, b=no-bug, c=tabs, folders

* feat: persist and restore split-view group state in subfolders

* fix: npm run pretty

* fix: dropIndicator and transform for split-view-group

* fix: Formatting

* fix: improve split group and folder drag-and-drop and persistence

* chore: Fix lint issues and merge with dev, b=no-bug, c=folders

* chore: Move folder element to a different location, b=no-bug, c=folders

* feat: Added a simple folders context menu and simplified patches, b=no-bug, c=tabs, folders

* fix: Correct active tab position in folders collapse animation

* feat: Add ungroup and delete folder actions

* fix: Fixed empty tabs not being able to be pinned, b=no-bug, c=workspaces

* feat: Added folder -> space conversion and pref checks, b=no-bug, c=folders, workspaces

* Update locales/en-US/browser/browser/zen-folders.ftl

Co-authored-by: Patrik Egyed <pregnor@gmail.com>
Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>

* fix: Fixed folders not expanding when dragging another folder inside, b=no-bug, c=folders

* refactor: Refactor and improve tab group expansion logic

* feat: New folder dots

* test: Added simple folder creation test, b=no-bug, c=folders, tests

* fix: Don't expand folder when a tab inside it is selected

* feat: Added change folder to space menu item, b=no-bug, c=folders, workspaces

* feat: Added a menu item to create folders more easily, b=no-bug, c=workspaces, common, folders

* feat: Improved animations for collapsing active folders, b=no-bug, c=folders

* fix: Insert folder before pinned separator

* test: Improve folder and welcome testing, b=no-bug, c=folders, tests, welcome

* test: Fixed welcome tests, b=no-bug, c=folders, tests, welcome

* chore: lint, b=no-bug, c=tests, welcome

* feat: Add better selected UI, b=no-bug, c=folders

* feat: Emoji icons

* fix: Better handling of drag-and-drop folder highlighting

* fix: Single quotes

* fix: Hide emoji when folder has selected tab

* feat: Improved icons and animations, b=no-bug, c=folders, tabs

* fix: Fixed fetching the wrong prefs, b=no-bug, c=tabs, folders

* fix: Smoother dot animations

* fix: dragOverFolderThreshold condition and linter

* feat: visually collapse/expand active tab groups on drag/drop

* fix: Correctly transform folder with selected tab

* feat: Added better icons picker to support SVG, b=no-bug, c=common, folders, workspaces

* fix: Correctly transform tabs after moving them

* fix: Fixed not handling properly pinned tab count, b=no-bug, c=tabs, common, folders

* chore: Small formatting, b=no-bug, c=folders

* feat: Support SVG for folder icons

* fix: Formatting

* fix: Performance improvements for SVG icons

* fix: Shift up the folder icon

* fix: Handle null/undefined user icon values defensively

* feat: Improved icon sizes and fixed bug when collapsing folders with collapsed folders, b=no-bug, c=common, folders, workspaces

* chore: Tweaked the transform values for icons, b=no-bug, c=folders

* feat: Added support for collapsed mode (experimental), b=no-bug, c=folders

* fix: ungroup split view

* fix: Improve handling of special tabs during folder creation and drag-and-drop

* fix: Formatting

* feat: Imrpoved hardware accelaration for the icons and folder height calculation, b=no-bug, c=tabs, folders

* refactor: Extract dragover logic for tab group labels

* fix: Small fixes to the folders UI, b=no-bug, c=tabs, folders

* feat: Improved icons opacity and dialog, b=no-bug, c=common, workspaces

* test: Added subfolders basic test, b=no-bug, c=folders, tests

* fix: Drop indicator for folder targets

* feat: Improved drag and drop handling from normal to pinned tabs, b=no-bug, c=folders, tabs

* fix: Fixed moving split views into pinned tabs container, b=no-bug, c=folders, tabs

* feat: Improved new drag and drop offset, b=no-bug, c=tabs

* feat: Refine folder drop behavior with new thresholds

* fix: tabs.js extra space in patch

* fix: Properly handle has-active state

* fix: Add optional chaining for activeGroups length check

* fix: Fixed moving tabs to the workspace indicator not showing any feedback, b=no-bug, c=tabs

* feat: Change svg stroke width, b=no-bug, c=folders, tabs

* feat: Remove aspect ratio for the folder icon, b=no-bug, c=folders, tabs

* feat: Don't reset transform when pining tabs, b=no-bug, c=tabs

* feat: Ungroup tabs when dragging and make sure to animate tabs after the selected one, b=no-bug, c=tabs, folders

* fix: Transform folder with active tab

* fix: Fixed expand animation not working for the first time, b=no-bug, c=folders

* feat: Add expand to selected functionality for folders

* fix: Formatting

* Update src/zen/folders/ZenFolder.mjs

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>

* Update src/zen/workspaces/ZenWorkspaces.mjs

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>

* fix: Set icon for new workspace

* fix: Formatting

* fix: Hide the icon if empty

* fix: Optimize tab drag-over transitions

* feat: Lower the drag and drop threshold, b=no-bug, c=tabs, folders

* feat: Hide search panel when theres no visible tabs, b=no-bug, c=tabs, folders

* fix: Adapt tab-group to new changes

* fix: Fixed expanding split views as folders, b=no-bug, c=folders

* feat(tabs): Implement tab grouping persistence for pinned tabs

This commit introduces the ability to group pinned tabs for better organization.

Changes include:

- Added `createGroup` to create new tab groups.
- Added `addTabToGroup` to add existing tabs to a group.
- Added `removeTabFromGroup` to remove a tab from a group (moving it to the root level).
- Added `moveTabBetweenGroups` to move tabs between different groups or to the root level.
- Added `getAllGroups` to retrieve all tab groups, optionally filtered by workspace.
- Added `getGroupInfo` to retrieve information about a specific group, including its child count.
- Added `reorderTabsInGroup` to reorder tabs within a specific group.

These functions provide a comprehensive API for managing tab groups within the Zen Browser.  Error handling and input validation are included for robustness.  Database transactions are used to ensure data consistency. Observers are notified of changes to notify the sync engine.

* feat: Improve stroke colors for light mode, b=no-bug, c=folders

* perf: cache and optimize animation updates

* fix: Expand folder after drop

* fix: Update active state on tab change

* feat: Sync groups to new windows, b=no-bug, c=folders, tabs, workspaces

* feat: Finish window syncing for new folders, b=no-bug, c=tabs, folders, workspaces

* feat: Make sure SVG icons use the context fill instead of the current color, b=no-bug, c=common, folders

* feat: Added support for drag and drop in collapsed mode, b=no-bug, c=tabs, folders

* fix: Clean up tab attributes and styles on workspace transfer

* fix: Fixed svg icons being always dark, b=no-bug, c=workspaces

---------

Signed-off-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
Co-authored-by: mr. m <91018726+mr-cheffy@users.noreply.github.com>
Co-authored-by: Mr. M <mr.m@tuta.com>
Co-authored-by: Patrik Egyed <pregnor@gmail.com>
Co-authored-by: Kristijan Ribarić <kriba13@gmail.com>
2025-08-06 08:59:08 -07:00
Mr. M
e6d6ca53df feat: Start session restoring empty tabs and flush tab state for newly expanded glance tabs, b=no-bug, c=common, glance, workspaces 2025-07-29 23:47:34 +02:00
mr. m
bed6fa7eca Updated to firfox RC 140.0 (#9092) 2025-06-18 17:16:40 +02:00
Mr. M
ebd1910bb8 fix: Fixed restoring tabs after restoring windows, b=bug #8699, c=workspaces, tests 2025-06-07 20:35:08 +02:00
Mr. M
a710d5949e fix: FIxed restoring pined and essential tabs not being on the correct parent element, b=(bug #8726), c=tests, workspaces 2025-05-31 21:32:51 +02:00
Mr. M
09ca430b88 feat: Improved tab transitions and fixed a couple of issues with glance, b=(no-bug), c=tabs, common, glance, split-view, workspaces 2025-05-25 17:06:22 +02:00
Mr. M
a3de3e221c fix: Fixed restoring previous sesions from empty tabs, b=(no-bug), c=no-component 2025-05-24 17:07:21 +02:00
Mr. M
ad124c9d95 chore: Recalcultae patches, b=(no-bug), c=tests, scripts, tabs, glance 2025-05-22 13:57:30 +02:00
Mr. M
22d04ad729 chore: Changed ZenWorkspaces to gZenWorkspaces, b=(no-bug), c=tabs, common, folders, glance, media, tests, welcome, workspaces 2025-05-16 01:17:11 +02:00
Mr. M
414bafde9c feat: Hide change to tab context menu line, b=(no-bug), c=common, workspaces 2025-05-07 16:51:50 +02:00
mr. m
be1d8ec408 fix: Fixed restoring previous tab on other workspaces, b=(no-bug), c=compact-mode, workspaces 2025-05-07 15:34:17 +02:00
mr. m
7ca3396c8b feat: Final touches for release, b=(no-bug), c=common, compact-mode 2025-05-07 14:29:04 +02:00
mr. m
ec90027c5e style: Styled session restore patch, b=(no-bug), c=no-component 2025-05-05 18:42:01 +02:00
mr. m
3f2dd0a60c feat: Do restore previously closed windows on macos after clicking on the X button, b=(bug #7079), c=no-component 2025-05-05 18:28:33 +02:00
Mr. M
6b8f3b750e fix: Fixed duplicating tabs being stuck on 'New Tab' text, b=(closes #7900), c=welcome 2025-04-27 23:39:05 +02:00
mr. m
09ec1ad864 chore: Updated to ff 138.0 and recalculated patches, b=(no-bug), c=tabs, media 2025-04-22 15:08:34 +02:00
mr. m
037f1bf09f Update session store to handle zen tab attributes and improve state management 2025-04-12 13:14:42 +02:00
mr. M
9bd7b5a900 Update dependencies and refine configuration files for improved compatibility and performance 2025-03-30 10:03:50 +02:00
mr. m
1473675094 fix: improve workspace session restoration and scrolling behavior 2025-03-25 19:51:03 +01:00
mr. M
342186584e Added support for split views persisting between sessions 2025-03-24 23:58:06 +01:00
mr. m
7e55497e20 Fixed tabs opening on the essentials container 2025-03-11 19:07:47 +01:00
mr. M
94714e4f39 Add README generation for release builds and update session store attributes 2025-03-10 21:15:22 +01:00
mr. m
3325dc0d9f Fixed session restore identifying the empty tab as a normal one 2025-03-07 11:54:57 +01:00