Make the Identity Manager a peer of the library and develop

It was reachable only from the library header, which made it a side trip
rather than a mode. It is now reachable from develop's header too, beside
the way back, because that is the same kind of move -- leaving this
photograph for somewhere else in the library -- and a screen you can only
reach from one of the other two is not a peer of them.

Leaving returns to whichever screen opened it, and the button says which.
A back button that read "Library" while returning to develop would be
lying about the one thing a back button has to be right about. The
develop session is only hidden, never torn down, so returning to it costs
nothing and keeps the photographer's place.

The header now matches the other two screens rather than using a close
cross: three screens whose headers disagree read as three applications.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-08-26 23:14:17 +02:00
co-authored by Claude Opus 5
parent b55812812a
commit 61c4547b9c
5 changed files with 72 additions and 28 deletions
+21 -12
View File
@@ -166,6 +166,13 @@ export component IdentityScreen inherits Rectangle {
// No model on disk: face indexing cannot run at all (docs/faces.md §2.2).
in property <bool> model-missing: false;
in property <int> picked-count: 0;
/// Where leaving goes back to — "‹ Library" or "‹ Develop".
///
/// The label follows the behaviour rather than the other way round: this
/// screen is reachable from both of the other two, and a button that said
/// "Library" while returning to develop would be lying about the one thing
/// a back button has to be right about.
in property <string> back-label: "‹ Library";
callback person-picked(int);
callback rename(string);
@@ -191,18 +198,20 @@ export component IdentityScreen inherits Rectangle {
padding: Theme.gap;
spacing: Theme.gap-sm;
HorizontalLayout {
Text {
text: "People";
color: Theme.ink;
font-size: Theme.text-lg;
vertical-alignment: center;
}
Rectangle { }
IconButton {
icon: "cross";
clicked => { root.close(); }
}
// "‹ Library" rather than a close cross, matching develop's
// header exactly. This is a screen you *leave for the
// library*, not a dialogue you dismiss, and the two should
// not use different words for the same move.
Button {
text: root.back-label;
clicked => { root.close(); }
}
Text {
text: "Identity Manager";
color: Theme.ink;
font-size: Theme.text-lg;
vertical-alignment: center;
}
if root.unassigned > 0: Text {