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

Block with statistics by students in categories #2626

Merged
merged 7 commits into from
Nov 14, 2024

Conversation

Renatavl
Copy link
Contributor

image

image

image

@Renatavl Renatavl added Frontend part feature Tutor Implementation that regard to the tutor labels Oct 15, 2024
@Renatavl Renatavl self-assigned this Oct 15, 2024
@Renatavl Renatavl force-pushed the feature/460/statistics-by-students-in-categories branch from c2100cb to 6a236ca Compare October 15, 2024 20:44
Copy link
Contributor

@BohdanMylyi BohdanMylyi left a comment

Choose a reason for hiding this comment

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

please, fix sonar
image

]
}

const options = {
Copy link
Contributor

Choose a reason for hiding this comment

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

this probably also should be relocated to consts

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This object directly belongs to component properties, but not a hardcoded value which is used as input data for the component. That's why it is better to leave it at the same place as the component

Copy link
Contributor

Choose a reason for hiding this comment

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

I still don't understand what is the difference between these hardcoded values and other hardcoded values that we store in separate files with constants

import { useTranslation } from 'react-i18next'
import { selectedCategory, years } from './StudentsInCategories.constants'

function StudentsInCatgories() {
Copy link
Contributor

Choose a reason for hiding this comment

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

here is a misspelling, it probably should be StudentsInCategories

@Renatavl Renatavl requested a review from dudchakk November 2, 2024 19:25
boxSizing: 'border-box',
mt: '75px'
},

Copy link
Contributor

Choose a reason for hiding this comment

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

please remove the blank lines between the styles properties, as it is not the default style for our project

@Renatavl Renatavl force-pushed the feature/460/statistics-by-students-in-categories branch from 650038e to dbd4496 Compare November 14, 2024 00:21
@Renatavl Renatavl merged commit 25f9e27 into develop Nov 14, 2024
9 checks passed
@Renatavl Renatavl deleted the feature/460/statistics-by-students-in-categories branch November 14, 2024 00:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Frontend part Tutor Implementation that regard to the tutor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(SP: 2) [Tutor's Homepage] Implement block with statistics by students in categories
6 participants