mattrguerra/meridian-ops-boardmainPrivate on GitHub, published here in full

css-surface.ts

Language TypeScript800 B15 lines

apps/dashboard/test/css-surface.ts

  1. /**
  2. * The stylesheets the Worker's page shell actually serves, in one place.
  3. *
  4. * A helper rather than a direct import: `INBOX_CSS` lives in inbox-view.ts and
  5. * `EXPORT_CSS`/`THEME_CSS` in theme.ts, and the only thing that knows which
  6. * combination reaches a served page is the shell in apps/worker/src/index.ts.
  7. * A test that assembles the wrong combination passes while the page ships
  8. * unstyled, so the combination is written down once here and named after what
  9. * it is.
  10. */
  11. export { THEME_CSS, EXPORT_CSS } from '../src/theme.js'
  12. // The board-only sheet, exported so a test can assert what must NOT be in it:
  13. // a rule for a Worker-served page landing here reaches nothing.
  14. export { QUEUE_CSS } from '../src/theme.js'
  15. export { INBOX_CSS as INBOX_CSS_FOR_TEST } from '../src/inbox-view.js'