Skip to content
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

feat: add availability action to the contacts menu #6502

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

st3iny
Copy link
Member

@st3iny st3iny commented Nov 19, 2024

Part of nextcloud/server#44776

Requires nextcloud/server#49375 and nextcloud-libraries/nextcloud-vue#6238

Add a new action to the contacts menu to show the user's availability. The plan is to reuse the free-busy modal for this.

TODO

  • Merge related pulls
  • Come up with a better icon (currently the clock icon)
  • Actually implement the modal (currently only a placeholder)
  • Version gate the feature to prevent unnecessary JS loading.
  • Initialize timezone, locale and settings

Screencasts

Avatar menu integration (from Talk)

2024-11-27.14-33-53.mp4

Contacts Menu integration (everywhere)

2024-11-27.14-35-29.mp4

@st3iny st3iny added 2. developing Work in progress enhancement New feature request labels Nov 19, 2024
@st3iny st3iny self-assigned this Nov 19, 2024
@st3iny st3iny added the Feature: Integration An integration with another app in the ecosystem label Nov 19, 2024
Copy link

codecov bot commented Nov 19, 2024

Codecov Report

Attention: Patch coverage is 0% with 70 lines in your changes missing coverage. Please review.

Project coverage is 23.16%. Comparing base (492beb5) to head (45244b2).
Report is 16 commits behind head on main.

Files with missing lines Patch % Lines
src/views/ContactsMenuAvailability.vue 0.00% 41 Missing ⚠️
src/contactsMenu.js 0.00% 29 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##               main    #6502      +/-   ##
============================================
- Coverage     23.46%   23.16%   -0.31%     
- Complexity      453      456       +3     
============================================
  Files           247      250       +3     
  Lines         11728    11864     +136     
  Branches       2212     2255      +43     
============================================
- Hits           2752     2748       -4     
- Misses         8656     8792     +136     
- Partials        320      324       +4     
Flag Coverage Δ
javascript 14.82% <0.00%> (-0.21%) ⬇️
php 59.13% <ø> (-0.24%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@st3iny st3iny marked this pull request as ready for review November 26, 2024 20:46
@st3iny st3iny added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 26, 2024
Copy link
Member

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

So far, so good 🙏

}

private function addContactsMenuScript(ContainerInterface $container): void {
// ServerVersion was added in 31, but we don't care about older versions anyway
Copy link
Member

Choose a reason for hiding this comment

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

Psalm is not happy, tho

Copy link
Member Author

@st3iny st3iny Nov 27, 2024

Choose a reason for hiding this comment

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

But I already added a try catch around the container query 😨

I'll add it to the baseline for Nextcloud stable30 ...

EDIT: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature request Feature: Integration An integration with another app in the ecosystem
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants