Skip to content

[codex] Add GitHub source link to site footer - #6

Merged
DavyMorgan merged 2 commits into
mainfrom
footer-github-link
Apr 12, 2026
Merged

[codex] Add GitHub source link to site footer#6
DavyMorgan merged 2 commits into
mainfrom
footer-github-link

Conversation

@DavyMorgan

Copy link
Copy Markdown
Collaborator

What changed

  • add a Source Code at GitHub link to the site footer
  • place it immediately after the existing CLI link, before the Polymarket attribution
  • add a regression test that checks the footer order and GitHub repo URL in public/index.html

Why

The repository is now public, so the site footer should provide a direct path to the source code.

Validation

  • /Users/yu_zheng/workspace/gp300/.venv/bin/pytest -q test_footer.py
  • /Users/yu_zheng/workspace/gp300/.venv/bin/pytest -q

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Apr 12, 2026

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
gp300 073076e Commit Preview URL

Branch Preview URL
Apr 12 2026, 07:09 PM

@DavyMorgan
DavyMorgan marked this pull request as ready for review April 12, 2026 19:02
Copilot AI review requested due to automatic review settings April 12, 2026 19:02

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a GitHub “Source Code” link to the web dashboard footer now that the repository is public, and introduces a regression test to enforce link presence and ordering.

Changes:

  • Inserted “Source Code at GitHub” link in public/index.html footer between the CLI and Polymarket attribution.
  • Added test_footer.py to verify footer ordering and presence of the GitHub repo URL.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
public/index.html Adds a GitHub source link to the footer, positioned after the CLI link.
test_footer.py Adds a regression test asserting footer ordering and that the GitHub URL appears in the HTML.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread test_footer.py
Comment on lines +7 to +10
cli_label = "CLI:"
github_label = "Source Code at "
github_link = 'href="https://github.com/y3zai/gp300/"'
polymarket_label = "Data from "

Copilot AI Apr 12, 2026

Copy link

Choose a reason for hiding this comment

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

The test hard-codes the GitHub URL with a trailing slash. Elsewhere (e.g., README) the canonical repo URL is written without the trailing slash, and both forms are valid; this makes the test more brittle than necessary. Consider normalizing the URL (no trailing slash) in both the HTML and test, or relaxing the assertion to accept either form (or parse the href value and compare after stripping a trailing '/').

Copilot uses AI. Check for mistakes.
Comment thread public/index.html
Comment on lines 401 to 403
CLI: <a href="https://pypi.org/project/gp300/" target="_blank" rel="noopener"><code>pip install gp300</code></a> &middot;
Source Code at <a href="https://github.com/y3zai/gp300/" target="_blank" rel="noopener">GitHub</a> &middot;
Data from <a href="https://polymarket.com" target="_blank" rel="noopener">Polymarket</a> &middot; Updated every 5 min

Copilot AI Apr 12, 2026

Copy link

Choose a reason for hiding this comment

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

This adds the GitHub repo link with a trailing slash in the href. The README and most references typically use the canonical form without a trailing slash; picking one canonical URL (and matching the regression test) will avoid unnecessary future churn.

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

@copilot review

Copilot AI commented Apr 12, 2026

Copy link
Copy Markdown

@copilot review

The previous review feedback about the trailing slash has already been addressed in commit 073076e — both public/index.html and test_footer.py now use the canonical URL https://github.com/y3zai/gp300 (no trailing slash). The regression test passes.

@DavyMorgan
DavyMorgan merged commit bce66b2 into main Apr 12, 2026
2 checks passed
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.

3 participants