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

INT-2162: Migration of settings/admin directory #123

Closed
wants to merge 10 commits into from

Conversation

hbjORbj
Copy link

@hbjORbj hbjORbj commented Nov 23, 2023

No description provided.

Copy link

github-actions bot commented Nov 23, 2023

Hey there and thank you for opening this pull request! 👋🏼

We require pull request titles to follow the Conventional Commits specification and it looks like your proposed title needs to be adjusted.

Details:

No release type found in pull request title "INT-2162: Migration of settings/admin directory". Add a prefix to indicate what kind of release this pull request corresponds to. For reference, see https://www.conventionalcommits.org/

Available types:
 - feat: A new feature
 - fix: A bug fix
 - docs: Documentation only changes
 - style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
 - refactor: A code change that neither fixes a bug nor adds a feature
 - perf: A code change that improves performance
 - test: Adding missing tests or correcting existing tests
 - build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
 - ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
 - chore: Other changes that don't modify src or test files
 - revert: Reverts a previous commit

@hbjORbj hbjORbj changed the title Migration of settings/admin directory INT-2162: Migration of settings/admin directory Nov 23, 2023
Copy link

linear bot commented Nov 23, 2023

@hbjORbj hbjORbj force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch 2 times, most recently from 2443064 to ca82cfc Compare November 24, 2023 10:06
// Force redirect on component level
useEffect(() => {
if (session.data && session.data.user.role !== UserPermissionRole.ADMIN) {
router.replace("/settings/my-account/profile");

Choose a reason for hiding this comment

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

does this work in app dir?

Copy link

Choose a reason for hiding this comment

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

I think so


export const generateMetadata = async () =>
await _generateMetadata(
() => "Feature Flags",
Copy link

Choose a reason for hiding this comment

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

these are not translated?

Copy link
Author

Choose a reason for hiding this comment

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

nope according to the legacy page.


export const generateMetadata = async () =>
await _generateMetadata(
() => "Admin",
Copy link

Choose a reason for hiding this comment

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

these are not translated?

Copy link
Author

@hbjORbj hbjORbj Nov 24, 2023

Choose a reason for hiding this comment

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

nope according to the legacy page.


return await _generateMetadata(
() => title,
() => "Here you can edit a current user."
Copy link

Choose a reason for hiding this comment

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

no translation?

Copy link
Author

Choose a reason for hiding this comment

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

nope according to the legacy page.

@hbjORbj hbjORbj force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch from 2ea7650 to 8b0618e Compare November 24, 2023 13:16
@DmytroHryshyn DmytroHryshyn force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch 2 times, most recently from 33aa8a6 to 4d1a696 Compare November 27, 2023 14:07
@DmytroHryshyn DmytroHryshyn force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch from 08ec308 to 3af846b Compare November 27, 2023 16:09
@hbjORbj hbjORbj force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch from a56b2c9 to f07f631 Compare November 28, 2023 07:11
@hbjORbj hbjORbj force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch from f07f631 to ff5adbe Compare November 28, 2023 07:13
@DmytroHryshyn DmytroHryshyn force-pushed the 11-23-codemod_app-directory-boilerplate-calcom branch from ff5adbe to 0c26303 Compare November 28, 2023 13:19
@hbjORbj
Copy link
Author

hbjORbj commented Nov 28, 2023

we opened a PR for this branch at cal repo; hence, closing.

@hbjORbj hbjORbj closed this Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants