feat(workspace): one global switcher anchor in the shell sidebar
The switcher used to be embedded per page (Flows/Runs/Audit/
Approvals) — invisible on the other five pages and sitting in a
different corner depending on the page (persona review 2026-08-27,
consensus finding). It now lives ONCE in the sidebar, above the
destinations: active project/area always visible, opens the same
menu everywhere, Cmd+P from anywhere. The shell listens to the
workspace, so the sidebar endpoint label can no longer lag a
sealed switch until the next health tick.
Also in this rebuild:
* Stopped sealed areas ask before starting ("Start area X?") —
a context switch must never boot a hub daemon as a click
side-effect; running areas keep switching with one click.
* The switcher tooltip told a wrong scope ("filters this view") —
it now says the choice applies everywhere and stamps new runs.
* The aggregated sealed row explains itself in place (names can
reveal client identities) and links to the Settings toggle
(Settings dialog gained an initialCategory jump).
* The active entry carries a checkmark in the menu.
* The Cmd+K palette knows projects and areas, ranked by recent
use; sealed names honour the privacy setting — while hidden,
the palette offers the guarded picker instead of the names.
* The runs empty state names the active project filter as the
cause ("No runs in project X" + show-all action) instead of
claiming the feature is off.
Tests updated to the anchor and made hermetic (scriptable
projects on the fake hub, sealed-area fake); new coverage for the
checkmark, the why-line, and the start confirmation.
Signed-off-by: flemming-it <stefan.a.flemming@googlemail.com>
This commit is contained in:
parent
afe782e826
commit
64c2a77dc9
16 changed files with 988 additions and 324 deletions
|
|
@ -1413,6 +1413,9 @@
|
|||
"searchHintOpen": "Enter öffnen",
|
||||
"searchHintClose": "Esc schließen",
|
||||
"searchGroupPages": "Seiten",
|
||||
"searchGroupWorkspace": "Projekte & Bereiche",
|
||||
"searchWorkspaceHint": "Kontext wechseln · ⌘P",
|
||||
"searchWorkspaceSealedPickerHint": "Auswahl öffnen · ⌘P",
|
||||
"searchGroupModules": "Module",
|
||||
"searchGroupStore": "Store",
|
||||
"searchGroupFlows": "Flows",
|
||||
|
|
@ -1833,7 +1836,14 @@
|
|||
"federationEnrollmentHint": "Übergeben Sie das Token dem Satelliten-Betreiber über einen sicheren Kanal. Die mitgelieferte Zertifikatsstelle authentifiziert die erste Verbindung des Satelliten.",
|
||||
"workspaceAll": "Alle Projekte",
|
||||
"workspaceDefaultProject": "Allgemein",
|
||||
"workspaceSwitcherTooltip": "Arbeitsbereich — filtert diese Ansicht und stempelt neue Läufe mit dem gewählten Projekt",
|
||||
"workspaceSwitcherTooltip": "Arbeitskontext wählen — gilt überall: filtert Flows, Läufe, Audit und Freigaben und stempelt neue Läufe mit dem gewählten Projekt",
|
||||
"workspaceAnchorCaption": "Projekt / Bereich",
|
||||
"workspaceStartConfirmTitle": "Bereich „{name}“ starten?",
|
||||
"@workspaceStartConfirmTitle": {"placeholders": {"name": {"type": "String"}}},
|
||||
"workspaceStartConfirmBody": "Dieser abgeschottete Bereich ist gerade gestoppt. Studio startet seine eigene Hub-Instanz auf diesem Rechner und verbindet sich mit ihr — laufende Bereiche wechseln ohne diese Rückfrage.",
|
||||
"workspaceStartConfirmAction": "Starten und verbinden",
|
||||
"workspaceSealedAggregateWhy": "Namen bleiben zusammengefasst, weil sie Mandanten verraten können.",
|
||||
"workspaceSealedAggregateSettings": "Immer anzeigen: Einstellungen → Sicherheit",
|
||||
"workspaceProtectedHint": "Geschützt: logisch getrennt im gemeinsamen Hub — keine harte Prozessgrenze. Kritische Mandate nutzen einen abgeschotteten Bereich.",
|
||||
"runsTitle": "Läufe",
|
||||
"runsReloadTooltip": "Lauf-Liste neu laden",
|
||||
|
|
@ -1841,6 +1851,10 @@
|
|||
"runsEmptyHint": "Hier erscheinen Läufe, die im Hintergrund weiterlaufen, während Sie anderes tun. Diese Funktion ist optional und standardmäßig ausgeschaltet — die Anleitung zeigt Schritt für Schritt, wie sie eingeschaltet wird.",
|
||||
"runsEmptyEnabledHint": "Läufe im Hintergrund sind eingeschaltet — es wurde nur noch keiner gestartet. Starten Sie einen Flow mit der Option „im Hintergrund ausführen“, dann erscheint er hier.",
|
||||
"runsEmptyGuideButton": "Anleitung öffnen",
|
||||
"runsEmptyFilteredTitle": "Keine Läufe in Projekt „{name}“",
|
||||
"@runsEmptyFilteredTitle": {"placeholders": {"name": {"type": "String"}}},
|
||||
"runsEmptyFilteredHint": "Der Arbeitskontext filtert diese Liste — in anderen Projekten kann es Läufe geben.",
|
||||
"runsEmptyShowAll": "Alle Projekte anzeigen",
|
||||
"runsHubTooOldTitle": "Diese Ansicht braucht eine neuere Hub-Version",
|
||||
"runsHubTooOldHint": "Der Hub ist verbunden, aber seine Version kennt die Laufübersicht noch nicht. Aktualisieren Sie den Hub, dann erscheinen die Läufe hier.",
|
||||
"runsHubTooOldButton": "Diagnose öffnen",
|
||||
|
|
|
|||
|
|
@ -1437,6 +1437,9 @@
|
|||
"searchHintOpen": "enter open",
|
||||
"searchHintClose": "esc close",
|
||||
"searchGroupPages": "Pages",
|
||||
"searchGroupWorkspace": "Projects & areas",
|
||||
"searchWorkspaceHint": "switch context · ⌘P",
|
||||
"searchWorkspaceSealedPickerHint": "open the picker · ⌘P",
|
||||
"searchGroupModules": "Modules",
|
||||
"searchGroupStore": "Store",
|
||||
"searchGroupFlows": "Flows",
|
||||
|
|
@ -1872,7 +1875,14 @@
|
|||
"federationEnrollmentHint": "Hand the token to the satellite operator over a secure channel. The bundled CA authenticates the satellite's first connect.",
|
||||
"workspaceAll": "All projects",
|
||||
"workspaceDefaultProject": "General",
|
||||
"workspaceSwitcherTooltip": "Workspace — filters this view and stamps new runs with the selected project",
|
||||
"workspaceSwitcherTooltip": "Choose the working context — applies everywhere: filters flows, runs, audit and approvals, and stamps new runs with the selected project",
|
||||
"workspaceAnchorCaption": "Project / area",
|
||||
"workspaceStartConfirmTitle": "Start area “{name}”?",
|
||||
"@workspaceStartConfirmTitle": {"placeholders": {"name": {"type": "String"}}},
|
||||
"workspaceStartConfirmBody": "This sealed area is currently stopped. Studio starts its own hub instance on this machine and connects to it — running areas switch without this prompt.",
|
||||
"workspaceStartConfirmAction": "Start and connect",
|
||||
"workspaceSealedAggregateWhy": "Names stay aggregated because they can reveal client identities.",
|
||||
"workspaceSealedAggregateSettings": "Always show: Settings → Security",
|
||||
"workspaceProtectedHint": "Protected: logically separated in the shared hub — no hard process barrier. Critical engagements use a sealed area.",
|
||||
"runsTitle": "Runs",
|
||||
"runsReloadTooltip": "Reload the runs list",
|
||||
|
|
@ -1880,6 +1890,10 @@
|
|||
"runsEmptyHint": "Runs that keep working in the background while you do something else appear here. The feature is optional and off by default — the guide shows step by step how to turn it on.",
|
||||
"runsEmptyEnabledHint": "Background runs are switched on — none has been started yet. Start a flow with the \"run in background\" option and it will appear here.",
|
||||
"runsEmptyGuideButton": "Open the guide",
|
||||
"runsEmptyFilteredTitle": "No runs in project “{name}”",
|
||||
"@runsEmptyFilteredTitle": {"placeholders": {"name": {"type": "String"}}},
|
||||
"runsEmptyFilteredHint": "The working context filters this list — other projects may have runs.",
|
||||
"runsEmptyShowAll": "Show all projects",
|
||||
"runsHubTooOldTitle": "This view needs a newer hub version",
|
||||
"runsHubTooOldHint": "The hub is connected, but its version does not know the runs monitor yet. Update the hub and the runs will appear here.",
|
||||
"runsHubTooOldButton": "Open Doctor",
|
||||
|
|
|
|||
|
|
@ -4400,6 +4400,24 @@ abstract class AppLocalizations {
|
|||
/// **'Pages'**
|
||||
String get searchGroupPages;
|
||||
|
||||
/// No description provided for @searchGroupWorkspace.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Projects & areas'**
|
||||
String get searchGroupWorkspace;
|
||||
|
||||
/// No description provided for @searchWorkspaceHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'switch context · ⌘P'**
|
||||
String get searchWorkspaceHint;
|
||||
|
||||
/// No description provided for @searchWorkspaceSealedPickerHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'open the picker · ⌘P'**
|
||||
String get searchWorkspaceSealedPickerHint;
|
||||
|
||||
/// No description provided for @searchGroupModules.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
|
@ -5752,9 +5770,45 @@ abstract class AppLocalizations {
|
|||
/// No description provided for @workspaceSwitcherTooltip.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Workspace — filters this view and stamps new runs with the selected project'**
|
||||
/// **'Choose the working context — applies everywhere: filters flows, runs, audit and approvals, and stamps new runs with the selected project'**
|
||||
String get workspaceSwitcherTooltip;
|
||||
|
||||
/// No description provided for @workspaceAnchorCaption.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Project / area'**
|
||||
String get workspaceAnchorCaption;
|
||||
|
||||
/// No description provided for @workspaceStartConfirmTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Start area “{name}”?'**
|
||||
String workspaceStartConfirmTitle(String name);
|
||||
|
||||
/// No description provided for @workspaceStartConfirmBody.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'This sealed area is currently stopped. Studio starts its own hub instance on this machine and connects to it — running areas switch without this prompt.'**
|
||||
String get workspaceStartConfirmBody;
|
||||
|
||||
/// No description provided for @workspaceStartConfirmAction.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Start and connect'**
|
||||
String get workspaceStartConfirmAction;
|
||||
|
||||
/// No description provided for @workspaceSealedAggregateWhy.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Names stay aggregated because they can reveal client identities.'**
|
||||
String get workspaceSealedAggregateWhy;
|
||||
|
||||
/// No description provided for @workspaceSealedAggregateSettings.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Always show: Settings → Security'**
|
||||
String get workspaceSealedAggregateSettings;
|
||||
|
||||
/// No description provided for @workspaceProtectedHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
|
@ -5797,6 +5851,24 @@ abstract class AppLocalizations {
|
|||
/// **'Open the guide'**
|
||||
String get runsEmptyGuideButton;
|
||||
|
||||
/// No description provided for @runsEmptyFilteredTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'No runs in project “{name}”'**
|
||||
String runsEmptyFilteredTitle(String name);
|
||||
|
||||
/// No description provided for @runsEmptyFilteredHint.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'The working context filters this list — other projects may have runs.'**
|
||||
String get runsEmptyFilteredHint;
|
||||
|
||||
/// No description provided for @runsEmptyShowAll.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
/// **'Show all projects'**
|
||||
String get runsEmptyShowAll;
|
||||
|
||||
/// No description provided for @runsHubTooOldTitle.
|
||||
///
|
||||
/// In en, this message translates to:
|
||||
|
|
|
|||
|
|
@ -2595,6 +2595,15 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
@override
|
||||
String get searchGroupPages => 'Seiten';
|
||||
|
||||
@override
|
||||
String get searchGroupWorkspace => 'Projekte & Bereiche';
|
||||
|
||||
@override
|
||||
String get searchWorkspaceHint => 'Kontext wechseln · ⌘P';
|
||||
|
||||
@override
|
||||
String get searchWorkspaceSealedPickerHint => 'Auswahl öffnen · ⌘P';
|
||||
|
||||
@override
|
||||
String get searchGroupModules => 'Module';
|
||||
|
||||
|
|
@ -3414,7 +3423,30 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
|
||||
@override
|
||||
String get workspaceSwitcherTooltip =>
|
||||
'Arbeitsbereich — filtert diese Ansicht und stempelt neue Läufe mit dem gewählten Projekt';
|
||||
'Arbeitskontext wählen — gilt überall: filtert Flows, Läufe, Audit und Freigaben und stempelt neue Läufe mit dem gewählten Projekt';
|
||||
|
||||
@override
|
||||
String get workspaceAnchorCaption => 'Projekt / Bereich';
|
||||
|
||||
@override
|
||||
String workspaceStartConfirmTitle(String name) {
|
||||
return 'Bereich „$name“ starten?';
|
||||
}
|
||||
|
||||
@override
|
||||
String get workspaceStartConfirmBody =>
|
||||
'Dieser abgeschottete Bereich ist gerade gestoppt. Studio startet seine eigene Hub-Instanz auf diesem Rechner und verbindet sich mit ihr — laufende Bereiche wechseln ohne diese Rückfrage.';
|
||||
|
||||
@override
|
||||
String get workspaceStartConfirmAction => 'Starten und verbinden';
|
||||
|
||||
@override
|
||||
String get workspaceSealedAggregateWhy =>
|
||||
'Namen bleiben zusammengefasst, weil sie Mandanten verraten können.';
|
||||
|
||||
@override
|
||||
String get workspaceSealedAggregateSettings =>
|
||||
'Immer anzeigen: Einstellungen → Sicherheit';
|
||||
|
||||
@override
|
||||
String get workspaceProtectedHint =>
|
||||
|
|
@ -3440,6 +3472,18 @@ class AppLocalizationsDe extends AppLocalizations {
|
|||
@override
|
||||
String get runsEmptyGuideButton => 'Anleitung öffnen';
|
||||
|
||||
@override
|
||||
String runsEmptyFilteredTitle(String name) {
|
||||
return 'Keine Läufe in Projekt „$name“';
|
||||
}
|
||||
|
||||
@override
|
||||
String get runsEmptyFilteredHint =>
|
||||
'Der Arbeitskontext filtert diese Liste — in anderen Projekten kann es Läufe geben.';
|
||||
|
||||
@override
|
||||
String get runsEmptyShowAll => 'Alle Projekte anzeigen';
|
||||
|
||||
@override
|
||||
String get runsHubTooOldTitle =>
|
||||
'Diese Ansicht braucht eine neuere Hub-Version';
|
||||
|
|
|
|||
|
|
@ -2593,6 +2593,15 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
@override
|
||||
String get searchGroupPages => 'Pages';
|
||||
|
||||
@override
|
||||
String get searchGroupWorkspace => 'Projects & areas';
|
||||
|
||||
@override
|
||||
String get searchWorkspaceHint => 'switch context · ⌘P';
|
||||
|
||||
@override
|
||||
String get searchWorkspaceSealedPickerHint => 'open the picker · ⌘P';
|
||||
|
||||
@override
|
||||
String get searchGroupModules => 'Modules';
|
||||
|
||||
|
|
@ -3407,7 +3416,30 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
|
||||
@override
|
||||
String get workspaceSwitcherTooltip =>
|
||||
'Workspace — filters this view and stamps new runs with the selected project';
|
||||
'Choose the working context — applies everywhere: filters flows, runs, audit and approvals, and stamps new runs with the selected project';
|
||||
|
||||
@override
|
||||
String get workspaceAnchorCaption => 'Project / area';
|
||||
|
||||
@override
|
||||
String workspaceStartConfirmTitle(String name) {
|
||||
return 'Start area “$name”?';
|
||||
}
|
||||
|
||||
@override
|
||||
String get workspaceStartConfirmBody =>
|
||||
'This sealed area is currently stopped. Studio starts its own hub instance on this machine and connects to it — running areas switch without this prompt.';
|
||||
|
||||
@override
|
||||
String get workspaceStartConfirmAction => 'Start and connect';
|
||||
|
||||
@override
|
||||
String get workspaceSealedAggregateWhy =>
|
||||
'Names stay aggregated because they can reveal client identities.';
|
||||
|
||||
@override
|
||||
String get workspaceSealedAggregateSettings =>
|
||||
'Always show: Settings → Security';
|
||||
|
||||
@override
|
||||
String get workspaceProtectedHint =>
|
||||
|
|
@ -3433,6 +3465,18 @@ class AppLocalizationsEn extends AppLocalizations {
|
|||
@override
|
||||
String get runsEmptyGuideButton => 'Open the guide';
|
||||
|
||||
@override
|
||||
String runsEmptyFilteredTitle(String name) {
|
||||
return 'No runs in project “$name”';
|
||||
}
|
||||
|
||||
@override
|
||||
String get runsEmptyFilteredHint =>
|
||||
'The working context filters this list — other projects may have runs.';
|
||||
|
||||
@override
|
||||
String get runsEmptyShowAll => 'Show all projects';
|
||||
|
||||
@override
|
||||
String get runsHubTooOldTitle => 'This view needs a newer hub version';
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue