Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions docs/screenshots/issue-6421/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# רשימת כרטיסיות אחת — לפני ואחרי

אותו תרחיש בשני המצבים: שתי כרטיסיות ספר פתוחות, ולחיצה ימנית על „ספר א” פותחת את תפריט הכרטיסייה. לפני התיקון מופיע תת־התפריט „כרטיסיות פתוחות”; אחריו הרשומה הוסרה והתפריט קצר בשורה. חץ חיפוש הכרטיסיות נשאר בסרגל.

המטריצה היא בהיר, כהה ולבן; 360×800 ו־1200×800; RTL וטקסט ×1.3. הצפיפות משתמשת בברירת המחדל של ההגדרות לפי גודל החלון. הצילומים הופקו ב־Flutter widget tests במק עם `TargetPlatform.windows` וגופני Rubik של בדיקות המאגר. זהו רינדור מבודד של שורת הכותרת והתפריט, ולא הרצה של האפליקציה ב־Windows.

| ערכה ורוחב | לפני | אחרי |
|---|---|---|
| בהיר 360 | ![לפני בהיר 360](before-light-360.png) | ![אחרי בהיר 360](after-light-360.png) |
| בהיר 1200 | ![לפני בהיר 1200](before-light-1200.png) | ![אחרי בהיר 1200](after-light-1200.png) |
| כהה 360 | ![לפני כהה 360](before-dark-360.png) | ![אחרי כהה 360](after-dark-360.png) |
| כהה 1200 | ![לפני כהה 1200](before-dark-1200.png) | ![אחרי כהה 1200](after-dark-1200.png) |
| לבן 360 | ![לפני לבן 360](before-white-360.png) | ![אחרי לבן 360](after-white-360.png) |
| לבן 1200 | ![לפני לבן 1200](before-white-1200.png) | ![אחרי לבן 1200](after-white-1200.png) |

## בידוד ואימות

ההפקה השתמשה זמנית ב־`_pumpTitleBar` וב־blocs של `test/navigation/custom_title_bar_test.dart`, עם `MemorySettingsCache` ובדיקת נתיב הפרופיל הזמני לפני אתחול ההגדרות. הלחיצה היא אירוע עכבר משני על הכרטיסייה עצמה; לפני הפעולה אין תפריט, ואחריה נבדקו „סגור”, נוכחות או היעדר הרשומה הכפולה והיעדר שגיאות layout. אזהרות hit-test הוגדרו ככשלים.

למצב „לפני” שימש `tab_context_menu.dart` מן הבסיס `c3d4e9761aaa12125961541799a976b16a9d94ce`. אחרי ההפקה שוחזרו קובץ המוצר וקובץ הבדיקה ב־`finally` ונבדקו ב־SHA256. קוד הצילום הזמני הוסר; כל 351 בדיקות התפריט, החיפוש, שורת הכותרת, עמודת הכרטיסיות ו־UI lint שנבחרו עברו לאחר השחזור. פעולות החץ והגישה בפריסות השונות מכוסות בבדיקות הקיימות.
Binary file added docs/screenshots/issue-6421/after-dark-1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/after-dark-360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/after-light-1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/after-light-360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/after-white-1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/after-white-360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/before-dark-360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/before-light-1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/before-light-360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/before-white-1200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/screenshots/issue-6421/before-white-360.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 0 additions & 43 deletions lib/navigation/view/tab_context_menu.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:fluentui_system_icons/fluentui_system_icons.dart';
import 'package:otzaria/core/messages/library_messages.dart';
import 'package:otzaria/core/messages/window_messages.dart';
import 'package:otzaria/core/ui_snack.dart';
Expand Down Expand Up @@ -396,17 +395,6 @@ List<AppContextMenuEntry> buildTabContextMenuEntries(
entries.addAll([
const AppContextMenuEntry.divider(),
_buildTabsPlacementEntry(context),
AppContextMenuEntry(
label: context.settingsText('כרטיסיות פתוחות'),
// childrenBuilder + stream: הרשימה נבנית מחדש בכל שינוי במצב הכרטיסיות,
// כך שסגירת כרטיסייה דרך ה-X מסירה את שורתה והתפריט נשאר פתוח.
childrenBuilder: () => _openTabsMenuEntries(
context,
context.read<TabsBloc>().state.tabs,
onCloseTab,
),
childrenRefreshStream: context.read<TabsBloc>().stream,
),
_buildMoveToWorkspaceMenuEntry(
context,
inSelection
Expand Down Expand Up @@ -495,37 +483,6 @@ AppContextMenuEntry _buildTabsPlacementEntry(BuildContext context) {
);
}

List<AppContextMenuEntry> _openTabsMenuEntries(
BuildContext context,
List<OpenedTab> tabs,
void Function(OpenedTab tab) onCloseTab,
) {
// ללא מיון — הרשימה משקפת את סדר הכרטיסיות בשורת הכרטיסיות.
return tabs.map((tab) {
return AppContextMenuEntry(
label: tab.title,
onTap: () {
final index = tabs.indexOf(tab);
context.read<TabsBloc>().add(SetCurrentTab(index));
},
trailing: Align(
alignment: AlignmentDirectional.centerEnd,
child: IconButton(
tooltip: context.settingsText('סגור'),
visualDensity: VisualDensity.compact,
padding: EdgeInsets.zero,
constraints: const BoxConstraints(minWidth: 28, minHeight: 28),
icon: const Icon(FluentIcons.dismiss_24_regular, size: 14),
// סגירת הכרטיסייה מעדכנת את ה-TabsBloc; ה-childrenRefreshStream
// יבנה מחדש את הרשימה ושורת הכרטיסייה תיעלם.
onPressed: () => onCloseTab(tab),
splashRadius: 16,
),
),
);
}).toList();
}

/// בונה פריט תפריט להעברת [tabs] לשולחן עבודה אחר.
AppContextMenuEntry _buildMoveToWorkspaceMenuEntry(
BuildContext context,
Expand Down
3 changes: 0 additions & 3 deletions tool/ui_lint/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -1089,9 +1089,6 @@
"lib/navigation/view/main_window_screen.dart": [
{"scope":"_PinnedToolNavItem.buildIcon","fp":"f5e8a1bc","n":1}
],
"lib/navigation/view/tab_context_menu.dart": [
{"scope":"_openTabsMenuEntries","fp":"87f04357","n":1}
],
"lib/navigation/view/vertical_reading_tab_strip.dart": [
{"scope":"_VerticalTabRow._buildCloseButton","fp":"0b3cb486","n":1}
],
Expand Down
Loading