Skip to content

feat(weekly): draw the braille spark on email trending rows - #447

Merged
harlan-zw merged 1 commit into
mainfrom
feat/email-trending-spark
Oct 6, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
feat/email-trending-spark

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #431

❓ Type of change

  • 📖 Documentation
  • 🐞 Bug fix
  • 👌 Enhancement
  • ✨ New feature
  • 🧹 Chore
  • ⚠️ Breaking change

📚 Description

The weekly email's trending rows said how many accounts mentioned a Skill, but not when. The board has drawn the braille spark since #431, and DESIGN.md says the spark marks the email's trending section too.

Each trending row now shows seven days of mentions beside its title, followed by the count, in both the HTML and plain-text parts. It reuses shared/braille-spark.ts and the mentionsByDay that loadTrendingSkills already returns, carried on the named and named-and-stars reasons. Star surge rows, filler rows, and rows whose posts are all older than seven days show no spark.

Two choices differ from the board:

  • The bars stay stone. The email spends its rose on the button and the footer rule, so a rose "today" cell on every row would break the one-rose budget.
  • The bars are hidden from screen readers. An aria-label carries the count and the per-day numbers. The font stack names a braille face per platform: Apple Braille, Segoe UI Symbol, Noto Sans Symbols 2, then DejaVu Sans Mono.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

DESIGN.md says the braille spark marks the email's trending section, as
it does on the board since #431. The email still showed counts only, so a
reader could not tell a burst of posts on one day from a steady week.
@harlan-zw harlan-zw added the harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. label Oct 6, 2026
@harlan-zw

Copy link
Copy Markdown
Collaborator Author

Agent check, since CI cannot cover it:

  • Rendered the weekly from the live /api/feed/trending rows in headless Chromium, light and dark, at 640px and 390px. Each named row shows the spark and count on the title line; the filler row shows none.
  • Empty days draw the faint track cell in HTML and the blank cell in plain text, for example ⣀⣿⣀⠀⣀⠀⣶ 8 mentions for impeccable.
  • Computed font family on the bars is the braille stack. No email was sent.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. harlan-agent-running An Agent holds a Task on this issue or pull request right now. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. labels Oct 6, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🤖 MERGED

Harlan Agent Kit posted this automated review. It is not Harlan's personal review or approval. AI open source policy. Last updated: 2026-10-06 02:44 UTC.

GitHub merged this pull request.

  • Logged (20/100): The email spark draws today in stone while DESIGN.md still specifies today in rose for the spark, leaving the doc describing a component the email no longer matches. View code
    • Ask an agent to verify and fix this finding

c1099435-7cb3-4776-b334-38e4157f975e

Selected findings run after merge and open separate pull requests.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-running An Agent holds a Task on this issue or pull request right now. harlan-agent-review-required Pull request triage requires an adversarial Review for this head commit. labels Oct 6, 2026

@harlan-github-agent harlan-github-agent Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Harlan Agent Kit posted this automated review. AI open source policy.

Automated Review: READY.

Read the Review results

@harlan-zw
harlan-zw merged commit 33d9e7e into main Oct 6, 2026
7 checks passed
@harlan-github-agent harlan-github-agent Bot removed the harlan-agent-ready The automated Review passed every gate on this head commit. label Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant