Skip to content

refactor(ui): tighten workspace header and move sharing onto the status line - #174

Merged
DeepDiver1975 merged 2 commits into
mainfrom
ui/compact-workspace-header
Sep 1, 2026
Merged

refactor(ui): tighten workspace header and move sharing onto the status line#174
DeepDiver1975 merged 2 commits into
mainfrom
ui/compact-workspace-header

Conversation

@DeepDiver1975

Copy link
Copy Markdown
Collaborator

Summary

  • Tightened the Einsatz status header's outer padding, inter-row spacing, and per-banner padding to reclaim vertical space before the tab content.
  • Removed the sharing controls' own full-width row; "im Netzwerk freigeben" is now a compact icon button on the status line, next to the "● Offen" pill.
  • The icon swaps between a share glyph (idle) and a close/X glyph (sharing active) based on IsSharing. Once sharing starts, the reachable-at address and PIN render inline on that same line instead of their own row.
  • No ViewModel changes — pure view relayout using existing bindings (CanHost, IsSharing, ShareStatus, SharePin, ShareButtonText, ToggleSharingCommand).

Test plan

  • dotnet build
  • dotnet test tests/LageBuch.Acceptance.Tests — 89 passed / 1 skipped (pre-existing skip), including LayoutAlignmentTests, HeaderHeroTests, SharePanelRenderTests, ReminderFontTests
  • Rendered before/after screenshots via the headless Skia harness (WorkspaceRenderHelper + Window.CaptureRenderedFrame()) confirming the layout and both icon states

…us line

The Einsatz identity block wasted vertical space: a full row for
"im Netzwerk freigeben", generous padding, and 14px inter-row spacing
pushed the actual content (ETB, checklists, etc.) further down than
needed. Tighten the header's padding/spacing, and replace the
full-width sharing button with a compact icon button on the status
line — its icon swaps between a share glyph and a close (X) glyph
based on IsSharing, and once active the address/PIN render inline
next to the status pill instead of on their own row.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
The label added no information beyond what the hero text and the
whole identity block already convey, and cost a row of vertical
space above it. Removing it collapses the identity grid to a single
row.

Signed-off-by: Thomas Müller <1005065+DeepDiver1975@users.noreply.github.com>
@DeepDiver1975

Copy link
Copy Markdown
Collaborator Author

Before:
pr174-before

After:
pr174-after-idle
pr174-after-sharing

@DeepDiver1975
DeepDiver1975 merged commit e72e9f2 into main Sep 1, 2026
2 checks passed
@DeepDiver1975
DeepDiver1975 deleted the ui/compact-workspace-header branch September 1, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant