Repository navigation
Restore missing template contracts that broke build-and-test assertions - #1
Draft
jerry-kay19 with Copilot wants to merge 2 commits into
Draft
jerry-kay19 with Copilot wants to merge 2 commits into
jerry-kay19 with Copilot wants to merge 2 commits into
Conversation
Co-authored-by: jerry-kay19 <260964975+jerry-kay19@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job 'build-and-test'
Restore missing template contracts that broke build-and-test assertions
Oct 12, 2026
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.
The
build-and-testworkflow was failing because recent template changes removed HTML/meta contracts relied on by server-render tests (homepage landmarks, OG/Twitter metadata, accessibility attributes, and share/toast hooks). This PR restores those contracts with minimal template-only changes.Metadata contract restoration (
base.html)config.BASE_URLwith request-root fallback to avoid context-dependent template failures.Homepage DOM contract restoration (
index.html)saved-projects-panelsaved-projects-listsaved-projects-countid="results-section"+ inlinestyle="display:none;"role="progressbar"aria-valuemin="0",aria-valuemax="100",aria-valuenow="0"Project detail/share contract restoration (
project.html)id="share-toast"placeholder used by share-related tests and UI hooks.Explore/profile compatibility adjustments
explore.html: normalized project card wrapper to include the exactproject-cardclass shape expected by pagination render assertions.profile.html: removed deprecated section copy/signatures while keeping an explicit Account Management section.{% set base_url = (config.BASE_URL | default(request.url_root.rstrip('/'), true)) %} <meta property="og:image" content="{{ base_url.rstrip('/') }}/static/og-banner.png" /> <meta property="og:url" content="{{ base_url.rstrip('/') }}{{ request.path }}" />