Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

feat: pin tabs (#6869)

Mathias Mogensen8d01b962810f
diff --git a/frontend/appflowy_flutter/integration_test/desktop/uncategorized/tabs_test.dart b/frontend/appflowy_flutter/integration_test/desktop/uncategorized/tabs_test.dart
index 4f3345cc8f..08e37f8b94 100644
--- a/frontend/appflowy_flutter/integration_test/desktop/uncategorized/tabs_test.dart
+++ b/frontend/appflowy_flutter/integration_test/desktop/uncategorized/tabs_test.dart
@@ -1,5 +1,6 @@
import 'dart:io';
+import 'package:appflowy/generated/flowy_svgs.g.dart';
import 'package:appflowy/generated/locale_keys.g.dart';
import 'package:appflowy/workspace/presentation/home/tabs/flowy_tab.dart';
import 'package:appflowy/workspace/presentation/home/tabs/tabs_manager.dart';
@@ -145,5 +146,92 @@ void main() {
// and in this case view name in sidebar)
expect(find.text(gettingStarted), findsNWidgets(3));
});
+
+ testWidgets('cannot close pinned tabs', (tester) async {
+ await tester.initializeAppFlowy();
+ await tester.tapAnonymousSignInButton();
+
+ expect(
+ find.descendant(
+ of: find.byType(TabsManager),
+ matching: find.byType(TabBar),
+ ),
+ findsNothing,
+ );
+
+ await tester.createNewPageWithNameUnderParent(name: _documentName);
+ await tester.createNewPageWithNameUnderParent(name: _documentTwoName);
+
+ // Open second menu item in a new tab
+ await tester.openAppInNewTab(gettingStarted, ViewLayoutPB.Document);
+
+ // Open third menu item in a new tab
+ await tester.openAppInNewTab(_documentName, ViewLayoutPB.Document);
+
+ expect(
+ find.descendant(
+ of: find.byType(TabsManager),
+ matching: find.byType(FlowyTab),
+ ),
+ findsNWidgets(3),
+ );
+
+ final firstTabFinder = find.descendant(
+ of: find.byType(FlowyTab),
+ matching: find.text(_documentTwoName),
+ );
+ final secondTabFinder = find.descendant(
+ of: find.byType(FlowyTab),
+ matching: find.text(gettingStarted),
+ );
+ final thirdTabFinder = find.descendant(
+ of: find.byType(FlowyTab),
+ matching: find.text(_documentName),
+ );
+
+ expect(firstTabFinder, findsOneWidget);
+ expect(secondTabFinder, findsOneWidget);
+ expect(thirdTabFinder, findsOneWidget);
+
+ // We expect not to see the pinned svg
+ expect(find.byFlowySvg(FlowySvgs.pinned_s), findsNothing);
+
+ // Right click on second tab
+ await tester.tap(
+ buttons: kSecondaryButton,
+ find.descendant(
+ of: find.byType(FlowyTab),
+ matching: find.text(gettingStarted),
+ ),
+ );
+ await tester.pumpAndSettle();
+ expect(find.byType(TabMenu), findsOneWidget);
+
+ // Pin second tab
+ await tester.tap(find.text(LocaleKeys.tabMenu_pinTab.tr()));
+ await tester.pumpAndSettle();
+
+ // We expect to see the pinned svg
+ expect(find.byFlowySvg(FlowySvgs.pinned_s), findsOneWidget);
+
+ /// Right click on first tab
+ await tester.tap(
+ buttons: kSecondaryButton,
+ find.descendant(
+ of: find.byType(FlowyTab),
+ matching: find.text(_documentTwoName),
+ ),
+ );
+ await tester.pumpAndSettle();
+
+ // Close others than first tab
+ await tester.tap(find.text(LocaleKeys.tabMenu_closeOthers.tr()));
+ await tester.pumpAndSettle();
+
+ // We expect to find 2 tabs, the first tab and the pinned second tab
+ expect(firstTabFinder, findsOneWidget);
+ expect(secondTabFinder, findsOneWidget);
+ expect(thirdTabFinder, findsNothing);
+ });
});
}
diff --git a/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_bloc.dart b/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_bloc.dart
index a53d87cf10..1ed12d9278 100644
--- a/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_bloc.dart
+++ b/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_bloc.dart
@@ -6,12 +6,10 @@ import 'package:appflowy/workspace/presentation/home/home_stack.dart';
import 'package:appflowy/workspace/presentation/home/menu/menu_shared_state.dart';
import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';
import 'package:bloc/bloc.dart';
-import 'package:flutter/foundation.dart';
+import 'package:collection/collection.dart';
import 'package:freezed_annotation/freezed_annotation.dart';
part 'tabs_bloc.freezed.dart';
-part 'tabs_event.dart';
-part 'tabs_state.dart';
class TabsBloc extends Bloc<TabsEvent, TabsState> {
TabsBloc() : super(TabsState()) {
@@ -41,10 +39,20 @@ class TabsBloc extends Bloc<TabsEvent, TabsState> {
},
moveTab: () {},
closeTab: (String pluginId) {
+ final pm = state._pageManagers
+ .firstWhereOrNull((pm) => pm.plugin.id == pluginId);
+ if (pm?.isPinned == true) {
+ return;
+ }
+
emit(state.closeView(pluginId));
_setLatestOpenView();
},
closeCurrentTab: () {
+ if (state.currentPageManager.isPinned) {
+ return;
+ }
+
emit(state.closeView(state.currentPageManager.plugin.id));
_setLatestOpenView();
},
@@ -60,7 +68,8 @@ class TabsBloc extends Bloc<TabsEvent, TabsState> {
},
closeOtherTabs: (String pluginId) {
final pagesToClose = [
- ...state._pageManagers.where((pm) => pm.plugin.id != pluginId),
+ ...state._pageManagers
+ .where((pm) => pm.plugin.id != pluginId && !pm.isPinned),
];
final newstate = state;
@@ -70,6 +79,14 @@ class TabsBloc extends Bloc<TabsEvent, TabsState> {
emit(newstate.copyWith(newIndex: 0));
_setLatestOpenView();
},
+ togglePin: (String pluginId) {
+ final pm = state._pageManagers
+ .firstWhereOrNull((pm) => pm.plugin.id == pluginId);
+ if (pm != null) {
+ pm.isPinned = !pm.isPinned;
+ emit(state.copyWith(pageManagers: [...state._pageManagers]));
+ }
+ },
);
},
);
@@ -105,3 +122,128 @@ class TabsBloc extends Bloc<TabsEvent, TabsState> {
);
}
}
+
+@freezed
+class TabsEvent with _$TabsEvent {
+ const factory TabsEvent.moveTab() = _MoveTab;
+ const factory TabsEvent.closeTab(String pluginId) = _CloseTab;
+ const factory TabsEvent.closeOtherTabs(String pluginId) = _CloseOtherTabs;
+ const factory TabsEvent.closeCurrentTab() = _CloseCurrentTab;
+ const factory TabsEvent.selectTab(int index) = _SelectTab;
+ const factory TabsEvent.togglePin(String pluginId) = _TogglePin;
+ const factory TabsEvent.openTab({
+ required Plugin plugin,
+ required ViewPB view,
+ }) = _OpenTab;
+ const factory TabsEvent.openPlugin({
+ required Plugin plugin,
+ ViewPB? view,
+ @Default(true) bool setLatest,
+ }) = _OpenPlugin;
+}
+
+class TabsState {
+ TabsState({
+ this.currentIndex = 0,
+ List<PageManager>? pageManagers,
+ }) : _pageManagers = pageManagers ?? [PageManager()];
+
+ final int currentIndex;
+ final List<PageManager> _pageManagers;
+ int get pages => _pageManagers.length;
+ PageManager get currentPageManager => _pageManagers[currentIndex];
+ List<PageManager> get pageManagers => _pageManagers;
+
+ /// This opens a new tab given a [Plugin] and a [View].
+ ///
+ /// If the [Plugin.id] is already associated with an open tab,
+ /// then it selects that tab.
+ ///
+ TabsState openView(Plugin plugin, ViewPB view) {
+ final selectExistingPlugin = _selectPluginIfOpen(plugin.id);
+
+ if (selectExistingPlugin == null) {
+ _pageManagers.add(PageManager()..setPlugin(plugin, true));
+
+ return copyWith(newIndex: pages - 1, pageManagers: [..._pageManagers]);
+ }
+
+ return selectExistingPlugin;
+ }
+
+ TabsState closeView(String pluginId) {
+ // Avoid closing the only open tab
+ if (_pageManagers.length == 1) {
+ return this;
+ }
+
+ _pageManagers.removeWhere((pm) => pm.plugin.id == pluginId);
+
+ /// If currentIndex is greater than the amount of allowed indices
+ /// And the current selected tab isn't the first (index 0)
+ /// as currentIndex cannot be -1
+ /// Then decrease currentIndex by 1
+ final newIndex = currentIndex > pages - 1 && currentIndex > 0
+ ? currentIndex - 1
+ : currentIndex;
+
+ return copyWith(
+ newIndex: newIndex,
+ pageManagers: [..._pageManagers],
+ );
+ }
+
+ /// This opens a plugin in the current selected tab,
+ /// due to how Document currently works, only one tab
+ /// per plugin can currently be active.
+ ///
+ /// If the plugin is already open in a tab, then that tab
+ /// will become selected.
+ ///
+ TabsState openPlugin({required Plugin plugin, bool setLatest = true}) {
+ final selectExistingPlugin = _selectPluginIfOpen(plugin.id);
+
+ if (selectExistingPlugin == null) {
+ final pageManagers = [..._pageManagers];
+ pageManagers[currentIndex].setPlugin(plugin, setLatest);
+
+ return copyWith(pageManagers: pageManagers);
+ }
+
+ return selectExistingPlugin;
+ }
+
+ /// Checks if a [Plugin.id] is already associated with an open tab.
+ /// Returns a [TabState] with new index if there is a match.
+ ///
+ /// If no match it returns null
+ ///
+ TabsState? _selectPluginIfOpen(String id) {
+ final index = _pageManagers.indexWhere((pm) => pm.plugin.id == id);
+
+ if (index == -1) {
+ return null;
+ }
+
+ if (index == currentIndex) {
+ return this;
+ }
+
+ return copyWith(newIndex: index);
+ }
+
+ TabsState copyWith({
+ int? newIndex,
+ List<PageManager>? pageManagers,
+ }) =>
+ TabsState(
+ currentIndex: newIndex ?? currentIndex,
+ pageManagers: pageManagers ?? _pageManagers,
+ );
+
+ void dispose() {
+ for (final manager in pageManagers) {
+ manager.dispose();
+ }
+ }
+}
diff --git a/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_event.dart b/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_event.dart
deleted file mode 100644
index 2d82b0e70e..0000000000
--- a/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_event.dart
+++ /dev/null
@@ -1,19 +0,0 @@
-part of 'tabs_bloc.dart';
-
-@freezed
-class TabsEvent with _$TabsEvent {
- const factory TabsEvent.moveTab() = _MoveTab;
- const factory TabsEvent.closeTab(String pluginId) = _CloseTab;
- const factory TabsEvent.closeOtherTabs(String pluginId) = _CloseOtherTabs;
- const factory TabsEvent.closeCurrentTab() = _CloseCurrentTab;
- const factory TabsEvent.selectTab(int index) = _SelectTab;
- const factory TabsEvent.openTab({
- required Plugin plugin,
- required ViewPB view,
- }) = _OpenTab;
- const factory TabsEvent.openPlugin({
- required Plugin plugin,
- ViewPB? view,
- @Default(true) bool setLatest,
- }) = _OpenPlugin;
-}
diff --git a/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_state.dart b/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_state.dart
deleted file mode 100644
index cf4092eaaa..0000000000
--- a/frontend/appflowy_flutter/lib/workspace/application/tabs/tabs_state.dart
+++ /dev/null
@@ -1,107 +0,0 @@
-part of 'tabs_bloc.dart';
-
-class TabsState {
- TabsState({
- this.currentIndex = 0,
- List<PageManager>? pageManagers,
- }) : _pageManagers = pageManagers ?? [PageManager()];
-
- final int currentIndex;
- final List<PageManager> _pageManagers;
- int get pages => _pageManagers.length;
- PageManager get currentPageManager => _pageManagers[currentIndex];
- List<PageManager> get pageManagers => _pageManagers;
-
- /// This opens a new tab given a [Plugin] and a [View].
- ///
- /// If the [Plugin.id] is already associated with an open tab,
- /// then it selects that tab.
- ///
- TabsState openView(Plugin plugin, ViewPB view) {
- final selectExistingPlugin = _selectPluginIfOpen(plugin.id);
-
- if (selectExistingPlugin == null) {
- _pageManagers.add(PageManager()..setPlugin(plugin, true));
-
- return copyWith(newIndex: pages - 1, pageManagers: [..._pageManagers]);
- }
-
- return selectExistingPlugin;
- }
-
- TabsState closeView(String pluginId) {
- // Avoid closing the only open tab
- if (_pageManagers.length == 1) {
- return this;
- }
-
- _pageManagers.removeWhere((pm) => pm.plugin.id == pluginId);
-
- /// If currentIndex is greater than the amount of allowed indices
- /// And the current selected tab isn't the first (index 0)
- /// as currentIndex cannot be -1
- /// Then decrease currentIndex by 1
- final newIndex = currentIndex > pages - 1 && currentIndex > 0
- ? currentIndex - 1
- : currentIndex;
-
- return copyWith(
- newIndex: newIndex,
- pageManagers: [..._pageManagers],
- );
- }
-
- /// This opens a plugin in the current selected tab,
- /// due to how Document currently works, only one tab
- /// per plugin can currently be active.
- ///
- /// If the plugin is already open in a tab, then that tab
- /// will become selected.
- ///
- TabsState openPlugin({required Plugin plugin, bool setLatest = true}) {
- final selectExistingPlugin = _selectPluginIfOpen(plugin.id);
-
- if (selectExistingPlugin == null) {
- final pageManagers = [..._pageManagers];
- pageManagers[currentIndex].setPlugin(plugin, setLatest);
-
- return copyWith(pageManagers: pageManagers);
- }
-
- return selectExistingPlugin;
- }
-
- /// Checks if a [Plugin.id] is already associated with an open tab.
- /// Returns a [TabState] with new index if there is a match.
- ///
- /// If no match it returns null
- ///
- TabsState? _selectPluginIfOpen(String id) {
- final index = _pageManagers.indexWhere((pm) => pm.plugin.id == id);
-
- if (index == -1) {
- return null;
- }
-
- if (index == currentIndex) {
- return this;
- }
-
- return copyWith(newIndex: index);
- }
-
- TabsState copyWith({
- int? newIndex,
- List<PageManager>? pageManagers,
- }) =>
- TabsState(
- currentIndex: newIndex ?? currentIndex,
- pageManagers: pageManagers ?? _pageManagers,
- );
-
- void dispose() {
- for (final manager in pageManagers) {
- manager.dispose();
- }
- }
-}
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart
index 804cb443a6..15de10f07a 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/home_stack.dart
@@ -283,6 +283,8 @@ class PageManager {
PageNotifier get notifier => _notifier;
+ bool isPinned = false;
+
Widget title() {
return _notifier.plugin.widgetBuilder.leftBarItem;
}
diff --git a/frontend/appflowy_flutter/lib/workspace/presentation/home/tabs/flowy_tab.dart b/frontend/appflowy_flutter/lib/workspace/presentation/home/tabs/flowy_tab.dart
index c681237236..cc24e3a9b5 100644
--- a/frontend/appflowy_flutter/lib/workspace/presentation/home/tabs/flowy_tab.dart
+++ b/frontend/appflowy_flutter/lib/workspace/presentation/home/tabs/flowy_tab.dart
@@ -50,7 +50,11 @@ class _FlowyTabState extends State<FlowyTab> {
showAtCursor: true,
popupBuilder: (_) => BlocProvider.value(
value: context.read<TabsBloc>(),
- child: TabMenu(pageId: widget.pageManager.plugin.id),
+ child: TabMenu(
+ controller: controller,
+ pageId: widget.pageManager.plugin.id,
+ isPinned: widget.pageManager.isPinned,
+ ),
),
child: ChangeNotifierProvider.value(
value: widget.pageManager.notifier,
@@ -81,20 +85,27 @@ class _FlowyTabState extends State<FlowyTab> {
child: widget.pageManager.notifier
.tabBarWidget(widget.pageManager.plugin.id),
),
- Visibility(
- visible: isHovering,
- child: SizedBox(
- width: 26,
- height: 26,
- child: FlowyIconButton(
- onPressed: () => _closeTab(context),
- icon: const FlowySvg(
- FlowySvgs.close_s,
- size: Size.square(22),
+ if (widget.pageManager.isPinned) ...[
+ const FlowySvg(
+ FlowySvgs.pinned_s,
+ size: Size.square(16),
+ ),
+ ] else ...[
+ Visibility(
+ visible: isHovering,
+ child: SizedBox(
+ width: 26,
+ height: 26,
+ child: FlowyIconButton(
+ onPressed: () => _closeTab(context),
+ icon: const FlowySvg(
+ FlowySvgs.close_s,
+ size: Size.square(22),
+ ),
),
),
),
- ),
+ ],
],
),
),
@@ -114,9 +125,16 @@ class _FlowyTabState extends State<FlowyTab> {
@visibleForTesting
class TabMenu extends StatelessWidget {
- const TabMenu({super.key, required this.pageId});
+ const TabMenu({
+ super.key,
+ required this.controller,
+ required this.pageId,
+ required this.isPinned,
+ });
+ final PopoverController controller;
final String pageId;
+ final bool isPinned;
@override
Widget build(BuildContext context) {
@@ -134,6 +152,15 @@ class TabMenu extends StatelessWidget {
),
onTap: () => _closeOtherTabs(context),
),
+ const Divider(height: 0.5),
+ FlowyButton(
+ text: FlowyText.regular(
+ isPinned
+ ? LocaleKeys.tabMenu_unpinTab.tr()
+ : LocaleKeys.tabMenu_pinTab.tr(),
+ ),
+ onTap: () => _togglePin(context),
+ ),
],
);
}
@@ -143,4 +170,9 @@ class TabMenu extends StatelessWidget {
void _closeOtherTabs(BuildContext context) =>
context.read<TabsBloc>().add(TabsEvent.closeOtherTabs(pageId));
+
+ void _togglePin(BuildContext context) {
+ context.read<TabsBloc>().add(TabsEvent.togglePin(pageId));
+ controller.close();
+ }
}
diff --git a/frontend/resources/flowy_icons/16x/pinned.svg b/frontend/resources/flowy_icons/16x/pinned.svg
new file mode 100644
index 0000000000..55f9f30ddf
--- /dev/null
+++ b/frontend/resources/flowy_icons/16x/pinned.svg
@@ -0,0 +1,2 @@
+
+<svg viewBox="-0.5 -0.5 16 16" fill="none" xmlns="http://www.w3.org/2000/svg" id="Pin--Streamline-Solar-Ar.svg" height="16" width="16"><desc>Pin Streamline Icon: https://streamlinehq.com</desc><path d="m9.993375 3.0938749999999997 0.33162499999999995 -0.33128749999999996 -0.33162499999999995 0.33128749999999996Zm1.926375 1.9283875 -0.33162499999999995 0.33128749999999996 0.33162499999999995 -0.33128749999999996ZM5.46148125 12.143125l-0.33162499999999995 0.3313125 0.33162499999999995 -0.3313125Zm-2.5729249999999997 -2.5755624999999998 0.33162499999999995 -0.33125000000000004 -0.33162499999999995 0.33125000000000004Zm8.09075625 -0.19612500000000002 -0.1648125 -0.43881249999999994 0.1648125 0.43881249999999994Zm-1.1981875 0.4501875 0.164875 0.43881249999999994 -0.164875 -0.43881249999999994ZM5.207625 5.23860625l-0.44013749999999996 -0.16126250000000003 0.44013749999999996 0.16126250000000003Zm0.43403125 -1.18463125 0.44013749999999996 0.16126250000000003 -0.44013749999999996 -0.16126250000000003ZM3.65315 6.670937500000001l0.12458749999999999 0.45187499999999997 -0.12458749999999999 -0.45187499999999997Zm0.9103937500000001 -0.3365 -0.27388124999999997 -0.38039999999999996 0.27388124999999997 0.38039999999999996Zm0.23384375 -0.21545000000000003 0.35676874999999997 0.3040125 -0.35676874999999997 -0.3040125ZM8.906875 10.2378125l0.306875 0.354375 -0.306875 -0.354375Zm-0.5439999999999999 1.1379375 -0.45199999999999996 -0.12437500000000001 0.45199999999999996 0.12437500000000001Zm0.33518749999999997 -0.909125 -0.380875 -0.27325 0.380875 0.27325ZM1.6990375 7.972l-0.4687375 0.0029999999999999996 0.4687375 -0.0029999999999999996Zm0.13249375000000002 -0.5019375 -0.4062 -0.23393750000000002 0.4062 0.23393750000000002Zm5.23421875 5.869375 0.0007499999999999999 -0.46875 -0.0007499999999999999 0.46875Zm0.4925625 -0.13025 -0.232375 -0.40712499999999996 0.232375 0.40712499999999996Zm-0.2475 -11.93665 0.1009375 0.45774375 -0.1009375 -0.45774375ZM0.918375 13.418687499999999c-0.1829625 0.1831875 -0.1828125 0.48 0.0003375 0.6629375 0.18315 0.1829375 0.47995000000000004 0.1828125 0.6629125 -0.0003125l-0.6632499999999999 -0.662625Zm3.57151875 -2.248625c0.1829625 -0.18312499999999998 0.1828125 -0.4799375 -0.0003375 -0.6629375 -0.18315625 -0.1829375 -0.47995000000000004 -0.1828125 -0.6629125 0.00037499999999999995l0.6632499999999999 0.6625625ZM9.66175 3.4251625000000003l1.926375 1.9283875 0.6632499999999999 -0.6625749999999999L10.325 2.7625875l-0.6632499999999999 0.6625749999999999ZM5.793106249999999 11.8118125l-2.5729249999999997 -2.5755 -0.6632499999999999 0.6625625 2.5729249999999997 2.5755624999999998 0.6632499999999999 -0.662625Zm5.0213937500000005 -2.8791875 -1.19825 0.4501875 0.32975 0.8776249999999999 1.1981875 -0.4501875 -0.32968749999999997 -0.8776249999999999ZM5.6477625 5.3998687499999996l0.43403125 -1.18463125 -0.8802749999999999 -0.32252500000000006 -0.43403125 1.18463125 0.8802749999999999 0.32252500000000006ZM3.7777375 7.1228125c0.44465625000000003 -0.12262500000000001 0.78300625 -0.20875000000000002 1.05968125 -0.40793749999999995l-0.5477562500000001 -0.7608375c-0.10808125 0.07781874999999999 -0.24840625000000002 0.1236375 -0.7611 0.26498750000000004l0.24917499999999998 0.9037875Zm0.9897499999999999 -2.04546875c-0.18309999999999998 0.49973125 -0.240375 0.6361125 -0.32686875 0.7376l0.7135374999999999 0.60805625c0.22110000000000002 -0.25940625 0.33478125 -0.58964375 0.49360624999999997 -1.02313125l-0.8802749999999999 -0.32252500000000006Zm0.06993125 1.6375312499999999c0.11693125 -0.0841875 0.223275 -0.1821875 0.3167375 -0.291875l-0.7135374999999999 -0.60805625c-0.044556250000000006 0.0522875 -0.09524375 0.09898749999999999 -0.15095625 0.13909375l0.5477562500000001 0.7608375Zm4.7788312500000005 2.6679375c-0.430625 0.16181250000000003 -0.7589999999999999 0.277875 -1.0162499999999999 0.500625l0.61375 0.70875c0.1005 -0.0870625 0.23575 -0.1451875 0.73225 -0.33175000000000004l-0.32975 -0.8776249999999999Zm-0.8014375 2.11725c0.1408125 -0.5117499999999999 0.1865 -0.6519999999999999 0.264125 -0.7601875l-0.76175 -0.5465c-0.1983125 0.2764375 -0.284125 0.6140625000000001 -0.4063125 1.058l0.9039375 0.24868749999999998Zm-0.21481250000000002 -1.616625c-0.10606249999999999 0.091875 -0.201 0.19587500000000002 -0.2828125 0.3099375l0.76175 0.5465c0.039 -0.05437499999999999 0.08425 -0.1039375 0.1348125 -0.1476875l-0.61375 -0.70875Zm-5.37981875 -0.6471250000000001c-0.4038375 -0.40425 -0.6776875 -0.6794374999999999 -0.85539375 -0.9026875 -0.17831875 -0.2240625 -0.19673125 -0.32106250000000003 -0.19700625 -0.3645625l-0.93748125 0.0059375c0.00229375 0.36387500000000006 0.18299375 0.6685625000000001 0.4009625 0.9424375 0.2185875 0.274625 0.53820625 0.5935625 0.92566875 0.9814375l0.6632499999999999 -0.6625625Zm0.30838125 -3.0172875c-0.5282625 0.1456625 -0.9635875 0.2649125 -1.2892124999999999 0.3956625 -0.32471874999999994 0.1303125 -0.632375 0.3060625 -0.81401875 0.6214375l0.81240625 0.46787500000000004c0.021637499999999997 -0.0375625 0.08534375 -0.11275 0.3508875 -0.2193125 0.26464374999999996 -0.10625000000000001 0.6384812500000001 -0.2100625 1.1891125 -0.36187499999999995L3.5285624999999996 6.219025ZM2.16778125 7.969062500000001c-0.0005875 -0.0930625 0.02356875 -0.1845 0.06995625 -0.2650625l-0.81240625 -0.46787500000000004c-0.12936875 0.224625 -0.19666875 0.47962499999999997 -0.19503125 0.738875l0.93748125 -0.0059375Zm2.962075 4.505375c0.38991875000000004 0.39031250000000006 0.71054375 0.7122499999999999 0.9866874999999999 0.9321875000000001 0.27533124999999997 0.2193125 0.58214375 0.40099999999999997 0.9485187500000001 0.4015625l0.0014375 -0.9375c-0.043437500000000004 -0.0000625 -0.140625 -0.0179375 -0.365875 -0.19737500000000002 -0.2245 -0.1788125 -0.50110625 -0.45462500000000006 -0.9075187499999999 -0.8615l-0.6632499999999999 0.662625Zm2.78101875 -1.2230625000000002c-0.15256250000000002 0.5546875 -0.257 0.931375 -0.3639375 1.197875 -0.107375 0.2674375 -0.18312499999999998 0.3311875 -0.22100000000000003 0.3528125l0.46468750000000003 0.8142499999999999c0.318125 -0.1815625 0.4951875 -0.49106249999999996 0.6263125 -0.817875 0.1315625 -0.3276875 0.2514375 -0.7661875 0.39787500000000003 -1.298375l-0.9039375 -0.24868749999999998Zm-0.8458125 2.5568125000000004c0.2544375 0.00037499999999999995 0.5045625 -0.06575 0.7255625 -0.191875l-0.46468750000000003 -0.8142499999999999c-0.07906250000000001 0.045125 -0.1685 0.06875 -0.2594375 0.06862499999999999l-0.0014375 0.9375ZM11.588125 5.35355c0.6646874999999999 0.6653375 1.1245625 1.1273875 1.4066875 1.5082 0.27725 0.37412500000000004 0.309125 0.5731875 0.27525 0.72975l0.9163125 0.198125c0.1186875 -0.54875 -0.1 -1.0295 -0.4383125 -1.4860625 -0.333375 -0.4498625 -0.8540000000000001 -0.969275 -1.4966875 -1.6125875L11.588125 5.35355Zm-0.44393750000000004 4.4567c0.8508749999999999 -0.31968749999999996 1.5395625 -0.577125 2.029 -0.8487500000000001 0.49668749999999995 -0.2756875 0.8945000000000001 -0.623 1.0131875 -1.171875l-0.9163125 -0.198125c-0.0338125 0.1565 -0.14500000000000002 0.3244375 -0.551875 0.55025 -0.41412499999999997 0.229875 -1.0236874999999999 0.46025000000000005 -1.9036875 0.790875l0.32968749999999997 0.8776249999999999ZM10.325 2.7625875c-0.6474375 -0.6480874999999999 -1.1699374999999999 -1.1728812499999999 -1.622125 -1.5086 -0.458625 -0.34045625 -0.9419375000000001 -0.5607875 -1.4930625 -0.43919374999999994l0.2019375 0.9154875c0.15612499999999999 -0.0344375 0.3555625 -0.0032187500000000003 0.73225 0.2764375 0.3830625 0.2844 0.84825 0.7482875 1.51775 1.41844375L10.325 2.7625875ZM6.081793749999999 4.2152375c0.32601875 -0.88976875 0.55326875 -1.5064687500000002 0.78145625 -1.92576875 0.224375 -0.41235625 0.39237500000000003 -0.5247375 0.5485 -0.5591875000000001l-0.2019375 -0.9154875c-0.5510625 0.121575 -0.897 0.52478125 -1.17005 1.02656875 -0.269275 0.49484374999999997 -0.5229625 1.19085 -0.8382437500000001 2.0513500000000002l0.8802749999999999 0.32252500000000006ZM1.581625 14.081312500000001l2.90826875 -2.9112500000000003 -0.6632499999999999 -0.6625625 -2.90826875 2.9111874999999996 0.6632499999999999 0.662625Z" fill="#000000" stroke-width="1"></path></svg>
\ No newline at end of file
diff --git a/frontend/resources/translations/en.json b/frontend/resources/translations/en.json
index 6b7314ba12..8a4bd69e8c 100644
--- a/frontend/resources/translations/en.json
+++ b/frontend/resources/translations/en.json
@@ -2872,6 +2872,8 @@
"closeOthers": "Close other tabs",
"favorite": "Favorite",
"unfavorite": "Unfavorite",
- "favoriteDisabledHint": "Cannot favorite this view"
+ "favoriteDisabledHint": "Cannot favorite this view",
+ "pinTab": "Pin",
+ "unpinTab": "Unpin"
}
}