-
Notifications
You must be signed in to change notification settings - Fork 20
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
[#5080] Added active state to fix indicator approval workflow #5084
base: master
Are you sure you want to change the base?
[#5080] Added active state to fix indicator approval workflow #5084
Conversation
a972475
to
4a5946b
Compare
6e9e9f5
to
11f3ef3
Compare
import approvedSvg from '../images/status-approved.svg' | ||
import pendingSvg from '../images/status-pending.svg' | ||
import revisionSvg from '../images/status-revision.svg' | ||
import { DeclinePopup } from './DeclinePopup' | ||
|
||
const Aux = node => node.children | ||
|
||
export const StatusPeriod = ({ update, pinned, index, handleUpdateStatus, t }) => { | ||
export const StatusPeriod = ({ update, pinned, index, handleUpdateStatus }) => { | ||
const { t } = useTranslation() |
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.
It's better to have descriptive name instead of t
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.
Noted, Thank you Navin. Fixing in progress
<Col lg={22} md={22} sm={24} xs={24}> | ||
{isEmpty(period) && ( | ||
<div className="period-caption"> | ||
{moment(item?.period?.periodStart, 'DD/MM/YYYY').format('DD MMM YYYY')} - {moment(item?.period?.periodEnd, 'DD/MM/YYYY').format('DD MMM YYYY')} |
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.
It would be nice to create variable and assign values and render variable. If later on we convert it to component it would be easier to just pass the variable instead
)} | ||
> | ||
<div className="period-caption"> | ||
{`${moment(period?.periodStart, 'DD/MM/YYYY').format('DD MMM YYYY')} - ${moment(period?.periodEnd, 'DD/MM/YYYY').format('DD MMM YYYY')}`} |
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.
It would be nice to create variable and assign values and render variable. If later on we convert it to component it would be easier to just pass the variable instead
11f3ef3
to
b827e0d
Compare
b827e0d
to
4ee4908
Compare
[#5051] Make audit trail components responsive in mobile view
Active status helps MnE managers to identify updates of indicators that have an unlocked period still in progress. the following what has to be done in order to finalize this feature : 1. Update status description. 2. Add new icon history. 3. Create audit trail modal 4. Call /indicator_period_data_framework/ by period Pulling data audit trails from endpoint /indicator_period_data_framework/ by period ID of selected update.
4ee4908
to
4c408fd
Compare
- Reduce time column size. - Add new constant variable for status terminology.
4c408fd
to
0519265
Compare
Adding link to #5080 for Zenhub |
TODO / Done
Summarize what has been changed / what has to be done in order to finalize the PR.
Test plan
What tests are necessary to ensure this works or doesn't break anything working
View history at reporting period