Skip to content

feat: Content Agent usage dashboard page#24

Merged
recoup-coding-agent merged 4 commits intomainfrom
feature/content-agent-dashboard
Mar 26, 2026
Merged

feat: Content Agent usage dashboard page#24
recoup-coding-agent merged 4 commits intomainfrom
feature/content-agent-dashboard

Conversation

@recoup-coding-agent
Copy link
Copy Markdown
Collaborator

@recoup-coding-agent recoup-coding-agent commented Mar 26, 2026

Summary

  • Adds /content admin page displaying Content Agent Slack tag usage data
  • Integrates with GET /api/admins/content/slack endpoint (REC-16)
  • Includes bar chart (tags over time), data table (user, timestamp, prompt, video links), and period selector
  • Follows existing admin page patterns (Privy Logins page)
  • Adds navigation link to admin home dashboard

Test plan

  • Visit /content page and verify table renders with correct columns
  • Verify bar chart displays tags over time
  • Test period selector filters data correctly
  • Verify video links are clickable and open in new tab
  • Verify loading/error/empty states work correctly
  • Verify nav button appears on home dashboard

Generated with Claude Code

- New /content route with table, bar chart, and period selector
- Integrates with GET /api/admins/content/slack endpoint
- Displays user, timestamp, prompt, and video link columns
- Follows existing admin page patterns (Privy Logins)
- Adds nav link to admin home dashboard

Co-Authored-By: Paperclip <noreply@paperclip.ing>
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
admin Ready Ready Preview Mar 26, 2026 8:17pm

Request Review

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 26, 2026

Warning

Rate limit exceeded

@sweetmantech has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 40 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: cddf1a1a-323c-465c-97d4-fe4aa485d469

📥 Commits

Reviewing files that changed from the base of the PR and between 7939492 and ab6b635.

📒 Files selected for processing (9)
  • app/content/page.tsx
  • components/ContentSlack/ContentSlackPage.tsx
  • components/ContentSlack/ContentSlackStats.tsx
  • components/ContentSlack/ContentSlackTable.tsx
  • components/ContentSlack/contentSlackColumns.tsx
  • components/Home/AdminDashboard.tsx
  • hooks/useContentSlackTags.ts
  • lib/recoup/fetchContentSlackTags.ts
  • types/contentSlack.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/content-agent-dashboard

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

- Keep both coding and content nav buttons from merge
- Rename total_video_links → total_videos
- Rename tags_with_video_links → tags_with_videos

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DRY - Why isn't this using the shared chart component like the other admin pages?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DRY - why recreate this component instead of using existing period selector components?

count: number;
};

export function getTagsByDate(tags: ContentSlackTag[]): TagsByDatePoint[] {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

DRY - How is this different from the existing lib for the coding agent?

Replace ContentSlackChart, ContentSlackPeriodSelector, and
contentSlack/getTagsByDate with shared AdminLineChart, PeriodSelector,
and coding-agent/getTagsByDate. Use AdminPeriod type throughout.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Match the coding agent table by displaying the Slack profile picture
next to the user name in the Content Agent table.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@recoup-coding-agent recoup-coding-agent merged commit b425199 into main Mar 26, 2026
3 checks passed
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