Skip to content

Conversation

@Lezek123
Copy link
Contributor

@Lezek123 Lezek123 commented Aug 21, 2020

Implements:

Changes:

  • Moved some more code into the new joy-utils
  • Reactivated joy-roles
  • All the necessary adjustments (creating types, replaced linked maps usages in the transports etc.)
  • Did some refactorization of the components structure inside joy-utils to avoid unnecessary re-renders that could lead to loss of data in the forms, problems when resizing the page and generally poor UX and optimalization. The main issue was that custom "render functions" were used in a few places instead of standard React components. When those functions were called after some state update - everything that they previously rendered was getting re-rendered from scratch and all the previous state in child components was lost.
  • Fixed lots of linter issues (mostly regarding the abuse of any type)
  • Some minor adjustments to linter rules
  • Some minor tooling adjustments (made jest available again which allows running yarn workspace @polkadot/joy-roles test, added generate:json-schemas scripting in @joystream/types to allow updating hiring/schemas/role.schema.json, configured webapck to handle .scss files, added back tsconfig-paths-webpack-plugin to allow running storybook in the future)

I ignored the storybook files that already had ts-nocheck, the rest of the files I tried to upgrade as the cost wasn't very high. That means that a few of the stories will probably work and the rest can be updated later if needed. Currently the storybook fails because not all packages are upgraded yet (ie. joy-media), but I'll try to make it usable at the end of upgrading Pioneer.

Draft:
Based on: #1176 with #1177 merged (for a few additional types exposed in the registry)

@Lezek123 Lezek123 marked this pull request as draft August 21, 2020 16:13
@Lezek123
Copy link
Contributor Author

Lezek123 commented Sep 1, 2020

Covered by #1195

@Lezek123 Lezek123 closed this Sep 1, 2020
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.

1 participant