Skip to content

feat(classroom): add tests, nil guards, and topic filter#73

Merged
steipete merged 4 commits intoopenclaw:mainfrom
salmonumbrella:salmonumbrella/issue-71-classroom
Jan 17, 2026
Merged

feat(classroom): add tests, nil guards, and topic filter#73
steipete merged 4 commits intoopenclaw:mainfrom
salmonumbrella:salmonumbrella/issue-71-classroom

Conversation

@salmonumbrella
Copy link
Copy Markdown
Contributor

Summary

Addresses code review feedback for issue #71 (Classroom API support):

  • Add comprehensive unit tests for classroom helper functions (612 lines)
  • Add profileEmail() helper for nil-safe email extraction
  • Fix nil pointer guards for Profile/GuardianProfile access (12 locations)
  • Add --topic filter for coursework and materials list commands
  • Pre-allocate filtered slices for minor performance optimization

Closes #71

Test Plan

  • All existing tests pass
  • New helper tests pass (12 test functions, 49 subtests)
  • Lint passes (0 issues)
  • Build succeeds

🤖 Generated with Claude Code

@salmonumbrella salmonumbrella force-pushed the salmonumbrella/issue-71-classroom branch from a44330b to 24d2469 Compare January 14, 2026 02:06
@manascb1344
Copy link
Copy Markdown

Can we have more test cases, so it covers all features

@salmonumbrella
Copy link
Copy Markdown
Contributor Author

Added a more comprehensive Classroom command test suite (JSON coverage, topic filters, validation errors). Thanks for the nudge on expanding coverage!

salmonumbrella and others added 4 commits January 17, 2026 01:46
- Add clickable account cards with pointer cursor
- Add "Permissions" button on hover to trigger re-auth
- Add /auth/upgrade endpoint with force-consent and login_hint
- Add service icons for classroom, groups, docs, keep
- Show all services on success page with missing ones greyed out

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add confirmDestructive() to leave command for consistency with other
  destructive operations
- Add SYNC comments to shared CSS in HTML templates
- Add tests for /auth/upgrade endpoint (success, missing email, creds error)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@steipete steipete force-pushed the salmonumbrella/issue-71-classroom branch from 5483ee2 to f5f33ca Compare January 17, 2026 01:57
@steipete steipete merged commit 8c95b56 into openclaw:main Jan 17, 2026
4 checks passed
@steipete
Copy link
Copy Markdown
Collaborator

Landed via temp rebase onto main.\n\n- Gate: pnpm lint && pnpm build && pnpm test (fails: no package.json), make lint, make test\n- Land commit: f5f33ca\n- Merge commit: 8c95b56\n\nThanks @salmonumbrella!

klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
klodr pushed a commit to klodr/gogcli that referenced this pull request Apr 22, 2026
…ue-71-classroom

feat(classroom): add tests, nil guards, and topic filter
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.

feat: Google Classroom support

3 participants