Space: add branded metadata and polish#13
Merged
Conversation
Add custom social head metadata, lightweight brand SVG assets, and a tighter overview message for the Slipstream Lab Space. Cover the new metadata and asset behavior with focused tests.
Update the Slipstream Lab overview metric to reflect the current 593 passing tests after the metadata and asset polish changes.
Set the Space card thumbnail in README frontmatter and point Gradio's favicon_path at the branded SVG asset so the deployed Hugging Face Space uses the new brand assets through supported paths.
There was a problem hiding this comment.
Pull request overview
Adds branded metadata and assets to the Slipstream Lab Hugging Face Space, while tightening the Overview guidance and keeping UI “Passing tests” metrics aligned with the current suite.
Changes:
- Add branded SVG assets (social card + mark) and verify their presence via tests.
- Introduce reusable Space metadata helpers (
get_head_html,get_overview_markdown) and wire them into the Gradio app. - Update HF Space README frontmatter (thumbnail) and refresh displayed passing test count.
Reviewed changes
Copilot reviewed 4 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/test_hf_space_app_logic.py | Adds coverage for new head/overview helpers and ensures brand assets exist. |
| hf-space/assets/slipstream-social-card.svg | New OG/Twitter social preview card asset. |
| hf-space/assets/slipstream-mark.svg | New favicon/brand mark asset. |
| hf-space/app_logic.py | Adds Space/website constants, updates metrics, and introduces head/overview generators. |
| hf-space/app.py | Uses the new overview markdown helper and wires head + favicon path into Gradio launch. |
| hf-space/README.md | Adds Space thumbnail metadata pointing at the new social card asset. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
| INVALID_VECTORS = ROOT / "spec" / "conformance" / "invalid.jsonl" | ||
| SPACE_RAW_ASSET_BASE = "https://huggingface.co/spaces/anthonym21/slipcore/raw/main/assets" | ||
| SPACE_URL = "https://anthonym21-slipcore.hf.space/" | ||
| WEBSITE_URL = "https://slipstream.making-minds.ai" |
| <meta name="twitter:description" content="{description}" /> | ||
| <meta name="twitter:image" content="{SOCIAL_CARD_URL}" /> | ||
| <meta name="twitter:url" content="{SPACE_URL}" /> | ||
| <link rel="icon" type="image/svg+xml" href="{FAVICON_URL}" /> |
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.
Summary\n- add branded SVG assets for the Slipstream Lab Space\n- tighten the Overview guidance and keep the current passing test count in sync\n- wire the supported Hugging Face share thumbnail and Gradio favicon path\n\n## Validation\n- PYTHONPATH=src pytest tests -q\n- ruff check hf-space tests/test_hf_space_app_logic.py\n- python -m py_compile hf-space/app.py hf-space/app_logic.py\n- live Space runtime, README thumbnail, favicon, and app HTML smoke checks\n