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
+
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
~
nav@639
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:067f0c5ced435910454c754bc37e8d203f8e7aa104569f7444039df4ca3545ce --body "your comment"
No comments yet. Be the first to start the discussion.