php-agentic/View/Modal/Admin
darbs-claude 6ebd527204
Some checks failed
CI / PHP 8.4 (pull_request) Failing after 1m35s
CI / PHP 8.3 (pull_request) Failing after 1m46s
refactor: unify ApiKeyManager to use AgentApiKey model (#19)
Switch View/Modal/Admin/ApiKeyManager.php from Core\Api\Models\ApiKey
to Core\Mod\Agentic\Models\AgentApiKey and AgentApiKeyService, bringing
the workspace-owner admin UI into consistency with all other services.

Changes:
- Replace Core\Api\Models\ApiKey import with AgentApiKey + AgentApiKeyService
- Use AgentApiKeyService::create() for key generation
- Use AgentApiKey::forWorkspace() scoping in revokeKey() and render()
- Rename newKeyScopes → newKeyPermissions, toggleScope → togglePermission
- Expose availablePermissions() from AgentApiKey for the create form
- Update blade template: permissions field, getMaskedKey(), togglePermission,
  dynamic permission checkboxes from AgentApiKey::availablePermissions()
- Add tests/Feature/ApiKeyManagerTest.php with integration coverage
- Mark CQ-002 resolved in TODO.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-02-23 06:09:05 +00:00
..
ApiKeyManager.php refactor: unify ApiKeyManager to use AgentApiKey model (#19) 2026-02-23 06:09:05 +00:00
ApiKeys.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
Dashboard.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
PlanDetail.php refactor: rename namespace Core\Agentic to Core\Mod\Agentic 2026-01-27 16:12:58 +00:00
Plans.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
Playground.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
RequestLog.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
SessionDetail.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
Sessions.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
Templates.php refactor: update namespaces for L1/L2 package convention 2026-01-27 17:34:46 +00:00
ToolAnalytics.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00
ToolCalls.php chore: fix pint code style and add test config 2026-02-23 03:50:09 +00:00