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

feat(ChangelogDialog): change style, add link, events #105

Merged
merged 8 commits into from
Oct 23, 2023

Conversation

Feverqwe
Copy link
Contributor

No description provided.

@gravity-ui-bot
Copy link
Contributor

Preview is ready.

@Feverqwe Feverqwe force-pushed the rndnm/CLOUDFRONT-16740/updChangelogDialog branch from 2784061 to 26417c2 Compare September 29, 2023 11:12
Copy link
Contributor

@korvin89 korvin89 left a comment

Choose a reason for hiding this comment

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

Look like major updates? cc @amje

@Feverqwe
Copy link
Contributor Author

Look like major updates?

No, we don't use it yet. And just add one optional prop

@korvin89
Copy link
Contributor

Look like major updates?

No, we don't use it yet. And just add one optional prop

You don't use, but others could

@Feverqwe Feverqwe force-pushed the rndnm/CLOUDFRONT-16740/updChangelogDialog branch from 26417c2 to f3666a4 Compare September 29, 2023 11:36
@amje
Copy link
Contributor

amje commented Sep 29, 2023

@Feverqwe Removing prop is breaking change. Mark as deprecated and remove in the next major release

@Feverqwe
Copy link
Contributor Author

You don't use, but others could

Ok, I remove breaking changes, and just add link feature and change style

}

&__title {
margin: 0;
@include mixins.text-subheader-3();
@include mixins.text-subheader-2();
font-weight: 500;
Copy link
Contributor

Choose a reason for hiding this comment

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

mixin already has font-weight. Besides it uses variable for that, not a fixed value

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed, thx!

@amje amje changed the title feat(changelogDialog): change style, add link feat(ChangelogDialog): change style, add link Oct 16, 2023
@Feverqwe Feverqwe force-pushed the rndnm/CLOUDFRONT-16740/updChangelogDialog branch from 7286dee to a7d7084 Compare October 18, 2023 06:59
@Feverqwe Feverqwe force-pushed the rndnm/CLOUDFRONT-16740/updChangelogDialog branch from a7d7084 to fb44861 Compare October 18, 2023 07:06
@Feverqwe Feverqwe requested review from amje and korvin89 October 18, 2023 09:37
@Feverqwe
Copy link
Contributor Author

@amje I'm add events, rm metrics

@Feverqwe Feverqwe changed the title feat(ChangelogDialog): change style, add link feat(ChangelogDialog): change style, add link, events Oct 18, 2023
}: ChangelogDialogProps) {
const idRef = React.useRef<number>();
idRef.current = idRef.current || getNextId();
const dialogCaptionId = `changelog-dialog-title-${idRef.current}`;

useEffect(() => {
if (!open) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

What the reason to add callback, if you pass open from outside anyway?

Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like there is no need to keep this code inside the component

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, you are right.

@@ -21,7 +21,9 @@ export interface ChangelogDialogProps {
items: ChangelogItem[];
disableBodyScrollLock?: boolean;
disableOutsideClick?: boolean;
onOpen: () => void;
Copy link
Contributor

Choose a reason for hiding this comment

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

Why it is required?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Remove, will do in parent component

}: ChangelogDialogProps) {
const idRef = React.useRef<number>();
idRef.current = idRef.current || getNextId();
const dialogCaptionId = `changelog-dialog-title-${idRef.current}`;

useEffect(() => {
if (!open) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like there is no need to keep this code inside the component

@@ -17,17 +17,17 @@ $metaWidth: 124px;
}

&__label-new {
margin-top: 4px;
margin-top: 8px;
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should use --g-spacing-2

}

&__content {
flex: 1;
margin-left: 16px;
margin-left: 20px;
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we should use --g-spacing-5

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Replace this and other places too.

@amje amje merged commit 3c119c7 into main Oct 23, 2023
3 checks passed
@amje amje deleted the rndnm/CLOUDFRONT-16740/updChangelogDialog branch October 23, 2023 18:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants