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

refactor: enable infinite scrolling for all #16463

Merged
merged 16 commits into from
Sep 30, 2024
Merged

Conversation

Udit-takkar
Copy link
Contributor

@Udit-takkar Udit-takkar commented Sep 2, 2024

What does this PR do?

TODO:-

  • update tests

  • Fixes #XXXX (GitHub issue number)

  • Fixes CAL-XXXX (Linear issue number - should be visible at the bottom of the GitHub issue description)

Now enabling #15949 for everyone.

Mandatory Tasks (DO NOT REMOVE)

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

How should this be tested?

@keithwillcode keithwillcode added core area: core, team members only enterprise area: enterprise, audit log, organisation, SAML, SSO labels Sep 2, 2024
@Udit-takkar Udit-takkar added this to the v4.5 milestone Sep 2, 2024
Comment on lines -1635 to -1641
const { data, status, error } = trpc.viewer.eventTypes.getByViewer.useQuery(filters && { filters }, {
refetchOnWindowFocus: false,
gcTime: 1 * 60 * 60 * 1000,
staleTime: 1 * 60 * 60 * 1000,
enabled: !isInfiniteScrollEnabled,
});

Copy link
Contributor Author

Choose a reason for hiding this comment

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

don't need getByViewer now

Copy link

vercel bot commented Sep 2, 2024

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

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
cal ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 5:35am
calcom-web-canary ⬜️ Ignored (Inspect) Visit Preview Sep 30, 2024 5:35am

);
};

const InfiniteMobileTeamsTab: FC<InfiniteMobileTeamsTabProps> = (props) => {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

just renamed it

@Udit-takkar Udit-takkar marked this pull request as ready for review September 2, 2024 15:49
@graphite-app graphite-app bot requested a review from a team September 2, 2024 15:49
@Udit-takkar Udit-takkar added the high-risk Requires approval by Foundation team label Sep 2, 2024
@dosubot dosubot bot added the 💻 refactor label Sep 2, 2024
@graphite-app graphite-app bot requested a review from a team September 2, 2024 15:49
Copy link

graphite-app bot commented Sep 2, 2024

Graphite Automations

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

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

"Add foundation team as reviewer" took an action on this PR • (09/02/24)

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

Copy link
Contributor

github-actions bot commented Sep 2, 2024

E2E results are ready!

@alishaz-polymath
Copy link
Member

alishaz-polymath commented Sep 30, 2024

One E2E Test Failing

Copy link
Member

@alishaz-polymath alishaz-polymath left a comment

Choose a reason for hiding this comment

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

Tests are clear, tested and works. Code looks good too 🚀
Great work @Udit-takkar

Copy link
Contributor

@emrysal emrysal left a comment

Choose a reason for hiding this comment

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

Very happy with this, no comments as it's mostly removed code - let's get this merged.

@emrysal emrysal merged commit ac300ff into main Sep 30, 2024
39 checks passed
@emrysal emrysal deleted the refactor/infinite-event-types branch September 30, 2024 09:44
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 enterprise area: enterprise, audit log, organisation, SAML, SSO event-types area: event types, event-types high-risk Requires approval by Foundation team 🧹 Improvements Improvements to existing features. Mostly UX/UI ready-for-e2e 💻 refactor ui area: UI, frontend, button, form, input
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants