-
Notifications
You must be signed in to change notification settings - Fork 4
DREF Imminent v2 Final Report #1942
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
Conversation
🦋 Changeset detectedLatest commit: 3ee9979 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
headingLevel={3} | ||
childrenContainerClassName={styles.proposedActions} | ||
> | ||
<div className={styles.actionTitleLabel} /> |
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.
Its empty. It is needed?
{strings.priorityActionsBudget} | ||
</div> | ||
<div className={styles.actionTitleLabel}> | ||
Expenditure |
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.
get this from i18n.
</div> | ||
{proposedAction.actions.map((action) => ( | ||
<Fragment key={action.id}> | ||
{action.activities.map((activity, i) => ( |
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 easier to read if we write index instead of i.
(value: Maybe<number>) => ( | ||
// FIXME: use translations | ||
isDefined(value) && value !== SUB_TOTAL | ||
? 'The sub-total of the budgets should be exactly CHF 75000' |
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.
Use translation. do not forget to remove FIXME.
/** @knipignore */ | ||
// eslint-disable-next-line import/prefer-default-export | ||
export function Component() { | ||
const { finalReportId } = useParams<{ finalReportId: string }>(); | ||
const [previewReady, setPreviewReady] = useState(false); | ||
const strings = useTranslation(i18n); | ||
const primarySectorOptions = usePrimarySector(); | ||
|
||
const { | ||
// pending: fetchingDref, |
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.
remove commented line it not needed
|
||
const sortedPlannedInterventions = useMemo( | ||
() => filteredPlannedIntervention?.sort( | ||
|
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.
remove this space
|
||
const sortedIdentifiedNeedsAndGaps = useMemo( | ||
() => filteredIdentifiedNeedsAndGaps?.sort( | ||
|
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.
same here
<img | ||
className={styles.icon} | ||
src={identifiedNeed.image_url} | ||
alt="" |
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.
add alt
<img | ||
className={styles.icon} | ||
src={plannedIntervention.image_url} | ||
alt="" |
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.
Add alt
/* | ||
if ((response.photos_file?.length ?? 0) > 0) { | ||
response.photos_file?.forEach((img) => { | ||
if (isDefined(img.file)) { | ||
newMap[img.id] = img.file; | ||
} | ||
}); | ||
} | ||
*/ |
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.
Remove commented or add Note
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.
@barshathakuri @AdityaKhatri For future references, this should have been done using fixup commit! It wouldn't be possible to revert back to the moved migration!
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.
Yes
* refactor(dref-export-modal): update pga state management logic
- use total_operation_timeframe_imminent in both form and export for imminent final report
1d0bccd
to
3ee9979
Compare
Summary
Update final report form for dref imminent type
Addresses
Depends On
Changes
This PR Ensures:
console.log
statements meant for debugging