Pin titanic to the top of the live Projects grid - #21
Merged
Conversation
The Projects grid is replaced client-side by the GitHub API top 9 sorted by stars; with 9 repos already at 1+ stars, a 0-star repo can never appear. Add a PINNED list in main.js that floats listed repos to the front of the grid regardless of star count, pin titanic, and move its static fallback card first to mirror the live order. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0134RyPcpFHf91sCa6WSv9MP
There was a problem hiding this comment.
Pull request overview
This PR ensures the titanic repository is visible at the top of the Projects grid on the live site by pinning it in the client-side GitHub API–driven sort, and aligning the static fallback ordering to match.
Changes:
- Add a
PINNEDrepo-name list and update the client-side sort to float pinned repos ahead of star-based ranking. - Reorder the static fallback
titanicproject card to appear first in the HTML grid.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
assets/js/main.js |
Introduces pinned-repo precedence in the GitHub API sorting so titanic appears in the top 9. |
index.html |
Moves the static fallback titanic card to the first position to mirror the live pinned ordering. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
228
to
230
| var d = b.stargazers_count - a.stargazers_count; | ||
| return d !== 0 ? d : (a.updated_at < b.updated_at ? 1 : -1); | ||
| }); |
dapiced
added a commit
that referenced
this pull request
Aug 24, 2026
Pin titanic to the top of the live Projects grid
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #20: the titanic card never showed on the live site because the Projects grid is replaced client-side by the GitHub API top 9 sorted by stars — and 9 repos already have 1+ stars, so a 0-star repo can never make the cut. The static card only renders when the API call fails.
Changes
assets/js/main.js: add aPINNEDlist of repo names that are floated to the front of the grid regardless of star count, and pintitanic. The rest of the sort (stars desc, then last updated) is unchanged.index.html: move the static fallback card fortitanicto the first position so the fallback mirrors the live order.node --checkpasses on the modified script.🤖 Generated with Claude Code
https://claude.ai/code/session_0134RyPcpFHf91sCa6WSv9MP
Generated by Claude Code