Skip to content

Conversation

asadath1395
Copy link
Contributor

@asadath1395 asadath1395 commented Dec 4, 2024

What does this PR do?

No option to install/disconnect app from app detail page

It fixes only the issue-2 mentioned in the linked ticket -- Hariom

Mandatory Tasks (DO NOT REMOVE)

  • I have self-reviewed the code (A decent size PR without self-review might be rejected).
  • I have updated the developer docs in /docs if this PR makes changes that would require a documentation change. If N/A, write N/A here and check the checkbox.
  • I confirm automated tests are in place that prove my fix is effective or that my feature works.

How should this be tested?

https://www.loom.com/share/49e1050b7e1e42e9af6e669b953b4118?sid=0807e556-61a0-4faa-99ea-d4ce9795b8a0

Copy link

vercel bot commented Dec 4, 2024

@asadath1395 is attempting to deploy a commit to the cal Team on Vercel.

A member of the Team first needs to authorize it.

@graphite-app graphite-app bot requested a review from a team December 4, 2024 11:07
@graphite-app graphite-app bot added the community Created by Linear-GitHub Sync label Dec 4, 2024
@github-actions github-actions bot added app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar Medium priority Created by Linear-GitHub Sync Stale teams area: teams, round robin, collective, managed event-types 🐛 bug Something isn't working 🙋🏻‍♂️help wanted Help from the community is appreciated labels Dec 4, 2024
Copy link

graphite-app bot commented Dec 4, 2024

Graphite Automations

"Add consumer team as reviewer" took an action on this PR • (12/04/24)

1 reviewer was added to this PR based on Keith Williams's automation.

"Add community label" took an action on this PR • (12/04/24)

1 label was added to this PR based on Keith Williams's automation.

"Add ready-for-e2e label" took an action on this PR • (01/01/25)

1 label was added to this PR based on Keith Williams's automation.

@github-actions github-actions bot removed the Stale label Dec 5, 2024
Copy link

vercel bot commented Dec 5, 2024

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

Name Status Preview Comments Updated (UTC)
cal ❌ Failed (Inspect) Dec 12, 2024 11:33am
calcom-web-canary ❌ Failed (Inspect) Dec 12, 2024 11:33am

@asadath1395
Copy link
Contributor Author

@keithwillcode Can you please assign someone to review this? Thanks

@asadath1395
Copy link
Contributor Author

@PeerRich Can we get this merged?

@github-actions github-actions bot removed the Stale label Feb 8, 2025
@retrogtx
Copy link
Contributor

retrogtx commented Feb 9, 2025

@PeerRich Can we get this merged?

hey the E2E tests are failing on this

@github-actions github-actions bot added the Stale label Feb 14, 2025
@TusharBhatt1
Copy link
Contributor

@asadath1395 are you still working on this , tests are failing

@retrogtx
Copy link
Contributor

@asadath1395 are you still working on this , tests are failing

it's the E2E failure I think, Anik is working on this made a PR for the same yesterday

@github-actions github-actions bot removed the Stale label Feb 15, 2025
@github-actions github-actions bot added Stale and removed Stale labels Feb 15, 2025
@github-actions github-actions bot added Stale and removed Stale labels Feb 17, 2025
@github-actions github-actions bot added the Stale label Feb 24, 2025
@asadath1395
Copy link
Contributor Author

@anikdhabal Are you able to reproduce the failing test locally? Since you fixed something related to analytics app store installation recently, I can't seem to reproduce that, it works fine in my machine.

Comment on lines 153 to 154
const appInstalledForAllTargets =
availableForTeams && Array.isArray(data?.userAdminTeams) && data.userAdminTeams.length > 0
Copy link
Contributor

@anikdhabal anikdhabal Feb 25, 2025

Choose a reason for hiding this comment

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

There was an actual bug. It was always true in cases where data.userAdminTeams = [], and availableForTeams && data?.userAdminTeams was also true for that. That's why the install button was not visible.
Screenshot 2025-02-25 205233

Copy link
Contributor

@anikdhabal anikdhabal left a comment

Choose a reason for hiding this comment

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

Looks Good

@PeerRich PeerRich merged commit a4519e7 into calcom:main Feb 25, 2025
32 of 36 checks passed
itsalam pushed a commit to itsalam/cal.com that referenced this pull request Mar 6, 2025
…#17997)

* fix: No option to install/disconnect app from app detail page

* Fix types

* fix: Install button showing up even after it is installed for all targers

* chore: Simplified installOrDisconnectAppButton making it easy to read

---------

Co-authored-by: Hariom <hariombalhara@gmail.com>
Co-authored-by: Peer Richelsen <peeroke@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app-store area: app store, apps, calendar integrations, google calendar, outlook, lark, apple calendar 🐛 bug Something isn't working community Created by Linear-GitHub Sync 🙋🏻‍♂️help wanted Help from the community is appreciated Medium priority Created by Linear-GitHub Sync ready-for-e2e Stale teams area: teams, round robin, collective, managed event-types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

inconsistency with the disconnect app button
7 participants