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
Fixes #26343 - Create card for stopped tasks and scheduled tasks #395
Fixes #26343 - Create card for stopped tasks and scheduled tasks #395
Conversation
Do not merge! This patch has not been tested yet. Can an existing organization member please verify this patch? |
430ef6a
to
d4367c1
Compare
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.
Looks good. Just have a couple of small comments and a couple of questions.
In there stopped tasks table is there a way to unselect your selection? Like maybe clicking outside of the table would unselect your prior selection?
Another (perhaps future) enhancement could be to allow control+click to select multiple states but I don't think we should support that initially.
@Rohoover, @terezanovotna thoughts?
className | ||
)} | ||
> | ||
<Card.Title onClick={this.onClick}>Scheduled</Card.Title> |
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.
We need to translate this string.
@MariaAga could you deploy this to gh pages for @Rohoover and @terezanovotna to have a look? |
d4367c1
to
c08606d
Compare
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.
Thanks @MariaAga 👍
...k/ForemanTasks/Components/TasksDashboard/Components/ScheduledTasksCard/ScheduledTasksCard.js
Outdated
Show resolved
Hide resolved
...emanTasks/Components/TasksDashboard/Components/ScheduledTasksCard/ScheduledTasksCard.test.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
...ack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.scss
Outdated
Show resolved
Hide resolved
...emanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCardConstants.js
Outdated
Show resolved
Hide resolved
c08606d
to
6398b9a
Compare
Can one of the admins verify this patch? |
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.
Thanks @MariaAga, can you please deploy the storybook using:
npm run storybook:build
npm run storybook:deploy
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
webpack/ForemanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCard.js
Outdated
Show resolved
Hide resolved
}); | ||
|
||
const resultPropType = PropTypes.shape({ | ||
total: PropTypes.shape({ |
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.
This shape can be reused as well
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.
Make everything required
here can help when reading the data. (won't need to do warrning.total && warning.total.value
)
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.
Already required, and I couldn't find a place that uses warning.total && warning.total.value
...oremanTasks/Components/TasksDashboard/Components/StoppedTasksCard/StoppedTasksCardHelpers.js
Outdated
Show resolved
Hide resolved
6398b9a
to
9acb5c3
Compare
9acb5c3
to
8c465e8
Compare
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.
Thanks @MariaAga LGTM 👍
@MariaAga notice snapshot error |
8c465e8
to
c8a1566
Compare
@sharvit Fixed, thanks! |
Refs #26406 - Update pause and stopped cards
There were the following issues with the commit message:
If you don't have a ticket number, please create an issue in Redmine. More guidelines are available in Coding Standards or on the Foreman wiki. This message was auto-generated by Foreman's prprocessor |
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.
LGTM
Rebased and merged |
related to: Fixes #26308 - tasks-dashboard donut cards