oxidecomputer / oxidecomputer/console

Generate HTML error pages for Nexus

Open
#1,570 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
228
Forks
22
Avg merge
19h 42m
Merged PRs (30d)
32

Description

Our end of https://github.com/oxidecomputer/omicron/issues/3333

Vite doc on multiple entry points: https://vitejs.dev/guide/build.html#multi-page-app. We would add more entries here:

https://github.com/oxidecomputer/console/blob/baef7af7433f5c394e22f2072ee0280905787c74/vite.config.ts#L25-L29

Definitely a 404 page and a generic something went wrong page, not sure if we need more than that. It would be cool if we could inline the relevant CSS right in the HTML, but there will always be fonts to download, so the page is never going to be totally free of additional dependencies. So making everything be inline is a secondary design goal. But definitely no JS!

They would be automatically included in the console assets tarball, which takes everything generated by Vite and sends it over the fence, so literally all that's required in this repo is making sure the files get generated. On the Nexus side we have to figure out how to serve them when appropriate.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with vite.config.ts at lines 25-29 and the linked Vite multi-page app guidance. Add entry points for a 404 page and a generic error page with no JavaScript; confirm Vite generates them and that they are included in the console assets tarball.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vite
Domain
build-system, frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.