Files
rea/website/public/examples/notes-web/index.html
T
188e2bd684 fix(website): honor validators and restore the implicit design system (#14768)
* fix(website): honor validators and restore the implicit design system

- Route every worker answer that skips Markdown negotiation through the HTML
  fallback, so validators and ranges removed for the probe still apply.
- Replace undefined classes with existing components and remove 27 CSS
  classes no page uses.
- Express article text color as a token so component colors win in both
  themes, and use logical properties for text-flow layout in RTL pages.
- Give an untranslated English fallback notice English direction.
- Start the page navigation closed without JavaScript, dismiss it with Escape
  or an outside click, and keep later copy clicks, failed key imports and
  first animation frames from corrupting demo state.
- Sync the theme bootstrap into the Notes fixture through a declared region.

* fix(website): skip Markdown negotiation for requests with a body

Markdown probing takes ownership of the caller request body. Methods other
than GET and HEAD have no Markdown representation, so they reach the asset
service once with the original body and validators.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* fix(website): describe the homepage menu's closed start

The disclosure has no open attribute, so without JavaScript it starts
closed and the summary reveals the fragment links. The guide now matches
that, including overlay dismissal.

Co-authored-by: morluto <morluto@users.noreply.github.com>

* style(website): wrap the worker precondition assertion

oxfmt's 80-column width is what Static checks enforce. The If-Match
comparison in the non-retrieval test exceeded it.

Co-authored-by: morluto <morluto@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: morluto <morluto@users.noreply.github.com>
2026-11-26 17:04:00 +00:00

64 lines
2.2 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="robots" content="noindex" />
<meta
name="description"
content="A small Notes app for the REA browser and network analysis guide."
/>
<title>Notes — REA browser example</title>
<!-- website:theme:start -->
<meta name="theme-color" content="#ffffff" />
<script>
(() => {
let theme;
try {
theme = localStorage.getItem("rea-theme");
} catch {}
if (theme !== "light" && theme !== "dark")
theme = matchMedia("(prefers-color-scheme: dark)").matches
? "dark"
: "light";
document.documentElement.dataset.theme = theme;
document.querySelector('meta[name="theme-color"]').content =
theme === "dark" ? "#1e1e2e" : "#ffffff";
})();
</script>
<script defer src="../../assets/theme.js"></script>
<!-- website:theme:end -->
<link rel="icon" href="../../assets/favicon.svg?v=2" type="image/svg+xml" />
<link rel="stylesheet" href="../../assets/styles.css" />
<script src="export.js" defer></script>
<script src="../../assets/main.js" defer></script>
</head>
<body id="top">
<main class="container example-app">
<p class="breadcrumb">
<a href="../../guides/browser/">Browser observation guide</a> / Example
</p>
<p class="eyebrow">A small app to inspect</p>
<h1>Notes</h1>
<p class="lede">
Two notes. One CSV export. Observe what happens when you click.
</p>
<ul class="example-notes">
<li>First note</li>
<li>Follow the export</li>
</ul>
<button class="button" type="button" id="export">Export notes</button>
<p class="example-status" id="status" role="status" aria-live="polite">
Ready to export.
</p>
<p class="caption">
This example loads <code>notes.json</code> and creates a CSV in your
browser.
</p>
</main>
<a class="back-to-top" href="#top" aria-label="Back to top">
<span aria-hidden="true">↑</span> Top
</a>
</body>
</html>