Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Source/DataTables/DataTableStatus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,12 @@

/** Display state of a loaded-page data table. */
export enum DataTableStatus {
/** Rows (or the empty row) render normally; the default. */
Ready = 'ready',
/** The first result is on its way. Without rows a loading row renders; with rows they stay visible and the table marks itself busy. */
Loading = 'loading',
/** The query failed or its result is invalid; the failure row renders and server exception text is never shown. */
Failed = 'failed',
/** The user is not allowed to see the result; the failure row renders with the unauthorized message. */
Unauthorized = 'unauthorized',
}
6 changes: 6 additions & 0 deletions Source/scripts/verify-package-archive.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,12 @@ const declarationBlocks = styles.match(/\{/gu)?.length ?? 0;
// that documents the split, so the ceilings stay where they are once more - and the rule they
// encode is no longer the only lever, because a consumer that does not want every surface can now
// import the areas it mounts instead of raising this ceiling.
// Measured again when the query-state rows and the PivotViewer loading label landed
// (Cratis/Components#338): their rules alone measured gzip 32791, 23 bytes past the ceiling, so
// the addition came with the reduction the ceiling demands - the per-file separator comment in
// the published stylesheets dropped its dash decoration (45 banners across the aggregate, and
// every per-area sheet carries fewer of the same), measuring raw 203689, gzip 32558, 1170
// declaration blocks. The ceilings stay where they are.
const styleBudget = {
rawBytes: 205 * 1024,
gzipBytes: 32 * 1024,
Expand Down
10 changes: 8 additions & 2 deletions rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,15 @@ function findComponentStylesheets(sourceDir, directory = sourceDir, found = [])
return found;
}

/** One manifest entry rendered the way it appears inside the published stylesheets. */
/**
* One manifest entry rendered the way it appears inside the published stylesheets.
*
* The separator carries no decoration beyond the two-dash frame on purpose: it ships inside
* every published stylesheet (aggregate and per-area alike), and the aggregate's reviewed gzip
* ceiling is what forces that payload to stay honest.
*/
const renderStyleEntry = ({ specifier, file }) =>
`/* ── ${specifier} ─────────────────────────────────────── */\n${readFileSync(file, 'utf8')}`;
`/* ── ${specifier} ── */\n${readFileSync(file, 'utf8')}`;

/**
* Resolves the `@import` statements in `styles.css` into one flat stylesheet.
Expand Down
Loading