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

PADV-1050 - Integrate Metric Services #45

Merged
merged 1 commit into from
Mar 6, 2024
Merged

Conversation

sergivalero20
Copy link
Contributor

Ticket

https://agile-jira.pearson.com/browse/PADV-1050

Description

Integrate Metric Services

Changes made

  • Integrate students metrics service.
  • Integrate classes metrics service.
  • Update tests

Screenshots

image

How to test

Clone the Institution Portal MFE
Run npm install.
Run npm run start
Go to http://localhost:1980/students

src/features/Students/StudentsMetrics/index.jsx Outdated Show resolved Hide resolved
src/features/Students/StudentsMetrics/index.jsx Outdated Show resolved Hide resolved
src/features/Students/StudentsMetrics/index.jsx Outdated Show resolved Hide resolved
@@ -39,15 +45,15 @@ const StudentsMetrics = () => {
title="New students registered"
/>
<Card.Section>
<div className="card-number">{stateMetrics.newStudentsRegistered}</div>
<div className="card-number">{stateStudentsMetrics.numberOfEnrollments}</div>
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about to use a div for display data, maybe a p or span tag could be more appropriate.

src/features/Students/StudentsMetrics/index.jsx Outdated Show resolved Hide resolved
@sergivalero20 sergivalero20 requested a review from AuraAlba March 6, 2024 14:38
@sergivalero20 sergivalero20 marked this pull request as ready for review March 6, 2024 16:30
.env.development Show resolved Hide resolved
const institution = useSelector((state) => state.main.selectedInstitution);
const studentsMetrics = useSelector((state) => state.students.studentsMetrics.data);
const classesMetrics = useSelector((state) => state.students.classesMetrics.data);
const days = 7; // Temporal variable
Copy link
Contributor

Choose a reason for hiding this comment

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

You have a constant called daysWeek. @sergivalero20

src/features/Students/StudentsMetrics/index.jsx Outdated Show resolved Hide resolved
Next week
</ToggleButton>
<ToggleButton id="tbg-radio-3" value={3} variant="outline-primary">
<ToggleButton id="tbg-radio-3" value={3} variant="outline-primary" disabled>
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment. @sergivalero20

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@anfbermudezme It's not possible add inline comments there.

Copy link
Contributor

Choose a reason for hiding this comment

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

@sergivalero20 , you could try this

@sergivalero20 sergivalero20 merged commit 79694f9 into master Mar 6, 2024
2 checks passed
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.

4 participants