╭ changed ──────╮ │src/ui/Home.zig│ ╰───────────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭─────────────────────────────────────────────╮ │18 header: Header, │ │19 about: About, │ │20 users: Users, │ │21 +user_notifications: ui.UserNotifications,│ │22 quit: Quit, │ │23 │ │24 const Self = @This(); │ ╰─────────────────────────────────────────────╯ ╭─────────────────────────────────────────────────────╮ │29 haxy_moment: evt.AdminDB.HashMap(.read_only),│ │30 // the users tab's window and search │ │31 users_route: ui.RoutablePage.HomeUsersRoute, │ │32 + user_tab: ui.RoutablePage.UserTab, │ │33 ) !Self { │ │34 const about = try About.init(arena, session);│ │35 return .{ │ ╰─────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────╮ │36 .header = try Header.init(arena, about.title), │ │37 .about = about, │ │38 .users = try Users.init(arena, haxy_moment, users_route), │ │39 + .user_notifications = try ui.UserNotifications.init(arena, session, user_tab),│ │40 .quit = Quit.init(), │ │41 }; │ │42 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │88 } │ │89 │ │90 { │ │88 - var user_view = try ui.UserSettings.initView(allocator, session); │ │91 + var user_view = try ui.UserSettings.initView(allocator, session, &data.user_notifications, .{ .home_user = .{} });│ │92 errdefer user_view.deinit(allocator); │ │93 try stack.children.put(allocator, user_view.getFocus().id, user_view); │ │94 } │ ╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │157 .home_header => { │ │158 if (stack.getSelected()) |selected_widget| switch (selected_widget.*) {│ │159 .home_users => |*v| return v.focusHeader(root_focus), │ │160 + .user_notifications => |*v| if (v.focusHeader(root_focus)) return, │ │161 else => {}, │ │162 }; │ │163 index = stack_index; │ ╰────────────────────────────────────────────────────────────────────────────────────────────────────────────╯