Skip to content

v0.6.12-rc1#674

Merged
lbedner merged 1 commit intomainfrom
v0.6.12-rc1
May 5, 2026
Merged

v0.6.12-rc1#674
lbedner merged 1 commit intomainfrom
v0.6.12-rc1

Conversation

@lbedner
Copy link
Copy Markdown
Owner

@lbedner lbedner commented May 5, 2026

No description provided.

Copilot AI review requested due to automatic review settings May 5, 2026 02:50
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the copier project template for the v0.6.12-rc1 release, focusing on auth-enabled stacks: ensuring insights API tests work when endpoints are auth-protected, improving auth UX in the dashboard modals, and adding tooling/support for role management.

Changes:

  • Update insights/cache tests to send Authorization headers via a shared auth_headers fixture (no-op when auth isn’t included).
  • Add “first user becomes admin” behavior in UserService and introduce a CLI command to promote user roles, with accompanying i18n strings.
  • Refactor Auth dashboard modal tabs to always show a refresh action in error states.

Reviewed changes

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

Show a summary per file
File Description
aegis/templates/copier-aegis-project/{{ project_slug }}/tests/test_cache_integration.py Adds auth_headers usage for insights endpoint cache integration test.
aegis/templates/copier-aegis-project/{{ project_slug }}/tests/conftest.py.jinja Introduces admin_user + auth_headers fixtures (or no-op headers when auth absent).
aegis/templates/copier-aegis-project/{{ project_slug }}/tests/api/test_insights_endpoints.py Sends auth_headers for /api/v1/insights/all calls to support auth-protected deployments.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/services/auth/user_service.py.jinja Implements “first user becomes admin” + sets role on created/OAuth users.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/zh.py Adds translations for promote-role CLI messaging and options.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/i18n/locales/en.py Adds English strings for promote-role CLI messaging and options.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/core/config.py.jinja Sets AUTH_ENABLED default to true when auth service is included.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/components/frontend/dashboard/modals/auth_users_tab.py.jinja Refactors refresh row into a helper and includes refresh on error rendering.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/components/frontend/dashboard/modals/auth_orgs_tab.py.jinja Same refresh-row refactor for orgs tab; includes refresh on error rendering.
aegis/templates/copier-aegis-project/{{ project_slug }}/app/cli/auth.py.jinja Adds promote_user command and supporting role validation/messages.
aegis/templates/copier-aegis-project/{{ project_slug }}/.env.example.jinja Updates auth section with clearer guidance and conditional defaults.

Comment thread aegis/templates/copier-aegis-project/{{ project_slug }}/app/cli/auth.py.jinja Outdated
@lbedner lbedner merged commit 15da3b6 into main May 5, 2026
8 checks passed
@lbedner lbedner deleted the v0.6.12-rc1 branch May 5, 2026 03:21
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.

2 participants