Pre-launch — Gluecron is in final validation. Public signups and git hosting for non-owner users open after launch review.
CodeIssuesDiscussionsWikiPull RequestsProjectsCommitsActionsReleasesContributorsPulse● GatesSecuritySettingsDeploymentsPipelineInsightsAgents✨ Explain✨ Ask AI✨ Workspace✨ Spec✨ Tests▓ Debt Map✨ NL Search🏛 Archaeology
claude/adoring-hopper-5x74bqclaude/affectionate-feynman-ykrf1hclaude/architecture-audit-design-wxprenclaude/build-status-update-3MXsfclaude/charming-meitner-mllb5rclaude/compare-gate-gluecron-s4mFQclaude/confident-faraday-tikcwbclaude/continue-work-XMTlIclaude/crontech-gluecron-deploy-7MIECclaude/crontech-platform-setup-SeKfwclaude/design-2026claude/ecstatic-ptolemy-jMdigclaude/enhance-github-integration-QNHdGclaude/fix-aa-loop-issue-PonMQclaude/fix-actions-and-processclaude/fix-desktop-errors-XqoW8claude/fix-red-workflowsclaude/fix-website-access-6FKJNclaude/gatetest-integration-hardeningclaude/github-audit-improvements-bDFr9claude/gluecron-launch-status-FoMRlclaude/hopeful-lamport-olfCTclaude/issue-to-pr-and-protectionsclaude/jolly-heisenberg-2sg1Qclaude/launch-preparation-QmTb6claude/new-session-xk1l7claude/plan-platform-architecture-kkN4yclaude/platform-analysis-roadmap-1nUGLclaude/platform-launch-assessment-8dWV8claude/polish-platform-release-AeDrUclaude/resume-previous-work-KzyLwclaude/review-crontech-handoff-qYEVqclaude/review-project-completeness-lHhS2claude/review-readme-docs-ulqPKclaude/serene-edison-rj87weclaude/setup-multi-repo-dev-BCwNQclaude/ship-fixes-and-tests-Jvz1cclaude/site-audit-competitive-pctlwgclaude/site-migration-vercel-XstpKclaude/standalone-product-repos-XHFTDcopilot/feat-smart-empty-states-keyboard-first-enhancementcopilot/feat-smart-morning-digest-review-context-restorecopilot/fix-and-process-workflowscopilot/update-ai-powered-code-reviewfeat/debt-mapfeat/push-policy-codeowners-hardeningfeat/smart-digest-contextfeat/stage-impactfeat/t1-secret-migrationfeat/u-polishfeat/w-self-hostfeat/w2-claude-configfix/agent-journey-orphan-sweepgatetest/auto-fix-1776586424172gatetest/auto-fix-1776586534814gatetest/auto-fix-1776590685143gatetest/auto-fix-1776590808199mainops/redeploy-retriggerstyle/dxt-cta-themeworktree-agent-a3377aad30d55da26worktree-agent-a7ef607b7ee1d6c74
widen-layout.ts2.7 KB · 73 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/**
 * One-shot layout-widening sweep.
 *
 * The site felt "thin": `main` allowed 1440px but nearly every page wrapped its
 * content in a much narrower centered column (880–1180px), leaving big empty
 * gutters on modern wide screens. This script widens the per-page container
 * declarations into consistent tiers so the whole site uses the available
 * width the way GitHub / Linear / Vercel do.
 *
 * It is deliberately conservative: it only rewrites a CSS declaration line when
 * that line is unmistakably a page-level container — i.e. the selector is a
 * class whose name ends in `-wrap`, `-container`, or `-page`, AND the same line
 * sets both `max-width: <N>px` and `margin: 0 auto`. Hero-inner / sub-heading /
 * media-query widths never match (no `margin: 0 auto`), so prose measure and
 * narrow confirm dialogs are left intact.
 *
 * Tiers (pass 2 — "do it all", near-full-bleed):
 *   >= 1300px  -> 1680  (dashboards, lists, tables, admin, explore, insights)
 *   1080..1299 -> 1320  (medium pages)
 *   1000..1079 -> 1200  (settings, repo-settings, import, forms)
 *   740..819   -> 900   (small confirm/detail cards, gentle nudge)
 *   else       -> unchanged (tiny claim/dialog views < 740px stay compact)
 *
 * Run once: `bun scripts/widen-layout.ts`
 */

import { Glob } from "bun";

const ROOT = new URL("..", import.meta.url).pathname;

function widen(old: number): number | null {
  if (old >= 1300) return 1680;
  if (old >= 1080) return 1320;
  if (old >= 1000) return 1200;
  if (old >= 740 && old < 820) return 900;
  return null; // leave tiny intentional widths alone
}

// Matches a single-line page-container declaration, capturing the px width.
// Example: `  .admin-wrap { max-width: 1080px; margin: 0 auto; }`
const LINE_RE =
  /^(\s*\.[A-Za-z0-9_-]*(?:wrap|container|page)\b[^\n{]*\{[^\n}]*max-width:\s*)(\d+)(px[^\n]*margin:\s*0 auto[^\n]*)$/;

const glob = new Glob("src/**/*.tsx");
let filesChanged = 0;
let linesChanged = 0;

for await (const rel of glob.scan({ cwd: ROOT })) {
  if (!rel.startsWith("src/routes/") && !rel.startsWith("src/views/")) continue;
  const path = ROOT + rel;
  const src = await Bun.file(path).text();
  const lines = src.split("\n");
  let touched = false;

  for (let i = 0; i < lines.length; i++) {
    const m = lines[i].match(LINE_RE);
    if (!m) continue;
    const old = parseInt(m[2], 10);
    const next = widen(old);
    if (next === null || next === old) continue;
    lines[i] = `${m[1]}${next}${m[3]}`;
    console.log(`${rel}:${i + 1}  ${old}px -> ${next}px`);
    touched = true;
    linesChanged++;
  }

  if (touched) {
    await Bun.write(path, lines.join("\n"));
    filesChanged++;
  }
}

console.log(`\nDone: ${linesChanged} container(s) widened across ${filesChanged} file(s).`);