@reddoorla/maintenance 0.12.0 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -423,12 +423,9 @@ declare function verifyDashboardToken(provided: string | null | undefined, expec
423
423
  /**
424
424
  * Render the fleet homepage as a single HTML document. Pure function:
425
425
  * no Airtable access, no env reads, no I/O. The Netlify function handler
426
- * fetches and gates, then hands here. Same style vocabulary as
427
- * renderSiteDashboardHtml so the two pages feel like one product.
428
- *
429
- * Sites without a dashboardToken render as plain text plus a "no token"
430
- * badge — visible-but-inactive, so the homepage doubles as a per-site
431
- * setup-progress view.
426
+ * filters the Websites rows (drops anything without a dashboardToken — those
427
+ * aren't on the Reddoor stack), sorts, and hands here. Same style vocabulary
428
+ * as renderSiteDashboardHtml so the two pages feel like one product.
432
429
  */
433
430
  declare function renderFleetHomeHtml(sites: WebsiteRow[]): string;
434
431
 
package/dist/index.js CHANGED
@@ -3036,10 +3036,8 @@ function scoreCell(value) {
3036
3036
  }
3037
3037
  function siteHrefCell(site) {
3038
3038
  const name = escapeHtml2(site.name);
3039
- if (!site.dashboardToken) {
3040
- return `<td class="site"><span class="name">${name}</span> <span class="badge">no token</span></td>`;
3041
- }
3042
- const href = `/s/${escapeHtml2(siteSlug(site.name))}?t=${escapeHtml2(site.dashboardToken)}`;
3039
+ const token = site.dashboardToken ?? "";
3040
+ const href = `/s/${escapeHtml2(siteSlug(site.name))}?t=${escapeHtml2(token)}`;
3043
3041
  return `<td class="site"><a href="${href}">${name}</a></td>`;
3044
3042
  }
3045
3043
  function siteRow(site) {
@@ -3066,12 +3064,10 @@ td { padding: 0.65rem 0.5rem; border-bottom: 1px solid #eee; }
3066
3064
  td.site a { font-weight: 500; }
3067
3065
  td.url { color: #666; font-size: 0.85rem; }
3068
3066
  td.score { text-align: right; font-variant-numeric: tabular-nums; min-width: 3.5rem; }
3069
- .badge { display: inline-block; margin-left: 0.5rem; padding: 0.1rem 0.5rem; font-size: 0.75rem; border-radius: 3px; background: #f0f0f0; color: #999; }
3070
- @media (prefers-color-scheme: dark) { .badge { background: #2a2a2a; color: #777; } }
3071
3067
  .empty { color: #999; padding: 2rem; text-align: center; border: 1px dashed #ccc; border-radius: 6px; }
3072
3068
  `;
3073
3069
  function renderFleetHomeHtml(sites) {
3074
- const body = sites.length === 0 ? `<div class="empty">No sites in the Websites table yet.</div>` : `<table>
3070
+ const body = sites.length === 0 ? `<div class="empty">No sites to display.</div>` : `<table>
3075
3071
  <thead><tr>
3076
3072
  <th>Site</th>
3077
3073
  <th>URL</th>
@@ -3092,7 +3088,7 @@ function renderFleetHomeHtml(sites) {
3092
3088
  </head>
3093
3089
  <body>
3094
3090
  <h1>Reddoor fleet</h1>
3095
- <div class="meta">${sites.length} site${sites.length === 1 ? "" : "s"} in the Websites table.</div>
3091
+ <div class="meta">${sites.length} site${sites.length === 1 ? "" : "s"} on the Reddoor stack.</div>
3096
3092
  ${body}
3097
3093
  </body>
3098
3094
  </html>`;