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 to workflow UX improvements #1978

Merged

Conversation

thecalcc
Copy link
Contributor

@thecalcc thecalcc commented May 2, 2024

SDBELGA-799
SDESK-7252

@thecalcc
Copy link
Contributor Author

thecalcc commented May 2, 2024

How the UI looks in both cases, a coverage that's been added to workflow and one that hasn't:

Screenshot 2024-05-02 at 11 36 14

@thecalcc thecalcc requested a review from tomaskikutis May 2, 2024 09:02
@tomaskikutis
Copy link
Member

there should be a space between labels

image

@@ -120,8 +123,13 @@ export class CoverageItemComponent extends React.Component<IProps, IState> {
userAssigned: null,
displayContentType: '',
coverageDateText: '',
addedToWorkflow: false,
Copy link
Member

Choose a reason for hiding this comment

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

what about using addedToWorkflow: coverage.workflow_status === COVERAGES.WORKFLOW_STATE.ACTIVE so you don't need a block below?

@thecalcc thecalcc requested a review from tomaskikutis May 2, 2024 09:49
@@ -1224,7 +1224,9 @@ function getCoverageIcon(
}

function getCoverageIconColor(coverage: IPlanningCoverageItem): string {
if (get(coverage, 'assigned_to.state') === ASSIGNMENTS.WORKFLOW_STATE.COMPLETED) {
if (coverage.workflow_status === COVERAGES.WORKFLOW_STATE.ACTIVE) {
Copy link
Member

Choose a reason for hiding this comment

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

shouldn't you have a different color here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, fritz wants to have this one

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, fritz wants this one

@thecalcc thecalcc merged commit bc73e1e into superdesk:develop May 2, 2024
12 checks passed
@petrjasek petrjasek added this to the 2.8 milestone Jul 8, 2024
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.

3 participants