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

Refactored ReportSummary and also migrate to typescript #240

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

sidtohan
Copy link
Contributor

Description

As per suggestions, following a step by step approach for the migration and refactoring for the attendance module.

Changes

Made the following changes:

  • migrated ReportSummary to typescript
  • added some custom hooks that can help to segregate the logic from the components(components will now mostly contain UI elements and some handlers)
  • added some more utility functions.

How to test

  1. Use the command
    lerna run start --parallel --scope='{attendance,core,@shiksha/common-lib,students}'
    to fire up just the attendance module and its related dependencies.
  2. Now the attendance module should behave completely normal since no change in anything else.

Modified ReportSummary

feature

@sidtohan sidtohan force-pushed the sidtohan/tsrefactor/attendance branch 2 times, most recently from 8c93750 to 8d25071 Compare July 29, 2022 14:56
@sidtohan sidtohan force-pushed the sidtohan/tsrefactor/attendance branch from 8d25071 to ab4c027 Compare August 1, 2022 17:20
@sidtohan
Copy link
Contributor Author

sidtohan commented Aug 1, 2022

@sagarkoshti1990 I've made the suggested changes, please have a look

…dule:

* migrated ReportSummary to typescript
* added some customhooks which may help in general use
* added some more utilities
* now using the template literals for the title heading property in the design state
* fix the util function names to follow camelcasing
* fix some issue regarding format date in Children component
* removed some unnecessary code from the utils
* fixed function names to better express their purpose
@sidtohan sidtohan force-pushed the sidtohan/tsrefactor/attendance branch from ab4c027 to 039825d Compare August 2, 2022 13:21
@sidtohan
Copy link
Contributor Author

sidtohan commented Aug 3, 2022

Ok @arajput I've made the suggested changes, please have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants