Skip to content

fix: Org profile slug [CAL-2252]#10538

Merged
leog merged 5 commits intomainfrom
fix/org-profile-slug
Aug 11, 2023
Merged

fix: Org profile slug [CAL-2252]#10538
leog merged 5 commits intomainfrom
fix/org-profile-slug

Conversation

@leog
Copy link
Copy Markdown
Contributor

@leog leog commented Aug 2, 2023

What does this PR do?

Org slug could be undefined if it's an unpublished org, relying on metadata.requestedSlug as a fallback.

Fixes #10371

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How should this be tested?

Having orgs enabled and creating one without paying for subscription will produce an unpublished org. Going to the profile page fo that unpublished org should show the correct name and slug for the org.

@leog leog requested a review from a team August 2, 2023 15:36
@leog leog self-assigned this Aug 2, 2023
@linear
Copy link
Copy Markdown

linear bot commented Aug 2, 2023

CAL-2252 Team name is empty

Captura de pantalla 2023-07-25 a las 15.19.15.png

It very often doesn't load any of the data here

@vercel
Copy link
Copy Markdown

vercel bot commented Aug 2, 2023

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

Name Status Preview Comments Updated (UTC)
api ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 11:52pm
cal-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 11:52pm
dev ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 11:52pm
ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 11, 2023 11:52pm
2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Aug 11, 2023 11:52pm
qa ⬜️ Ignored (Inspect) Visit Preview Aug 11, 2023 11:52pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 2, 2023

Thank you for following the naming conventions! 🙏

@github-actions github-actions bot added teams area: teams, round robin, collective, managed event-types 🐛 bug Something isn't working labels Aug 2, 2023
router.push(`${WEBAPP_URL}/teams`);
},
});

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unused code

@zomars zomars added the core area: core, team members only label Aug 2, 2023
function deleteTeam() {
if (currentOrganisation?.id) deleteTeamMutation.mutate({ teamId: currentOrganisation.id });
}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Unused code

if (org) {
form.setValue("name", org.name || "");
form.setValue("slug", org.slug || "");
form.setValue("slug", org.slug || org.metadata?.requestedSlug || "");
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also rely on metadata.requestedSlug for unpublished orgs

disabled
addOnSuffix={`.${subdomainSuffix()}`}
/>
</div>
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Grabbing form value from setted value after trpc returns org

accepted: membership?.accepted,
},
...membership?.team,
metadata,
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Providing the parsed metadata to access requestedSlug

@alwaysmeticulous
Copy link
Copy Markdown

alwaysmeticulous bot commented Aug 2, 2023

🤖 Meticulous spotted visual differences in 62 of 137 screens tested: view and approve differences detected.

Last updated for commit d968f32. This comment will update as new commits are pushed.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Aug 2, 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
Copy Markdown

deploysentinel bot commented Aug 2, 2023

Current Playwright Test Results Summary

✅ 116 Passing - ⚠️ 4 Flaky

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

(Last updated on 08/11/2023 11:56:38pm UTC)

Run Details

Running Workflow PR Update on Github Actions

Commit: d968f32

Started: 08/11/2023 11:55:14pm UTC

⚠️ Flakes

📄   apps/web/playwright/booking-pages.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
pro user can reschedule a booking
Retry 1Initial Attempt
2.41% (8) 8 / 332 runs
failed over last 7 days
6.93% (23) 23 / 332 runs
flaked over last 7 days

📄   apps/web/playwright/booking-seats.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Booking with Seats User can create a seated event (2 seats as example)
Retry 1Initial Attempt
0% (0) 0 / 322 runs
failed over last 7 days
0.62% (2) 2 / 322 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 can submit a form and get a submission event
Retry 1Initial Attempt
2.50% (8) 8 / 320 runs
failed over last 7 days
27.50% (88) 88 / 320 runs
flaked over last 7 days

📄   packages/embeds/embed-core/playwright/tests/action-based.e2e.ts • 1 Flake

Test Case Results

Test Case Last 7 days Failures Last 7 days Flakes
Popup Tests should be able to reschedule
Retry 1Initial Attempt
4.88% (16) 16 / 328 runs
failed over last 7 days
95.12% (312) 312 / 328 runs
flaked over last 7 days

View Detailed Build Results


Copy link
Copy Markdown
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.

Your changes look fine but i am not able to create a new team after creating a org.

I get 404 at this step

Screenshot 2023-08-03 at 2 31 51 PM

and this team's profile page just keeps loading

@leog leog added the Low priority Created by Linear-GitHub Sync label Aug 3, 2023
@leog
Copy link
Copy Markdown
Contributor Author

leog commented Aug 7, 2023

Your changes look fine but i am not able to create a new team after creating a org.
and this team's profile page just keeps loading

Thanks @Udit-takkar. Please try again, the fix for that was pushed in a different PR that is merged now.

@leog leog requested a review from Udit-takkar August 7, 2023 14:20
Copy link
Copy Markdown
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.

@leog this works fine but as a user i am confused if i do not publish a team then it still shown in /settings as a normal team and how do i publish it?

@leog
Copy link
Copy Markdown
Contributor Author

leog commented Aug 11, 2023

@leog this works fine but as a user i am confused if i do not publish a team then it still shown in /settings as a normal team and how do i publish it?

We have banners to ask the user to upgrade in order to use either teams or organizations, the thing is that locally, we have that turned off. If you want to check it, search the constant IS_TEAM_BILLING_ENABLED and make it true 😉

Copy link
Copy Markdown
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

@leog leog enabled auto-merge (squash) August 11, 2023 18:24
Copy link
Copy Markdown
Contributor

@zomars zomars left a comment

Choose a reason for hiding this comment

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

LGTM

@leog leog merged commit 268ab88 into main Aug 11, 2023
@leog leog deleted the fix/org-profile-slug branch August 11, 2023 23:57
sean-brydon pushed a commit that referenced this pull request Aug 14, 2023
sean-brydon added a commit that referenced this pull request Aug 18, 2023
* Init + get timezone + offset data agh

* Add 12/24h mode - style correctly

* User users timezone + working hours. Still some stuff to figure out

* Multiple working hours

* move calc to once per day

* Demo with two users and differnt timezones

* availabillity control tab via search params

* WIP hover overlay

* THIS WORKS ISH

* fix: multiple duration getSchedule calls [CAL-2336] (#10709)

Co-authored-by: Omar López <zomars@me.com>

* New Crowdin translations by Github Action

* fix: If the input type "Name" is selected, the label can't be changed from our default label "Your Name" (#10618)

Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>

* New Crowdin translations by Github Action

* test: Create unit tests for react components in packages/ui/components/form/step (#10442)

Co-authored-by: gitstart-calcom <gitstart@users.noreply.github.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>

* feat: element call app added (#10585)

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>

* New Crowdin translations by Github Action

* New Crowdin translations by Github Action

* fix: e2e test for rescheduling overlapping time (#10721)

Co-authored-by: CarinaWolli <wollencarina@gmail.com>

* feat: mailhog fixture (#10606)

* feat: mailhog fixture

* fix: nodemailer to dispatch emails with e2e env

* fix: remove space from email subject

* feat: fixture getFirstEventAsOwner

* feat: assert email subjects

* fix: and enable dynamic booking test (#10642)

* fix and enable dynamic booking test

* remove page pause

---------

Co-authored-by: Alex van Andel <me@alexvanandel.com>

* fix: Broken team events if a user with the same name exists (#10724)

* fix: Broken team events if a user with the same name exists

* Fix tests + fix usernameList optionality

* Try to list calendars, if not continue (#10720)

Co-authored-by: Omar López <zomars@me.com>

* v3.1.9

* link to org settings (#10718)

* feat: app paypal payment (#8797)

Co-authored-by: sean-brydon <55134778+sean-brydon@users.noreply.github.com>
Co-authored-by: Omar López <zomars@me.com>

* fix: RTL issues on booking pages + email confirmation (#10526)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>

* fix: merge conflict

* Fixing org slug (#10538)

* fix: paypal build fixes

* Fix avatar for org in Shell top (#10712)

* feat: add range of dates for availability over-ride (#10462)

* feat: add range of dates for availability over-ride

* chore: changed range select to multiple select

---------

Co-authored-by: Alex van Andel <me@alexvanandel.com>

* fix: border issue for time slots (#10577)

Co-authored-by: Raghul D <v-raghuld@microsoft.com>

* style: Fix text wrapping issue in button (#10725)

Co-authored-by: Omar López <zomars@me.com>

* New Crowdin translations by Github Action

* fix: App Install Dropdown Sort Properly [CAL-2285] (#10672)

Co-authored-by: Peer Richelsen <peeroke@gmail.com>

* fix: link escaping in booking page (#10360)

Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>

* chore: fix refund i18n message (#10731)

* chore: remove tailwind-scrollbar warning (#10523)

Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>

* New Crowdin translations by Github Action

* chore: Simplified date overrides (#10728)

* chore: Simplified date overrides

* Fixed a test that had a date override that wasn't at midnight utc

* Wrote test that showed a fixed Europe/Brussels

* Lint fix

* New Crowdin translations by Github Action

* Fix offset time + fetching correct dates

* Deal with awkward minute offsets

* remove store overhead

* Format H based on tz

* Cleanup store logic

* Cleanup

* Remove comments

* Remove comments

* Remove yarn.lock

* Dark mode & v-align text fixes

* Move ButtonGroup to the left to prevent chevron from jumping

* Shift based on timezone (non-hour) and have 15min granularity in hour display background color

---------

Co-authored-by: Leo Giovanetti <hello@leog.me>
Co-authored-by: Omar López <zomars@me.com>
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: Zain Gulbaz <zaingulbaz8@gmail.com>
Co-authored-by: Carina Wollendorfer <30310907+CarinaWolli@users.noreply.github.com>
Co-authored-by: GitStart-Cal.com <121884634+gitstart-calcom@users.noreply.github.com>
Co-authored-by: gitstart-calcom <gitstart@users.noreply.github.com>
Co-authored-by: Keith Williams <keithwillcode@gmail.com>
Co-authored-by: Suyash Srivastava <suyashsrivastava5053@gmail.com>
Co-authored-by: Hariom Balhara <hariombalhara@gmail.com>
Co-authored-by: CarinaWolli <wollencarina@gmail.com>
Co-authored-by: Shivam Kalra <shivamkalra98@gmail.com>
Co-authored-by: alannnc <alannnc@gmail.com>
Co-authored-by: Alex van Andel <me@alexvanandel.com>
Co-authored-by: Joe Au-Yeung <65426560+joeauyeung@users.noreply.github.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Co-authored-by: Anik Dhabal Babu <81948346+anikdhabal@users.noreply.github.com>
Co-authored-by: Pradumn Kumar <pradumn@tealfeed.com>
Co-authored-by: Raghul <123321540+Raghul18@users.noreply.github.com>
Co-authored-by: Raghul D <v-raghuld@microsoft.com>
Co-authored-by: ABDERRAHMANI IDRISSI HAMZA <97639117+idrissi-hamza@users.noreply.github.com>
Co-authored-by: Nafees Nazik <84864519+G3root@users.noreply.github.com>
Co-authored-by: Danila <daniil.demidovich@gmail.com>
Co-authored-by: Udit Takkar <53316345+Udit-takkar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🐛 bug Something isn't working core area: core, team members only Low priority Created by Linear-GitHub Sync teams area: teams, round robin, collective, managed event-types

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

[CAL-2252] Team name is empty

3 participants