refactor(mail): extract gmail query builder + concurrent agent updates#535
refactor(mail): extract gmail query builder + concurrent agent updates#535
Conversation
✅ Deploy Preview for agent-native-starter canceled.
|
This comment has been minimized.
This comment has been minimized.
…e RLS debug script
✅ Deploy Preview for agent-native-scheduling ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for agent-native-voice ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for agent-native-meeting-notes ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for agent-native-design ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
… chat-running broadcast on send
There was a problem hiding this comment.
Builder reviewed your changes — looks good ✅
Review Details
Code Review Summary — PR #535 (Final Incremental Update)
Reviewed latest 2 new commits. All code remains production-ready with no issues detected.
Latest Changes (New Commits)
Design Template:
- ✅ New
export-coding-handoffaction for creating tokenized handoff URLs for external agents - ✅ Access control: Uses
assertAccess("design", id, "viewer")to validate access - ✅ Security: Generates short-lived tokens (7-day TTL via
signShortLivedToken) - ✅ Proper error handling: Throws if design has no files to hand off
- ✅ Marked
readOnly: true(no mutations)
Slides Template (Index.tsx):
- ✅ Design system selection UI in new deck prompt with proper filtering
- ✅ useEffect dependencies now correctly scoped to
defaultSystem?.id+designSystems.length - ✅ Agent context expanded with design system guidance when deck is linked
Code Quality:
- ✅ No unscoped database queries
- ✅ Proper access control validation
- ✅ Type-safe schema usage
- ✅ All previously reviewed patterns maintained
Summary of Full PR
Mail Template:
- Gmail query builder extraction (correct logic, comprehensive tests)
- External refresh signal for cache bypass
- Event listener debouncing with proper cleanup
Slides Template:
- Generation state management (pure functions, well-tested)
- Design system deck linking (proper access control)
- Agent work indicator component (event-driven, clean lifecycle)
- Improved new deck UX with design system selection
Core Framework:
- Chat running event broadcasting (both true and false transitions)
- Agent work tracking available globally
Design Template:
- New coding handoff export action for external agent integration
Risk Assessment
Standard Risk — All changes:
- Are additive (no breaking changes)
- Have proper access control
- Include comprehensive test coverage
- Follow established patterns
- No database mutations issues
No blocking issues. PR is ready to merge pending CI validation.
🧪 Browser testing: Skipped — dev server infrastructure unavailable. Code is low-risk refactoring and feature enhancements with unit tests.
✅ Deploy Preview for nutritrack-daily-calories canceled.
|
✅ Deploy Preview for agent-native-dispatch canceled.
|
✅ Deploy Preview for agent-native-calendar canceled.
|
✅ Deploy Preview for agent-native-issues canceled.
|
✅ Deploy Preview for agent-native-macros canceled.
|
✅ Deploy Preview for agent-native-slides canceled.
|
✅ Deploy Preview for agent-native-recruiting canceled.
|
Summary
buildGmailQueryinto sharedserver/lib/gmail-query.tswith unit testsTest plan