feat(postit): keep sessions online and replace banner with auth modal
All checks were successful
Forgejo Release / release (push) Successful in 10m4s
Dotnet build and test / build (pull_request) Successful in 15m16s

Remove the sticky session banner, keep the app connected when possible, restore sessions silently on startup, and show a blocking authentication modal with login, register, and forgot-password actions when auto-reconnect cannot resume the session. Add targeted auth and responsive-layout regressions and update the architecture notes to match the session lifecycle.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Paul Schneider 2026-11-13 12:32:58 +00:00
commit 0ac6970e9d
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
17 changed files with 629 additions and 164 deletions

View file

@ -44,7 +44,7 @@ public class MarkdownEditorScrollTests
window.UpdateLayout();
Assert.True(page.DraftTitleTextBox.IsVisible);
Assert.True(page.AttachmentsBorder.IsVisible);
Assert.True(root.SessionBanner.IsVisible);
Assert.False(root.AuthenticationModal.IsVisible);
Assert.Equal(1, Grid.GetColumn(page.DraftTitleTextBox));
Assert.Equal(1, Grid.GetColumn(page.AttachmentsBorder));
Assert.True(page.StatusBar.IsVisible);
@ -60,7 +60,7 @@ public class MarkdownEditorScrollTests
window.UpdateLayout();
Assert.True(page.DraftTitleTextBox.IsVisible);
Assert.True(page.AttachmentsBorder.IsVisible);
Assert.True(root.SessionBanner.IsVisible);
Assert.False(root.AuthenticationModal.IsVisible);
Assert.Equal(0, Grid.GetColumn(page.DraftTitleTextBox));
Assert.Same(document, source.Document);
Assert.True(source.TextArea.IsFocused);
@ -98,10 +98,10 @@ public class MarkdownEditorScrollTests
window.UpdateLayout();
Assert.Equal(new Thickness(20, 26, 22, 32), root.Padding);
var navigationTop = root.NavRoot.TranslatePoint(new Point(), window)!.Value.Y;
var bannerBottom = root.SessionBanner.TranslatePoint(new Point(0, root.SessionBanner.Bounds.Height), window)!.Value.Y;
var navigationBottom = root.NavRoot.TranslatePoint(new Point(0, root.NavRoot.Bounds.Height), window)!.Value.Y;
Assert.True(navigationTop >= 26);
Assert.True(bannerBottom <= 768);
Assert.True(root.SessionBanner.IsVisible);
Assert.True(navigationBottom <= 768);
Assert.False(root.AuthenticationModal.IsVisible);
}
finally
{