Skip to content

perf(home): trim track card payloads - #613

Merged
harlan-zw merged 1 commit into
mainfrom
perf/homepage-payload
Oct 10, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
perf/homepage-payload

Conversation

@harlan-zw

Copy link
Copy Markdown
Collaborator

🔗 Linked issue

Related to #610.

❓ Type of change

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

📚 Description

The homepage carries 70 unused Skill examples and author totals in its track data. Serialize only the card fields used by the grid, preserving track order, links, counts, and avatars.

Replaying the captured homepage payload removes 7,443 bytes of inline data, about 6.6% of its 113,329 bytes. The API response stays unchanged.

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

@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 10, 2026
@harlan-github-agent harlan-github-agent Bot added 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 10, 2026
@harlan-github-agent

harlan-github-agent Bot commented Oct 10, 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-10 11:46 UTC.

GitHub merged this pull request.

  • Logged (10/100): Input type annotation for the transform drifts from the actual API response shape; harmless today but unverified against the endpoint type. View code Optional follow-up: Derive the transform input type from the /api/clusters handler's response type (or a shared type) instead of redeclaring it inline.
    • Ask an agent to verify and fix this finding

62f2a03c-537e-4773-96b3-183053bd311f

Selected findings run after merge and open separate pull requests.

@harlan-zw

Copy link
Copy Markdown
Collaborator Author

🤖 Harlan Agent Kit Agent verification of this change.

Captured production data contains 14 tracks and 70 unused Skill examples. Reserializing that captured homepage data without examples and author totals saves 7,443 bytes. This replay measures serialized data; it does not establish an indexing cause.

Local server-rendered data retains all 14 track records and removes both unused fields. Desktop at 1440px and mobile at 390px each render the same 12 demand-ranked cards, with titles, links, counts, and author avatars. Clicking the Design card loads its exact track heading. No page errors occurred during the checked navigation.

Local browser checks used polling after the host reached its file-watcher limit. The task-owned server and named pages were closed afterward.

@harlan-github-agent harlan-github-agent Bot added harlan-agent-pending The automated Review is waiting on a gate for this head commit. and removed harlan-agent-review Pull request triage requires an adversarial Review. Adding this label manually always forces one. 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 10, 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-github-agent harlan-github-agent Bot added harlan-agent-ready The automated Review passed every gate on this head commit. and removed harlan-agent-pending The automated Review is waiting on a gate for this head commit. labels Oct 10, 2026
@harlan-zw
harlan-zw merged commit 46a321b into main Oct 10, 2026
8 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 10, 2026
@harlan-zw
harlan-zw deleted the perf/homepage-payload branch October 10, 2026 12:54
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