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

Add styles for multi column publish tab #4345

Conversation

tomaskikutis
Copy link
Member

SDESK-7082

@tomaskikutis tomaskikutis changed the base branch from develop to authoring-react-post-broadcasting October 23, 2023 10:30
return assertNever(activeTab);
function PanelWithHeader({columnCount = 1, children}: {columnCount?: number, children: React.ReactNode}) {
return (
<Panel width={`${40 * columnCount}rem`} markupV2={markupV2} data-test-id="interactive-actions-panel">
Copy link
Contributor

Choose a reason for hiding this comment

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

what does the 40 mean? Maybe it'd be better to put it in a constant.

Comment on lines 118 to 120
logger.error(new Error('Publishing multiple items from authoring pane is not supported'));

return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to have this show a modal or just something in the UI?

Comment on lines 144 to 147
if (items.length !== 1) {
logger.error(new Error('Correcting multiple items from authoring pane is not supported'));

return null;
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here

Comment on lines 186 to 205
} if (activeTab === 'duplicate_to') {
return (
<PanelWithHeader>
<DuplicateToTab
items={items}
closeDuplicateToView={onClose}
markupV2={markupV2}
/>
</PanelWithHeader>
);
} if (activeTab === 'unspike') {
return (
<PanelWithHeader>
<UnspikeTab
items={items}
closeUnspikeView={onClose}
markupV2={markupV2}
/>
</PanelWithHeader>
);
Copy link
Contributor

Choose a reason for hiding this comment

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

Was this meant to be else ifs instead of just ifs. If not why?

@tomaskikutis tomaskikutis merged commit db520e7 into superdesk:authoring-react-post-broadcasting Oct 26, 2023
6 checks passed
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.

2 participants