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

refactor(utils): distribute color, numbers, strings and other group of functions into separate util files from misc.ts (sanidhyas3s) #5254

Merged
merged 20 commits into from Apr 3, 2024

Conversation

sanidhyas3s
Copy link
Contributor

@sanidhyas3s sanidhyas3s commented Mar 25, 2024

Description

Big ol' refactoring

  • Divide functions for color, numbers, strings, arrays and more from misc.ts
  • add doc-strings for all these functions
  • refactor wherever these functions were being used

Checks

  • Adding quotes?
    • Make sure to include translations for the quotes in the description (or another comment) so we can verify their content.
  • Adding a language or a theme?
    • If is a language, did you edit _list.json, _groups.json and add languages.json?
    • If is a theme, did you add the theme.css?
      • Also please add a screenshot of the theme, it would be extra awesome if you do so!
  • Check if any open issues are related to this PR; if so, be sure to tag them below.
  • Make sure the PR title follows the Conventional Commits standard. (https://www.conventionalcommits.org for more info)
  • Make sure to include your GitHub username inside parentheses at the end of the PR title

Closes #5187 (Not yet)

@monkeytypegeorge monkeytypegeorge added the frontend User interface or web stuff label Mar 25, 2024
Copy link
Contributor

github-actions bot commented Apr 1, 2024

This PR is stale. Please trigger a re-run of the PR check action.

@github-actions github-actions bot added the Stale Has not been updated in a while label Apr 1, 2024
@Miodec
Copy link
Member

Miodec commented Apr 2, 2024

Could you have a look at the merge conflicts please?

@Miodec Miodec added the waiting for update Pull requests or issues that require changes/comments before continuing label Apr 2, 2024
@sanidhyas3s
Copy link
Contributor Author

Could you have a look at the merge conflicts please?

Sure, on it!

@sanidhyas3s
Copy link
Contributor Author

@Miodec Done I guess, was mostly new uses of functions I shifted and some files being deleted in which I refactored for the shifted functions.

@monkeytypegeorge
Copy link
Collaborator

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/8527459287

@github-actions github-actions bot removed the Stale Has not been updated in a while label Apr 2, 2024
Copy link
Member

@Miodec Miodec left a comment

Choose a reason for hiding this comment

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

Good so far, just a few minor tweaks.

frontend/src/ts/elements/profile.ts Outdated Show resolved Hide resolved
frontend/src/ts/utils/numbers.ts Outdated Show resolved Hide resolved
frontend/src/ts/utils/misc.ts Outdated Show resolved Hide resolved
frontend/src/ts/utils/misc.ts Outdated Show resolved Hide resolved
frontend/src/ts/utils/get-text.ts Outdated Show resolved Hide resolved
frontend/src/ts/utils/get-data.ts Outdated Show resolved Hide resolved
@sanidhyas3s
Copy link
Contributor Author

Good so far, just a few minor tweaks.

Great, will check the reviews after a couple of hours, once I am free from classes

@sanidhyas3s sanidhyas3s changed the title refactor(utils): distribute color, numbers, get-data and get-text type functions into separate util files from misc.ts (sanidhyas3s) refactor(utils): distribute color, numbers, strings and other group of functions into separate util files from misc.ts (sanidhyas3s) Apr 3, 2024
@monkeytypegeorge
Copy link
Collaborator

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/8544395331

1 similar comment
@monkeytypegeorge
Copy link
Collaborator

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/8544395331

@monkeytypegeorge
Copy link
Collaborator

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/8544533690

@monkeytypegeorge
Copy link
Collaborator

Continuous integration check(s) failed. Please review the failing check's logs and make the necessary changes. https://github.com/monkeytypegame/monkeytype/actions/runs/8544569070

@Miodec Miodec merged commit 39e611d into monkeytypegame:master Apr 3, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend User interface or web stuff waiting for update Pull requests or issues that require changes/comments before continuing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Split misc.ts into smaller util files
3 participants