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

feat: Add learning by sector,regions bar chart and Map for learning #1577

Open
wants to merge 6 commits into
base: project/operational-learning-2.0
Choose a base branch
from

Conversation

roshni73
Copy link
Collaborator

@roshni73 roshni73 commented Dec 5, 2024

Addresses:

Changes

  • Add learning by sector, region, and source overtime chart.
  • Add Map view for operational learning

This PR doesn't introduce:

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

Copy link

changeset-bot bot commented Dec 5, 2024

⚠️ No Changeset found

Latest commit: 9c11f54

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
app/src/views/OperationalLearning/index.tsx Outdated Show resolved Hide resolved
@samshara samshara self-requested a review December 10, 2024 09:58
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from e80e0a5 to 3bde6b9 Compare December 11, 2024 04:21
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from 3bde6b9 to 3ef7309 Compare December 11, 2024 05:44
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from 3ef7309 to a9f5ebb Compare December 11, 2024 05:55
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from a9f5ebb to 3071d1b Compare December 11, 2024 06:39
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch 2 times, most recently from 6af5950 to 087c25b Compare December 12, 2024 05:38
@samshara samshara force-pushed the project/operational-learning-2.0 branch from 94723fb to c5a62d6 Compare December 30, 2024 08:22
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from 652d37b to 69f849c Compare December 30, 2024 08:46
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from 69f849c to 2b1a8f1 Compare December 30, 2024 09:59
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from 2b1a8f1 to 13e7220 Compare December 30, 2024 10:25
@roshni73 roshni73 force-pushed the feature/add-charts-learnings branch from 13e7220 to 5e1c4da Compare December 30, 2024 11:07
"strings": {
"downloadMapTitle": "Operational learning map",
"learningLegendLabel": "Learnings",
"learningCountLegendLabel":"Learning count"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's fix the spacings.

Suggested change
"learningCountLegendLabel":"Learning count"
"learningCountLegendLabel": "Learning count"

import i18n from './i18n.json';
import styles from './styles.module.css';

type learningStatsResponse = GoApiResponse<'/api/v2/ops-learning/stats/'>;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
type learningStatsResponse = GoApiResponse<'/api/v2/ops-learning/stats/'>;
type LearningStatsResponse = GoApiResponse<'/api/v2/ops-learning/stats/'>;


interface Props {
className?: string;
learning: learningStatsResponse | undefined;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
learning: learningStatsResponse | undefined;
learning: LearningStatsResponse | undefined;

Comment on lines +97 to +99
geometry: country.centroid as {
type: 'Point',
coordinates: [0, 0],
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's fix the indentation here.

footerClassName={styles.footer}
footerContent={(
<div className={styles.learningsLegend}>
<div className={styles.legendLabel}>{strings.learningLegendLabel}</div>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Separate the lines here.

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.

7 participants