╭ changed ─╮ │src/ui.zig│ ╰──────────╯ ╭───────────╮ │← all files│ ╰───────────╯ ╭──────────────────────────────────────────────────────────────────────────────────────╮ │1764 git_http_port: ?u16 = null, │ │1765 git_ssh_port: ?u16 = null, │ │1766 git_ssh_prefix: []const u8 = "", │ │1767 - // true when this session views a single local repo. unlike `local` │ │1767 + // whether this session views a local repo or the server. unlike `local`│ │1768 // (the host-side filesystem source) this travels in the snapshot, so │ │1769 // the wasm side also parses elided link urls and hides the multi-user │ │1770 // chrome. │ ╰──────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────╮ │1771 - is_local: bool = false, │ │1771 + host_kind: evt.HostKind = .server, │ │1772 }; │ │1773 │ │1774 // a user-initiated state change. widgets enqueue these on the session during│ ╰───────────────────────────────────────────────────────────────────────────────────────╯ ╭────────────────────────────────────────────────────────────────────────────────────────────────────╮ │1830 // the commit author for an event this session creates, or null when it may │ │1831 // not create one │ │1832 pub fn eventAuthor(self: *Self) !?evt.CommitAuthor { │ │1833 - if (self.data.is_local) { │ │1833 + if (self.data.host_kind == .local) { │ │1834 const src = self.local orelse return local_author_fallback; │ │1835 const io = self.io orelse return local_author_fallback; │ │1836 return try localAuthor(src, io, self.page_arena.child_allocator, self.page_arena);│ ╰────────────────────────────────────────────────────────────────────────────────────────────────────╯ ╭───────────────────────────────────────────────────────────────────────────────────────────────────────────────╮ │2147 if (!std.mem.startsWith(u8, custom, prefix)) return null; │ │2148 const path = custom[prefix.len..]; │ │2149 // local sessions build (and parse) links with the repo identity elided │ │2150 - return if (data.is_local) RoutablePage.fromUrlLocal(path) else RoutablePage.fromUrl(path); │ │2150 + return if (data.host_kind == .local) RoutablePage.fromUrlLocal(path) else RoutablePage.fromUrl(path);│ │2151 } │ │2152 │ │2153 // a display author, resolved against the admin db at read time │ ╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────╯