Skip to content

Feature/gidd dashboard - #133

Merged
tnagorra merged 19 commits into
developfrom
feature/gidd-dashboard
Aug 30, 2026
Merged

Feature/gidd dashboard#133
tnagorra merged 19 commits into
developfrom
feature/gidd-dashboard

Conversation

@subinasr

Copy link
Copy Markdown
Contributor

depends on:

idmc-labs/helix-server#799

Changes

  • New GIDD dashboard

This PR doesn't introduce any:

  • temporary files, auto-generated files or secret keys
  • build works
  • eslint issues
  • typescript issues
  • codegen errors
  • console.log meant for debugging
  • typos
  • unwanted comments
  • conflict markers

@subinasr
subinasr requested a review from AdityaKhatri August 20, 2026 11:24
@AdityaKhatri
AdityaKhatri force-pushed the feature/gidd-dashboard branch 4 times, most recently from 32a925d to e6747a4 Compare August 21, 2026 11:37
@subinasr
subinasr force-pushed the feature/gidd-dashboard branch from cc56a50 to 06885df Compare August 24, 2026 12:06
Base automatically changed from feat/new-idu to project/idu-gidd August 26, 2026 03:57
@AdityaKhatri
AdityaKhatri force-pushed the feature/gidd-dashboard branch 3 times, most recently from e3e4635 to bfaa454 Compare August 26, 2026 09:23
@@ -0,0 +1,91 @@
import { useMemo, useEffect } from 'react';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Move this component to where the slide itself and fetch it there.

Comment on lines +96 to +104
{countries.map((country) => (
<FigureAnalysisFetcher
key={country.iso3}
iso3={country.iso3}
year={year}
clientCode={clientCode}
onResults={handleResults}
/>
))}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Anti pattern

Comment on lines +96 to +97
const cOn = cause !== 'disaster';
const dOn = cause !== 'conflict';

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Rename

Comment on lines +185 to +190
{pending ? (
<Message pending compact />
) : (
<ListView
className={styles.list}
data={rows}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Use pending from ListView

Comment thread app/views/Gidd/index.tsx
Comment on lines +1258 to +1265
<div className={styles.chartBlock}>
<Header
heading="Internal displacements"
headingClassName={styles.slideHeading}
headingSize="medium"
headingTooltip={flowDetails}
headingTooltipTitle="Internal displacements"
headingDescription={`New movements per year globally, ${domainForCharts[0]}–${domainForCharts[1]}`}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Lets move this to separate component

Comment thread app/views/Gidd/GiddMap/index.tsx Outdated
Comment on lines +530 to +533
conflictNew: row.conflictNewDisplacementRounded ?? 0,
conflictTotal: totalRow?.conflictTotalDisplacementRounded ?? 0,
disasterNew: row.disasterNewDisplacementRounded ?? 0,
disasterTotal: totalRow?.disasterTotalDisplacementRounded ?? 0,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

conflictNew is not a good name to:

  • "conflictNewDisplacement"
  • "conflictTotalDispalcemnet"
  • "disasterNewDisplacement"
  • "disasterTotalDisplacement"

disasterTotalDisplacement
disasterTotalDisplacementRounded
# raw, for the combined value only: a total is summed before it is rounded
conflictNewDisplacement

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We shouldn't fetch non-rounded values at all.
The aggregations should be done in the server.

Comment thread app/views/Gidd/DownloadMenu/index.tsx
Comment thread app/views/Gidd/index.tsx Outdated
@tnagorra
tnagorra marked this pull request as ready for review August 30, 2026 08:33
@tnagorra
tnagorra force-pushed the feature/gidd-dashboard branch from 2350ed1 to c5b711e Compare August 30, 2026 08:34
{
cause,
iso3__in: countriesIso3,
violence_sub_type__in: violenceSubTypes,

@tnagorra tnagorra Aug 30, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not pass hazard subtype?

: {
cause,
iso3__in: countriesIso3,
violence_sub_type__in: violenceSubTypes,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Why not pass hazard subtype?

@tnagorra
tnagorra requested a review from AdityaKhatri August 30, 2026 09:04
Base automatically changed from project/idu-gidd to develop August 30, 2026 09:07
tnagorra and others added 12 commits August 30, 2026 14:52
- IDU: clicking a map bubble opens its popup without changing the active focus
- IDU: slide list items (country/event/trigger) toggle focus on/off on click
- IDU: add "Focus event on map" and name the active focus in the pill
- IDU: pad focus/zoom bounds so markers aren't at the edge
- GIDD: thicken the ranking and breakdown bars
- GIDD: refine the type-breakdown headings and description
…dths

- GIDD tables: pin the header sort icon and wrap/clamp long header labels
- GIDD filters: fixed width so the row doesn't shift when a value/clear icon changes
- minor label and column-heading tweaks
@tnagorra
tnagorra force-pushed the feature/gidd-dashboard branch from c5b711e to ed39601 Compare August 30, 2026 09:07
@tnagorra
tnagorra merged commit d77e498 into develop Aug 30, 2026
14 checks passed
@tnagorra
tnagorra deleted the feature/gidd-dashboard branch August 30, 2026 09:11
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