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

chore: [app-router-migration-11] Migrate workflow page group #12777

Merged
merged 5 commits into from
Jan 11, 2024

Conversation

DmytroHryshyn
Copy link
Contributor

@DmytroHryshyn DmytroHryshyn commented Dec 13, 2023

What does this PR do?

Migrates workflows/path* page group

Requirement/Documentation

  • If there is a requirement document, please, share it here.
  • If there is ab UI/UX design document, please, share it here.

Type of change

  • Chore (refactoring code, technical debt, workflow improvements)

How should this be tested?

  • Are there environment variables that should be set?
  • What are the minimal test data to have?
  • What is expected (happy path) to have (input and output)?
  • Any other important info that could help to test that PR

Mandatory Tasks

  • Make sure you have self-reviewed the code. A decent size PR without self-review might be rejected.

Copy link

vercel bot commented Dec 13, 2023

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

A member of the Team first needs to authorize it.

Copy link
Contributor

github-actions bot commented Dec 13, 2023

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

@github-actions github-actions bot added the ❗️ .env changes contains changes to env variables label Dec 13, 2023
Copy link
Contributor

github-actions bot commented Dec 13, 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! 🙌

@DmytroHryshyn DmytroHryshyn changed the title Chore/migrate worflows page chore [app-router-migration-11]: Migrate workflow page group Dec 13, 2023
@DmytroHryshyn DmytroHryshyn force-pushed the chore/migrate-worflows-page branch 2 times, most recently from 2695b32 to 1d6ad29 Compare December 14, 2023 11:37
@keithwillcode keithwillcode added the Medium priority Created by Linear-GitHub Sync label Dec 20, 2023
@hbjORbj hbjORbj force-pushed the chore/migrate-worflows-page branch 2 times, most recently from 3a117ec to 87d4b85 Compare December 21, 2023 10:08
@DmytroHryshyn DmytroHryshyn force-pushed the chore/migrate-worflows-page branch 2 times, most recently from d8247a0 to 910a08a Compare January 4, 2024 17:35
@DmytroHryshyn DmytroHryshyn marked this pull request as ready for review January 5, 2024 10:26
@DmytroHryshyn DmytroHryshyn force-pushed the chore/migrate-worflows-page branch 2 times, most recently from 1c43109 to ebae929 Compare January 5, 2024 10:58
@DmytroHryshyn DmytroHryshyn changed the title chore [app-router-migration-11]: Migrate workflow page group chore: [app-router-migration-11] Migrate workflow page group Jan 8, 2024
@zomars zomars self-assigned this Jan 8, 2024
@zomars zomars self-requested a review January 8, 2024 17:34
@hbjORbj hbjORbj force-pushed the chore/migrate-worflows-page branch from ebae929 to 276d740 Compare January 9, 2024 14:19
zomars
zomars previously approved these changes Jan 9, 2024
@keithwillcode keithwillcode added this to the v3.7 milestone Jan 10, 2024
import { WithLayout } from "app/layoutHOC";

import { getLayout } from "@calcom/features/MainLayoutAppDir";
import LgeacyPage from "@calcom/features/ee/workflows/pages/index";
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
import LgeacyPage from "@calcom/features/ee/workflows/pages/index";
import LegacyPage from "@calcom/features/ee/workflows/pages/index";

Copy link
Contributor

Choose a reason for hiding this comment

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

addressed

(t) => t("workflows_to_automate_notifications")
);

export default WithLayout({ getLayout, Page: LgeacyPage })<"P">;
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
export default WithLayout({ getLayout, Page: LgeacyPage })<"P">;
export default WithLayout({ getLayout, Page: LegacyPage })<"P">;

Copy link
Contributor

Choose a reason for hiding this comment

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

addressed

async function getProps(context: GetServerSidePropsContext) {
const safeParams = querySchema.safeParse(context.params);

console.log("Built workflow page:", safeParams);
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we need this log?

Copy link
Contributor

Choose a reason for hiding this comment

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

We copied it from the legacy page as it is. Please let us know if it can be deleted.

@hbjORbj
Copy link
Contributor

hbjORbj commented Jan 11, 2024

@keithwillcode Addressed your comments + Rebased on latest main.

@keithwillcode keithwillcode merged commit 4ca79af into calcom:main Jan 11, 2024
30 of 37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❗️ .env changes contains changes to env variables Medium priority Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants