feat(gui): Policy tab with three master stacks and lockout-violation banner

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
michael
2026-04-27 11:15:50 -07:00
parent b2771e73fa
commit a28b5c9ebe
2 changed files with 187 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ mod error;
mod firstrun;
mod keys_page;
mod policy_form;
mod policy_page;
const APP_ID: &str = "io.dangerousthings.AuthForge";
@@ -60,6 +61,9 @@ fn main() -> glib::ExitCode {
let keys = keys_page::KeysPage::new(ctx.clone());
stack.add_titled(&keys.root, Some("keys"), "Keys");
let policy = policy_page::PolicyPage::new(ctx.clone());
stack.add_titled(&policy.root, Some("policy"), "Policy");
// ToolbarView is libadwaita v1_4-gated; the project sticks with the
// simpler Box layout for portability (see commit c6a5e94).
let layout = gtk::Box::new(gtk::Orientation::Vertical, 0);