fix: widen retro global card — never truncate repo names

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Garry Tan 2026-03-22 13:49:41 -07:00
parent dc743917f4
commit a0cb386e81
No known key found for this signature in database
GPG Key ID: C1F69E85C74EFE1D
3 changed files with 96 additions and 81 deletions

View File

@ -849,12 +849,14 @@ stats — no team data, no project breakdowns. Designed to screenshot and post.
Use the user identity from `git config user.name` to filter all per-repo git data. Use the user identity from `git config user.name` to filter all per-repo git data.
Aggregate across all repos to compute personal totals. Aggregate across all repos to compute personal totals.
Render as a single visually clean block: Render as a single visually clean block. The box must be **wide enough to fit full
repo names** — never truncate project names. Use 80 characters inner width minimum.
Pad repo names to the longest repo name in the list so columns align cleanly.
``` ```
╔══════════════════════════════════════════════════════════════╗ ╔════════════════════════════════════════════════════════════════════════════════════
║ [USER NAME] — Week of [date] ║ ║ [USER NAME] — Week of [date] ║
╠══════════════════════════════════════════════════════════════╣ ╠════════════════════════════════════════════════════════════════════════════════════
║ ║ ║ ║
║ [N] commits across [M] projects ║ ║ [N] commits across [M] projects ║
║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net ║ ║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net ║
@ -862,10 +864,10 @@ Render as a single visually clean block:
║ [N]-day shipping streak 🔥 ║ ║ [N]-day shipping streak 🔥 ║
║ ║ ║ ║
║ PROJECTS ║ ║ PROJECTS ║
║ ──────────────────────────────────────────────────────────── ║ ║ ──────────────────────────────────────────────────────────────────────────────
║ [repo1] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ [repo2] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ [repo3] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ ... ║ ║ ... ║
║ ║ ║ ║
║ SHIP OF THE WEEK ║ ║ SHIP OF THE WEEK ║
@ -876,13 +878,16 @@ Render as a single visually clean block:
║ • [1-line description of second theme] ║ ║ • [1-line description of second theme] ║
║ • [1-line description of third theme] ║ ║ • [1-line description of third theme] ║
║ ║ ║ ║
║ Powered by gstack /retro global ║ Powered by gstack · github.com/garrytan/gstack
╚══════════════════════════════════════════════════════════════╝ ╚════════════════════════════════════════════════════════════════════════════════════
``` ```
**Rules for the personal card:** **Rules for the personal card:**
- Only show repos where the user has commits. Skip repos with 0 commits. - Only show repos where the user has commits. Skip repos with 0 commits.
- Sort repos by user's commit count descending. - Sort repos by user's commit count descending.
- **Never truncate repo names.** Use the full repo name (e.g., `analyze_transcripts`
not `analyze_trans`). Pad the name column to the longest repo name so all columns
align. If names are long, widen the box — the box width adapts to content.
- For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010"). - For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010").
- Role: "solo" if user is the only contributor, "team" if others contributed. - Role: "solo" if user is the only contributor, "team" if others contributed.
- Ship of the Week: the user's single highest-LOC PR across ALL repos. - Ship of the Week: the user's single highest-LOC PR across ALL repos.

View File

@ -856,12 +856,14 @@ stats — no team data, no project breakdowns. Designed to screenshot and post.
Use the user identity from `git config user.name` to filter all per-repo git data. Use the user identity from `git config user.name` to filter all per-repo git data.
Aggregate across all repos to compute personal totals. Aggregate across all repos to compute personal totals.
Render as a single visually clean block: Render as a single visually clean block. The box must be **wide enough to fit full
repo names** — never truncate project names. Use 80 characters inner width minimum.
Pad repo names to the longest repo name in the list so columns align cleanly.
``` ```
╔══════════════════════════════════════════════════════════════╗ ╔════════════════════════════════════════════════════════════════════════════════════
║ [USER NAME] — Week of [date] ║ ║ [USER NAME] — Week of [date] ║
╠══════════════════════════════════════════════════════════════╣ ╠════════════════════════════════════════════════════════════════════════════════════
║ ║ ║ ║
║ [N] commits across [M] projects ║ ║ [N] commits across [M] projects ║
║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net ║ ║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net ║
@ -869,10 +871,10 @@ Render as a single visually clean block:
║ [N]-day shipping streak 🔥 ║ ║ [N]-day shipping streak 🔥 ║
║ ║ ║ ║
║ PROJECTS ║ ║ PROJECTS ║
║ ──────────────────────────────────────────────────────────── ║ ║ ──────────────────────────────────────────────────────────────────────────────
║ [repo1] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ [repo2] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ [repo3] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ ... ║ ║ ... ║
║ ║ ║ ║
║ SHIP OF THE WEEK ║ ║ SHIP OF THE WEEK ║
@ -883,13 +885,16 @@ Render as a single visually clean block:
║ • [1-line description of second theme] ║ ║ • [1-line description of second theme] ║
║ • [1-line description of third theme] ║ ║ • [1-line description of third theme] ║
║ ║ ║ ║
║ Powered by gstack /retro global ║ Powered by gstack · github.com/garrytan/gstack
╚══════════════════════════════════════════════════════════════╝ ╚════════════════════════════════════════════════════════════════════════════════════
``` ```
**Rules for the personal card:** **Rules for the personal card:**
- Only show repos where the user has commits. Skip repos with 0 commits. - Only show repos where the user has commits. Skip repos with 0 commits.
- Sort repos by user's commit count descending. - Sort repos by user's commit count descending.
- **Never truncate repo names.** Use the full repo name (e.g., `analyze_transcripts`
not `analyze_trans`). Pad the name column to the longest repo name so all columns
align. If names are long, widen the box — the box width adapts to content.
- For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010"). - For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010").
- Role: "solo" if user is the only contributor, "team" if others contributed. - Role: "solo" if user is the only contributor, "team" if others contributed.
- Ship of the Week: the user's single highest-LOC PR across ALL repos. - Ship of the Week: the user's single highest-LOC PR across ALL repos.

View File

@ -617,12 +617,14 @@ stats — no team data, no project breakdowns. Designed to screenshot and post.
Use the user identity from `git config user.name` to filter all per-repo git data. Use the user identity from `git config user.name` to filter all per-repo git data.
Aggregate across all repos to compute personal totals. Aggregate across all repos to compute personal totals.
Render as a single visually clean block: Render as a single visually clean block. The box must be **wide enough to fit full
repo names** — never truncate project names. Use 80 characters inner width minimum.
Pad repo names to the longest repo name in the list so columns align cleanly.
``` ```
╔══════════════════════════════════════════════════════════════ ╔════════════════════════════════════════════════════════════════════════════════════
║ [USER NAME] — Week of [date] ║ ║ [USER NAME] — Week of [date] ║
╠══════════════════════════════════════════════════════════════ ╠════════════════════════════════════════════════════════════════════════════════════
║ ║ ║ ║
║ [N] commits across [M] projects ║ ║ [N] commits across [M] projects ║
║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net ║ ║ +[X]k LOC added · [Y]k LOC deleted · [Z]k net ║
@ -630,10 +632,10 @@ Render as a single visually clean block:
║ [N]-day shipping streak 🔥 ║ ║ [N]-day shipping streak 🔥 ║
║ ║ ║ ║
║ PROJECTS ║ ║ PROJECTS ║
║ ──────────────────────────────────────────────────────────── ║ ──────────────────────────────────────────────────────────────────────────────
║ [repo1] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ [repo2] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ [repo3] [N] commits +[X]k LOC [role: solo/team] ║ [repo_name_full] [N] commits +[X]k LOC [role: solo/team]
║ ... ║ ║ ... ║
║ ║ ║ ║
║ SHIP OF THE WEEK ║ ║ SHIP OF THE WEEK ║
@ -644,13 +646,16 @@ Render as a single visually clean block:
║ • [1-line description of second theme] ║ ║ • [1-line description of second theme] ║
║ • [1-line description of third theme] ║ ║ • [1-line description of third theme] ║
║ ║ ║ ║
║ Powered by gstack /retro global ║ Powered by gstack · github.com/garrytan/gstack
╚══════════════════════════════════════════════════════════════ ╚════════════════════════════════════════════════════════════════════════════════════
``` ```
**Rules for the personal card:** **Rules for the personal card:**
- Only show repos where the user has commits. Skip repos with 0 commits. - Only show repos where the user has commits. Skip repos with 0 commits.
- Sort repos by user's commit count descending. - Sort repos by user's commit count descending.
- **Never truncate repo names.** Use the full repo name (e.g., `analyze_transcripts`
not `analyze_trans`). Pad the name column to the longest repo name so all columns
align. If names are long, widen the box — the box width adapts to content.
- For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010"). - For LOC, use "k" formatting for thousands (e.g., "+64.0k" not "+64010").
- Role: "solo" if user is the only contributor, "team" if others contributed. - Role: "solo" if user is the only contributor, "team" if others contributed.
- Ship of the Week: the user's single highest-LOC PR across ALL repos. - Ship of the Week: the user's single highest-LOC PR across ALL repos.