-
Notifications
You must be signed in to change notification settings - Fork 25
feat: add floating action button #1688
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds a new floating action button component to create emails, improving mobile UX by replacing the static "Write new Email" button with a floating action button that only appears on mobile devices.
Key changes:
- Created a reusable
OcFloatingActionButtoncomponent with action and menu modes - Moved the "Write new Email" button from
MailList.vuetoMailboxTree.vuefor desktop view - Added the floating action button to
MailList.vuefor mobile view
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
packages/web-app-mail/src/components/MailboxTree.vue |
Added "Write new Email" button for desktop view (hidden on mobile) |
packages/web-app-mail/src/components/MailList.vue |
Replaced static button with floating action button for mobile, removed old button implementation |
packages/design-system/src/components/index.ts |
Exported the new OcFloatingActionButton component |
packages/design-system/src/components/OcFloatingActionButton/OcFloatingActionButton.vue |
Implemented new floating action button component with action and menu modes |
packages/design-system/docs/components/OcFloatingActionButton/OcFloatingActionButton.md |
Added documentation with usage examples |
packages/design-system/docs/.vitepress/config.ts |
Added navigation entry for the new component documentation |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| class="md:hidden" | ||
| mode="action" | ||
| :aria-label="$gettext('Write new Email')" | ||
| :items="[{ to: { name: 'mail-create', query: { ...route.query, draftId: 'new' } } }]" |
Copilot
AI
Dec 1, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The floating action button items array is missing an icon property. In action mode, users may still benefit from seeing an icon. Consider adding icon: 'edit-box' to match the desktop button implementation.
| :items="[{ to: { name: 'mail-create', query: { ...route.query, draftId: 'new' } } }]" | |
| :items="[{ to: { name: 'mail-create', query: { ...route.query, draftId: 'new' } }, icon: 'edit-box' }]" |
packages/design-system/src/components/OcFloatingActionButton/OcFloatingActionButton.vue
Show resolved
Hide resolved
packages/design-system/src/components/OcFloatingActionButton/OcFloatingActionButton.vue
Show resolved
Hide resolved
packages/design-system/src/components/OcFloatingActionButton/OcFloatingActionButton.vue
Show resolved
Hide resolved
Co-authored-by: Jannik Stehle <50302941+JammingBen@users.noreply.github.com>
JammingBen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
Description
Related Issue
How Has This Been Tested?
Types of changes