ui

package
v1.801.360 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 2, 2026 License: Apache-2.0 Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package ui embeds the Hanzo Research R&D Ops Board — the dashboard over the /v1/research evidence plane (HIP-0512) — directly into the cloud binary and serves it at /research (cloud.hanzo.ai/research + console.hanzo.ai/research).

ONE origin, no artifact: the board is served by the SAME process that serves /v1/research, so it reads the plane same-origin (GET /v1/research/projects · /totals · /experiments) with the caller's session, and falls back to an embedded snapshot when the plane is unreachable — it renders anywhere, then upgrades to live in place.

dist/index.html is a single self-contained page (inline CSS + JS, zero external fetch beyond same-origin /v1/research), so the embed is one file. Mirrors the clients/tasks/ui embed pattern: mount under StripPrefix("/research", Handler()).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FS

func FS() fs.FS

FS returns the embedded built-UI filesystem rooted at dist/.

func Handler

func Handler() http.Handler

Handler serves the embedded board. Mount it under StripPrefix("/research", …) so it sees root-relative paths. Any non-file path rewrites to index.html (SPA fallback); a missing bundle returns 503 so an absent build is loud, never a blank page.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL