feat(copilot): move drawer trigger into the app header #57

Merged
janpeter merged 1 commit from claude/copilot-header-trigger into main 2026-06-19 15:49:46 +02:00
Owner

Summary

Moves the scrum4me-copilot drawer trigger into the app header so it's a discoverable entry point, instead of rendering at the bottom of the page.

  • S4MCopilotDrawer is now mounted in the header's right-side group (next to UserMenu) in src/app/(app)/layout.tsx, instead of after <main>.
  • The kit's built-in trigger button is position: relative, so where it's mounted is where it renders — it now sits top-right with the user menu. The overlay/panel are fixed, so open/close behavior is unchanged.
  • It is intentionally NOT a MAIN_NAV_ITEMS link — the drawer self-mounts its own trigger (with an open-questions badge), matching the DigiPlein integration.

Test plan

  • npm run build green; /api/s4m/[...path] route intact
  • After redeploy on max2: the copilot trigger appears in the top-right header (next to the user menu); clicking it opens the drawer (Chat/Docs/Ideas/Jobs)

🤖 Generated with Claude Code

## Summary Moves the scrum4me-copilot drawer trigger into the app header so it's a discoverable entry point, instead of rendering at the bottom of the page. - `S4MCopilotDrawer` is now mounted in the header's right-side group (next to `UserMenu`) in `src/app/(app)/layout.tsx`, instead of after `<main>`. - The kit's built-in trigger button is `position: relative`, so where it's mounted is where it renders — it now sits top-right with the user menu. The overlay/panel are `fixed`, so open/close behavior is unchanged. - It is intentionally NOT a `MAIN_NAV_ITEMS` link — the drawer self-mounts its own trigger (with an open-questions badge), matching the DigiPlein integration. ## Test plan - [x] `npm run build` green; `/api/s4m/[...path]` route intact - [ ] After redeploy on max2: the copilot trigger appears in the top-right header (next to the user menu); clicking it opens the drawer (Chat/Docs/Ideas/Jobs) 🤖 Generated with [Claude Code](https://claude.com/claude-code)
feat(copilot): move the copilot drawer trigger into the app header
Some checks failed
CI / docker-build (pull_request) Failing after 2s
d14fcc056e
Mount S4MCopilotDrawer in the header's right-side group (next to UserMenu)
instead of after <main>, so its built-in trigger button sits top-right with
the user menu rather than at the bottom of the page. The drawer overlay/panel
are fixed-positioned, so behavior is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/Media-Organizer!57
No description provided.