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: use-primary-by-default-overlay #11935

Merged
merged 2 commits into from
Oct 19, 2023

Conversation

sean-brydon
Copy link
Member

@sean-brydon sean-brydon commented Oct 17, 2023

Select primary calendar item by default in overlay calendar

Loom: https://www.loom.com/share/dc943ff5c1a64fd5a40acf96bec7e1a2

@vercel
Copy link

vercel bot commented Oct 17, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 8:36am
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 8:36am
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 8:36am
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 8:36am
qa 🔄 Building (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 8:36am
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2023 8:36am
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Oct 19, 2023 8:36am

@sean-brydon
Copy link
Member Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2023

Thank you for following the naming conventions! 🙏 Feel free to join our discord and post your PR link to collect XP and win prizes!

@github-actions
Copy link
Contributor

github-actions bot commented Oct 17, 2023

📦 Next.js Bundle Analysis for @calcom/web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@deploysentinel
Copy link

deploysentinel bot commented Oct 17, 2023

Current Playwright Test Results Summary

✅ 162 Passing - ⚠️ 5 Flaky

Run may still be in progress, this comment will be updated as current testing workflow or job completes...

(Last updated on 10/19/2023 08:37:45am UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: f346a86

Started: 10/19/2023 08:35:36am UTC

⚠️ Flakes

📄   apps/web/playwright/event-types.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Event Types tests user Different Locations Tests can add Attendee Phone Number location and book with it
Retry 1Initial Attempt
2.43% (7) 7 / 288 runs
failed over last 7 days
2.08% (6) 6 / 288 runs
flaked over last 7 days

📄   apps/web/playwright/webhook.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
FORM_SUBMITTED on submitting team form, triggers team webhook
Retry 1Initial Attempt
1.07% (3) 3 / 281 runs
failed over last 7 days
8.90% (25) 25 / 281 runs
flaked over last 7 days

📄   apps/web/playwright/profile.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Teams Profile page is loaded for users in Organization
Retry 1Initial Attempt
0.71% (2) 2 / 281 runs
failed over last 7 days
29.89% (84) 84 / 281 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 2 Flakes

Top 1 Common Error Messages

null

2 Test Cases Affected

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should open embed iframe on click - Configured with light theme
Retry 1Initial Attempt
3.41% (10) 10 / 293 runs
failed over last 7 days
36.18% (106) 106 / 293 runs
flaked over last 7 days
Popup Tests should be able to reschedule
Retry 2Retry 1Initial Attempt
8.22% (24) 24 / 292 runs
failed over last 7 days
90.07% (263) 263 / 292 runs
flaked over last 7 days

View Detailed Build Results


@sean-brydon sean-brydon changed the title feat/use-primary-by-default-overlay feat: use-primary-by-default-overlay Oct 17, 2023
@sean-brydon sean-brydon marked this pull request as ready for review October 17, 2023 09:57
Comment on lines +61 to +73
if (data?.connectedCalendars && set.size === 0 && !initalised) {
data?.connectedCalendars.forEach((item) => {
item.calendars?.forEach((cal) => {
const id = { credentialId: item.credentialId, externalId: cal.externalId };
if (cal.primary) {
toggleValue(id);
}
});
});
setInitalised(true);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [data, hasItem, set, initalised]);
Copy link
Member Author

Choose a reason for hiding this comment

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

We have to use initialised here to ensure this only runs ONCE after the primary has been selected - allowing users to deselect the calendar if they wish

@sean-brydon sean-brydon force-pushed the 10-17-feat/use-primary-by-default-overlay branch from 69a6b04 to 2f4b6f6 Compare October 17, 2023 10:00
@PeerRich PeerRich requested review from a team and hariombalhara October 17, 2023 20:41
@PeerRich PeerRich added the Medium priority Created by Linear-GitHub Sync label Oct 17, 2023
@github-actions github-actions bot added the 🚨 merge conflict This PR has a merge conflict that has to be addressed label Oct 18, 2023
Copy link
Contributor

@Udit-takkar Udit-takkar left a comment

Choose a reason for hiding this comment

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

LGTM. Tested and works as expected

@Udit-takkar Udit-takkar merged commit 6b6d3d9 into main Oct 19, 2023
@Udit-takkar Udit-takkar deleted the 10-17-feat/use-primary-by-default-overlay branch October 19, 2023 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core area: core, team members only Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants