-
Notifications
You must be signed in to change notification settings - Fork 86
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
Cosmetic metadata widget changes, persist changes on full width toggl… #4667
Conversation
…ing, fix authors field, fix dropdown field
Could you post a screenshot with profile selection? |
scripts/core/superdesk-api.d.ts
Outdated
secondaryToolbarWidgets: Array<React.ComponentType<{item: T}>>; | ||
secondaryToolbarWidgets: Array<React.ComponentType<{ | ||
item: T; | ||
onChange(itemWithChanges: T): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would this "onChange" actually reinitialize? If so I think we should call it "reinitialize" so it is clear that it will be performance intensive and can't be called on every key press.
Can you revert the latest commit and prepare the branch to be merged? Let's do widget persistance in another PR |
…pin" This reverts commit 375fb94.
only use Replace classname soup(className="flex flex-row flex-wrap align-center px-2 gap-1 py-1") with inline styles or a single classname. Regarding the third toolbar - let's not have it. It doesn't show anything that is not already displayed elsewhere. In the long run we'll probably make it more customizable so it would be possible to set up any number of toolbars from root repo. |
What's the difference? Only style of how we write CSS? And if we change our spacing at some point, that wouldn't be reflected. |
Easier to work with. Why spend time on coming up and remembering class names when we can use standard CSS rules directly. For spacing and other things - use variables. |
@@ -1491,26 +1503,43 @@ export class AuthoringReact<T extends IBaseRestApiResponse> extends React.PureCo | |||
</ButtonGroup> | |||
</div> | |||
)} | |||
headerStyles='authoring-header--padding-medium pt-1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do not use CSS classnames coming outside of this project. Address other occurences of the same in this PR too.
scripts/apps/authoring-react/subcomponents/content-profile-dropdown.tsx
Outdated
Show resolved
Hide resolved
scripts/apps/authoring-react/subcomponents/content-profile-dropdown.tsx
Outdated
Show resolved
Hide resolved
scripts/apps/authoring-react/subcomponents/content-profile-dropdown.tsx
Outdated
Show resolved
Hide resolved
@@ -1502,7 +1502,7 @@ export class AuthoringReact<T extends IBaseRestApiResponse> extends React.PureCo | |||
</ButtonGroup> | |||
</div> | |||
)} | |||
headerStyles="authoring-header--padding-medium pt-1" | |||
headerPadding={{top: 8}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should have been paddingBlockStart
Hey, I missed an important issue here. I though you were doing a profile selector via angular wrapper thing. You can't put it inside authoring-react.ts, because authoring-react is generic. You don't know if it's an article or some other entity you're dealing with. The compiler was warning you 😄 |
Move the usage from authoring-react and pass it through the api or |
SDESK-7341
SDESK-7417
SDESK-7340