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

[TGA-88] fix: Add item back to IPreviewComponentProps interface #4460

Merged
merged 2 commits into from
Mar 27, 2024

Conversation

MarkLark86
Copy link
Contributor

item is passed into Editor component but not Preview component, keep similar interfaces between those two allows common functionality between preview and edit.
item is also used by preview components in extensions from both Belga and 360info

`item` is passed into Editor component but not Preview component, keep similar interfaces between those two allows common functionality between preview and edit.
`item` is also used by preview components in extensions from both Belga and 360info
@MarkLark86 MarkLark86 added this to the 2.7 milestone Mar 27, 2024
@MarkLark86 MarkLark86 requested a review from thecalcc March 27, 2024 04:56
@MarkLark86
Copy link
Contributor Author

@thecalcc The CI / test failure is happening on release/2.7 base branch with the same test failing:

HeadlessChrome 0.0.0 (Linux 0.0.0) editor3.components.embed-input should call onSubmit and reset error on success FAILED
	Expected spy unknown to have been called with [ 'resolve-value' ] but it was never called.

E2E is also failing in that base branch. So I don't believe I have introduced any test failures in this PR

Comment on lines +14 to +15
item1: any;
item2: any;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please type these two objects

@@ -6,6 +6,7 @@ import {Button} from 'superdesk-ui-framework/react';
import {gettext} from 'core/utils';

export function previewAuthoringEntity(
item: any,
Copy link
Contributor

Choose a reason for hiding this comment

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

Please type this prop

@@ -3374,6 +3374,7 @@ declare module 'superdesk-api' {
}

export interface IPreviewComponentProps<IValue, IConfig> {
item: any;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please type this

@thecalcc
Copy link
Contributor

@thecalcc The CI / test failure is happening on release/2.7 base branch with the same test failing:

HeadlessChrome 0.0.0 (Linux 0.0.0) editor3.components.embed-input should call onSubmit and reset error on success FAILED
	Expected spy unknown to have been called with [ 'resolve-value' ] but it was never called.

E2E is also failing in that base branch. So I don't believe I have introduced any test failures in this PR

Yep, I broke them, we have a fix in progress on a different branch that's not merged yet. No worries

@MarkLark86 MarkLark86 merged commit 9b6c4e8 into superdesk:release/2.7 Mar 27, 2024
2 of 3 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