Commit Graph

2103 Commits

Author SHA1 Message Date
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
7cf96dde23 chore: Update new firefox patches, b=no-bug, c=no-component 2025-08-05 19:16:28 +02:00
mr. m
6641152100 chore: Implemented static linting for JS modules, p=#9673, c=common 2025-07-28 21:08:31 +02:00
mr. m
dfd2830ceb test: Added tests for split view, p=#9667, c=tests 2025-07-28 17:05:23 +02:00
mr. m
2ad591f784 feat: Improved performance for compact mode by stoping the use of has selectors, b=no-bug, c=common, compact-mode, split-view 2025-07-24 12:14:59 +02:00
Mr. M
5ad1c6c323 feat: Improved glance buttons to be more consistent, better aligned and more pleasing to look at in general, b=no-bug, c=common, glance, split-view, workspaces 2025-07-17 19:04:39 +02:00
Mr. M
9e9d4f294a feat: Added a better custom color input, b=no-bug, c=tabs, workspaces 2025-07-16 23:27:40 +02:00
mr. m
c88bf27f3d chore: Updated to firefox 141.0, c=no-component, p=#9478 2025-07-15 18:16:25 +02:00
mr. m
a283824122 Revert "Firefox 141.0 (#9467)" (#9477) 2025-07-15 18:08:58 +02:00
mr. m
def1008e2d Firefox 141.0 (#9467) 2025-07-15 18:05:46 +02:00
mr. m
ff0a25b704 feat: Tweak colors to blend for windows/mica, b=no-bug, c=workspaces 2025-07-13 23:28:42 +02:00
mr. m
0c99d9b5ef feat: Make the sidebar darker when no color is selected, b=no-bug, c=workspaces 2025-07-12 20:54:00 +02:00
mr. m
c4e7f4e442 feat: Added option to always use system theme and improve color handling for mica, b=no-bug, c=common, workspaces 2025-07-12 08:51:55 +02:00
Mr. M
aabde4fb05 feat: Improve accessibility contrast checks and add mroe padding to HSL color detection, b=no-bug, c=common, workspaces 2025-07-10 02:30:51 +02:00
mr. m
c9598e1612 feat: Make color picker change brightness based on the distance from the center, b=no-bug, c=common, tabs, workspaces 2025-07-07 20:52:39 +02:00
mr. m
e068428601 feat: Improved lightness detection and media sharing controls, b=no-bug, c=media, workspaces 2025-07-05 22:59:43 +02:00
mr. m
3da5eda339 feat: Small improvements to haptifc feedback and coloring, b=no-bug, c=common, media, tabs, workspaces 2025-06-28 18:04:30 +02:00
mr. m
2a701bd2b9 fix: Fixed about dialog and compact mode on twilight, b=no-bug, c=common, compact-mode, workspaces 2025-06-28 01:22:08 +02:00
mr. m
d96d6831a2 fix: Fixed haptic feedback on color picker, b=no-bug, c=workspaces 2025-06-27 16:55:20 +02:00
mr. m
5930552cdc feat: Add grey-out effect for inactive windows and adjust opacity settings, b=no-bug, c=workspaces, styles 2025-06-27 16:39:23 +02:00
mr. m
84183910b7 feat: Improved contrasting and font colors, b=no-bug, c=common, tabs, workspaces 2025-06-27 02:50:12 +02:00
mr. m
f0169277a0 feat: Improved swiping between workspaces and other contrasting issues, b=no-bug, c=common, media, workspaces 2025-06-26 17:02:15 +02:00
mr. m
76166c4aa3 fix: Made detected contrasts pass accessibility tests, b=no-bug, c=common, workspaces 2025-06-25 16:43:13 +02:00
mr. m
7d7e57d6ee feat: Finished gradient predefined colors, b=no-bug, c=common, tabs, workspaces 2025-06-24 21:44:54 +02:00
mr. m
fe77048619 fix: Fixed workspace overflows not working and refined new HSL picker, b=no-bug, c=tabs, common, compact-mode, workspaces 2025-06-24 17:44:22 +02:00
mr. m
b735567504 Gradient hue revamp (#9093) 2025-06-24 05:08:40 -07:00
mr. m
bed6fa7eca Updated to firfox RC 140.0 (#9092) 2025-06-18 17:16:40 +02:00
mr. m
5cd1f77e2d feat: Insert workspace names on the context menu for easier switch, b=no-bug, c=workspaces 2025-06-16 01:15:11 +02:00
mr. m
ea23c3f63d feat: Added context menus to workspace icons at the button and small fixes, b=no-bug, c=common, workspaces 2025-06-14 13:56:37 +02:00
Mr. M
bf6e493f89 feat: Add comfirmation before deleting a workspace, b=no-bug, c=common, workspaces 2025-06-12 19:13:50 +02:00
mr. m
75a3b82d2c chore: Update l10n packs, b=no-bug, c=no-component 2025-06-12 12:38:51 +02:00
octaviusz
fa7f986319 Fix data-l10n-id (#8980) 2025-06-12 09:45:32 +02:00
mr. m
e8c43f5979 feat: Added workspace rearrange inline with the icons, b=no-bug, c=workspaces, common 2025-06-11 14:45:00 +02:00
Mr. M
548ed6e0f5 feat: part 2 - Finish workspace creation form, refactor collapsed toolbar and update motion to v12.16.0, b=no-bug, c=workspaces, common, tabs, vendor 2025-06-11 00:29:41 +02:00
Mr. M
847aef5b02 feat: Added new workspace creation form, b=no-bug, c=tabs, common, compact-mode, workspaces 2025-06-10 20:49:14 +02:00
mr. m
2a0113408c feat: Implement new workspace management, b=no-bug, c=common, workspaces 2025-06-09 18:41:04 +02:00
mr. m
af36549c7e perf: Remove smooth scroll features, b=no-bug, c=common, workspaces 2025-06-09 11:58:32 +02:00
Mr. M
fd8a55c57c refactor: Remove color settings on look and feel as they are no longer used, b=no-bug, c=common, workspaces 2025-06-08 12:42:06 +02:00
Mr. M
bb2196900b fix: Fixed essential tabs appearing on private mode and updated tests, b=closes #8918, c=tabs, tests, glance, workspaces 2025-06-07 18:48:44 +02:00
Mr. M
8ef4460f00 perf: part 2 - Improved startup speed/performance and added some tests for private browsing, b=no-bug, c=common, kbs, mods, tests, glance, workspaces 2025-06-07 01:02:03 +02:00
Mr. M
7a29340efc Merge branch 'dev' of https://github.com/zen-browser/desktop into dev 2025-06-06 13:34:35 +02:00
Mr. M
cf6a346749 no-bug - Improved initial startup performance and loading speeds, c=common, tabs, workspaces, t=perf 2025-06-06 13:34:29 +02:00
mr. m
89efc6cb0a no-bug - Show how many essential slots are left and disable instead of hiding the context menu ifwe reached a limit, c=common, tabs, t=feat 2025-06-06 13:19:06 +02:00
CosmoCreeper
0f5f14defe Rename ZenEmojies.mjs to ZenEmojis.mjs for correct spelling. (#8841)
* Rename ZenEmojies.mjs to ZenEmojis.mjs

Signed-off-by: CosmoCreeper <179134799+CosmoCreeper@users.noreply.github.com>

* Rename references to ZenEmojies.mjs to ZenEmojis.mjs

Signed-off-by: CosmoCreeper <179134799+CosmoCreeper@users.noreply.github.com>

* Update linter ignored files to the new emojis rename.

Signed-off-by: CosmoCreeper <179134799+CosmoCreeper@users.noreply.github.com>

* Rename emojies to emojis in the zen-assets.jar.inc.mn file.

Signed-off-by: CosmoCreeper <179134799+CosmoCreeper@users.noreply.github.com>

---------

Signed-off-by: CosmoCreeper <179134799+CosmoCreeper@users.noreply.github.com>
2025-06-04 08:32:31 +02:00
mr. m
7c18b1d921 no-bug - Add support for accent color on titlebar preference for windows 11, c=no-component, t=feat 2025-06-01 09:01:45 +02:00
Mr. M
0278aea4f7 chore: Remove support links that target mozilla's support page on the about dialog, b=(bug #8634), c=no-component 2025-05-27 20:14:34 +02:00
Jai A P
590ba6de1b Finally fix positioning of popups (#8532)
Co-authored-by: mr. m <91018726+mauro-balades@users.noreply.github.com>
2025-05-27 15:29:41 +02:00
Bryan Galdámez
797152da89 refactor(mods): rework ZenMods module (#8618)
Co-authored-by: mr. m <mr.m@tuta.com>
Co-authored-by: mr. m <91018726+mauro-balades@users.noreply.github.com>
2025-05-27 12:02:59 +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