Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(site): add AI task status to deployment banner#18919

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
devin-ai-integration wants to merge5 commits intomain
base:main
Choose a base branch
Loading
fromdevin/1752866567-enhance-ai-agent-status-reporting

Conversation

devin-ai-integration[bot]
Copy link

@devin-ai-integrationdevin-ai-integrationbot commentedJul 18, 2025
edited
Loading

feat(site): add AI task status to deployment banner

Summary

Adds AI task statistics display to the Coder homepage deployment banner, showing active, completed, and failed AI task counts. This implements both the backend API (/api/experimental/aitasks/stats) and frontend integration to surface AI agent activity to users.

Key Components:

  • Backend: New experimental API endpoint with Go struct definitions
  • Frontend: Integration with deployment banner, respectsCODER_HIDE_AI_TASKS configuration
  • UI: Clean display with tooltips and icons matching existing banner style

Review & Testing Checklist for Human

  • CRITICAL: Verify hardcoded mock data approach - Backend currently returns fixed values (3 active, 15 completed, 2 failed). Confirm this is acceptable for demo/testing purposes and understand timeline for real data integration
  • Test actual UI rendering - Load Coder dashboard and verify AI stats appear correctly in deployment banner with proper styling and tooltips
  • Verify configuration hiding works - Test that settingCODER_HIDE_AI_TASKS=true properly hides the AI stats section
  • Manual API testing - Hit/api/experimental/aitasks/stats directly to confirm endpoint works and returns expected JSON structure
  • Check TypeScript type generation - Verify CI properly generatesAITasksStatsResponse type (I manually added it due to local Go version issues)

Recommended Test Plan:

  1. Start local Coder instance and navigate to homepage
  2. Verify AI stats appear in deployment banner
  3. Test withCODER_HIDE_AI_TASKS=true to confirm hiding
  4. Check browser network tab for successful API calls
  5. Verify tooltips and responsive design work properly

Diagram

%%{ init : { "theme" : "default" }}%%graph TD    Backend["codersdk/aitasks.go<br/>AITasksStatsResponse struct"]:::major-edit    Handler["coderd/aitasks.go<br/>aiTasksStats handler"]:::major-edit      Routes["coderd/coderd.go<br/>Route registration"]:::minor-edit            API["site/src/api/api.ts<br/>getAITasksStats method"]:::major-edit    Query["site/src/api/queries/aitasks.ts<br/>Query helper"]:::major-edit    Banner["site/src/modules/dashboard/<br/>DeploymentBanner.tsx"]:::major-edit    BannerView["site/src/modules/dashboard/<br/>DeploymentBannerView.tsx"]:::major-edit    Types["site/src/api/typesGenerated.ts<br/>TypeScript types"]:::minor-edit        Backend --> Handler    Handler --> Routes    Backend --> Types    Types --> API    API --> Query      Query --> Banner    Banner --> BannerView        subgraph Legend        L1[Major Edit]:::major-edit        L2[Minor Edit]:::minor-edit          L3[Context/No Edit]:::context    endclassDef major-edit fill:#90EE90classDef minor-edit fill:#87CEEB  classDef context fill:#FFFFFF
Loading

Notes

  • Environment Issues: Local Go version (1.18) incompatible with project requirements (1.24), preventing full local testing and type generation
  • Mock Data: Backend uses hardcoded statistics for demonstration - needs real AI task tracking integration
  • Session Details: Implemented by@devin for@bpmct, session:https://app.devin.ai/sessions/0279d5b7f7d6495cadaf926f293e3465
  • CI Status: All technical checks passing except CLA (administrative issue)

- Add AITasksStatsResponse interface for AI task statistics- Create aiTasksStats query helper for fetching AI task data- Add getAITasksStats API method to fetch task statistics- Integrate AI task status display in DeploymentBannerView- Show active, completed, and failed AI task counts with icons- Respect hide_ai_tasks configuration setting- Follow existing deployment banner styling patternsCo-Authored-By: ben@coder.com <me@bpmct.net>
@devin-ai-integrationDevin.ai Integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

@github-actionsGitHub Actions
Copy link


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign ourContributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commentingrecheck in this Pull Request.Posted by theCLA Assistant Lite bot.

@devin-ai-integrationdevin-ai-integrationbot changed the titlefeat(site): Add AI task status to deployment bannerfeat(site): add AI task status to deployment bannerJul 18, 2025
devin-ai-integrationbotand others added4 commitsJuly 18, 2025 20:20
Co-Authored-By: ben@coder.com <me@bpmct.net>
- Add AITasksStatsResponse struct to codersdk/aitasks.go- Implement aiTasksStats handler in coderd/aitasks.go with mock data- Register /api/experimental/aitasks/stats route in coderd/coderd.go- Remove manual TypeScript type definition (will be auto-generated by CI)Co-Authored-By: ben@coder.com <me@bpmct.net>
- Fix unused receiver warning in aiTasksStats handler- Ensure AITasksStatsResponse type is properly exported- Apply code formatting fixesCo-Authored-By: ben@coder.com <me@bpmct.net>
- Reorder imports in DeploymentBanner.tsx per biome formatter- Resolves fmt CI check failureCo-Authored-By: ben@coder.com <me@bpmct.net>
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@aslilacaslilacAwaiting requested review from aslilacaslilac is a code owner

At least 1 approving review is required to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

0 participants

[8]ページ先頭

©2009-2025 Movatter.jp