Skip to content

Conversation

@AlexAndBear
Copy link
Contributor

@AlexAndBear AlexAndBear commented Dec 1, 2025

Description

image

Related Issue

How Has This Been Tested?

  • test environment:
  • test case 1:
  • test case 2:
  • ...

Types of changes

  • Bugfix
  • Enhancement (a change that doesn't break existing code or deployments)
  • Breaking change (a modification that affects current functionality)
  • Technical debt (addressing code that needs refactoring or improvements)
  • Tests (adding or improving tests)
  • Documentation (updates or additions to documentation)
  • Maintenance (like dependency updates or tooling adjustments)

@AlexAndBear AlexAndBear changed the title FAB feat: add floating action button Dec 1, 2025
@AlexAndBear AlexAndBear marked this pull request as ready for review December 1, 2025 08:35
Copilot AI review requested due to automatic review settings December 1, 2025 08:35
Copy link
Contributor

Copilot AI left a 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 OcFloatingActionButton component with action and menu modes
  • Moved the "Write new Email" button from MailList.vue to MailboxTree.vue for desktop view
  • Added the floating action button to MailList.vue for 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' } } }]"
Copy link

Copilot AI Dec 1, 2025

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.

Suggested change
:items="[{ to: { name: 'mail-create', query: { ...route.query, draftId: 'new' } } }]"
:items="[{ to: { name: 'mail-create', query: { ...route.query, draftId: 'new' } }, icon: 'edit-box' }]"

Copilot uses AI. Check for mistakes.
@AlexAndBear AlexAndBear requested a review from kulmann December 1, 2025 08:56
Co-authored-by: Jannik Stehle <50302941+JammingBen@users.noreply.github.com>
Copy link
Contributor

@JammingBen JammingBen left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@AlexAndBear AlexAndBear merged commit 20347cd into main Dec 1, 2025
28 checks passed
@AlexAndBear AlexAndBear deleted the issues/1475 branch December 1, 2025 13:07
openclouders pushed a commit that referenced this pull request Dec 1, 2025
@openclouders openclouders mentioned this pull request Dec 1, 2025
1 task
@openclouders openclouders mentioned this pull request Dec 15, 2025
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mail: Floating action button

3 participants