gabriel / musehub public
feat BREAKING task/generic-domain #1 / 1
AI Agent gabriel · 145 days ago · May 1, 2026 · Diff

feat: generic domain as first-class explicit value for repos

- Add GENERIC_DOMAIN = 'generic' constant to musehub_repository - Add domain: str = 'generic' field to RepoResponse (defaults to generic) - _to_repo_response accepts optional domain kwarg, defaults to GENERIC_DOMAIN - _build_repos_out falls back to 'generic' instead of '' when domain_id is None - profile.html: add {% elif repo.domain == 'generic' %} chip with file SVG icon (#64748b slate color, data-domain='generic' attr for testability) - 10 TDD tests covering constant, model field, service, template, and API surface

sha256:067f0c5ced435910454c754bc37e8d203f8e7aa104569f7444039df4ca3545ce sha
+18 ~14 symbols
sha256:5aa0d5e94442341eca2bba6a0256251950c5a20c3e5a75c998e68a6fd1a0b801 snapshot
+18
symbols added
~14
symbols modified
0
dead code introduced
Semantic Changes 32 symbols
~ tests/test_generic_domain.py .py 17 symbols added
+ _OWNER variable variable _OWNER L28–28
+ ASGITransport import import ASGITransport L18–18
+ AsyncClient import import AsyncClient L18–18
+ AsyncSession import import AsyncSession L19–19
+ annotations import import annotations L15–15
+ app import import app L21–21
+ pytest import import pytest L17–17
+ test_create_repo_api_empty_domain_returns_generic function async_function test_create_repo_api_empty_domain_returns_generic L291–298
+ test_create_repo_api_omitting_domain_returns_generic function async_function test_create_repo_api_omitting_domain_returns_generic L280–287
+ test_create_repo_empty_domain_returns_generic function async_function test_create_repo_empty_domain_returns_generic L118–132
+ test_create_repo_no_domain_returns_generic function async_function test_create_repo_no_domain_returns_generic L101–114
+ test_generic_domain_constant_exported function function test_generic_domain_constant_exported L36–38
+ test_profile_chip_generic_domain_has_distinct_icon function async_function test_profile_chip_generic_domain_has_distinct_icon L228–271
+ test_profile_html_no_domain_id_shows_generic_chip function async_function test_profile_html_no_domain_id_shows_generic_chip L141–173
+ test_profile_html_with_domain_id_does_not_show_generic function async_function test_profile_html_with_domain_id_does_not_show_generic L177–219
+ test_repo_response_domain_set_explicitly function function test_repo_response_domain_set_explicitly L70–92
+ test_repo_response_has_domain_field function function test_repo_response_has_domain_field L46–67
~ musehub/models/musehub.py .py 1 symbol modified
~ musehub/services/musehub_repository.py .py 1 symbol added, 1 symbol modified
+ GENERIC_DOMAIN variable variable GENERIC_DOMAIN L25–25
← Older Oldest on task/generic-domain
All commits
Newer → Latest on task/generic-domain

0 comments

No comments yet. Be the first to start the discussion.

To add a comment, use the Muse CLI: muse hub commit comment sha256:067f0c5ced435910454c754bc37e8d203f8e7aa104569f7444039df4ca3545ce --body "your comment"