diff options
| author | Gabriel Schneider <[email protected]> | 2026-10-12 15:56:07 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:16 -0300 |
| commit | d4dfee52a67d2e2b9a52f7e7b18b3b3cc185fac4 (patch) | |
| tree | 3c1737d474bcebedb0783655ff74e7d850c06258 /build.zig | |
| parent | fd7775b4e9c24b6bb8f664beb7d4fd2ccecd8d85 (diff) | |
| download | cloud9-d4dfee52a67d2e2b9a52f7e7b18b3b3cc185fac4.tar.gz cloud9-d4dfee52a67d2e2b9a52f7e7b18b3b3cc185fac4.zip | |
9web: integrate sites and services into the file browser views
Replace the standalone dark dashboard with Files, Sites and Services navigation in the existing application shell. Reuse the shared stylesheet, tables and controls; open site files and logs in the normal file browser and send build commands through the existing HTTP-to-9P mapping.
Support direct tab URLs, browser history, preserved unsaved edits and focused controls, and pause catalogue polling in hidden views. Keep catalogue tabs hidden for ordinary upstream gateways. Remove the standalone page, script and log dialog.
Document the integrated views and add a real Chromium regression suite with desktop/mobile screenshots. Validation: catalogue and HTTP filesystem suites, integrated UI suite, and all 32 original browser E2E scenarios.
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -29,7 +29,7 @@ pub fn build(b: *std.Build) void { wasm.max_memory = 1024 * 1024; const web = b.step("web", "Install the standalone browser client into zig-out/web"); web.dependOn(&b.addInstallFileWithDir(wasm.getEmittedBin(), .{ .custom = "web/_cloud9" }, "cloud9.wasm").step); - for ([_][]const u8{ "index.html", "app.mjs", "client.mjs", "style.css" }) |file| { + for ([_][]const u8{ "index.html", "app.mjs", "catalog.mjs", "client.mjs", "style.css" }) |file| { web.dependOn(&b.addInstallFileWithDir(b.path(b.fmt("web/static/{s}", .{file})), .{ .custom = if (std.mem.eql(u8, file, "index.html")) "web" else "web/_cloud9" }, file).step); } const bridge = b.addExecutable(.{ .name = "9web", .root_module = b.createModule(.{ @@ -44,6 +44,9 @@ pub fn build(b: *std.Build) void { const catalog_test = b.addSystemCommand(&.{ "python3", "test/web/catalog.py" }); catalog_test.addArtifactArg(bridge); b.step("catalog-test", "Test local sites, controls, watcher and passive discovery").dependOn(&catalog_test.step); + const catalog_ui = b.addSystemCommand(&.{ "node", "test/web/catalog_ui.mjs" }); + catalog_ui.addArtifactArg(bridge); + b.step("catalog-ui-test", "Test integrated Files, Sites and Services views in Chromium").dependOn(&catalog_ui.step); } const run_bridge = b.addRunArtifact(bridge); run_bridge.addPassthruArgs(); |
