Pioneer: Applying for storage working group opening and final "Working groups" tab issues#742
Conversation
26b8dbf to
9d28469
Compare
|
Updated to include #618 and some of the fixes from #741:
Issues described in #741:
|
9d28469 to
0ca5864
Compare
There was a problem hiding this comment.
I left a comment about using correct type in one of the tx calls.
Tested the UI. Only thing I noticed that is incorrect (perhaps its existing behavior) but when appliccations are withdrawn, the total number of applications on an opening still counts the withdrawn applications.
Otherwise all works as expected.
|
Added fixes according to the comments. I noticed that there was a I added |
I don't think I was chaning anything there, it looks like this number just represents total number of applications regardless of their current status (which can be |
|
I actually found another issue related to those non-active applications. Because the status of them wasn't checked inside Should be fixed now. |
|
Updated with some UI adjustments following "Make lead hireable" changes (#726) that I already had on my branch locally. Also merged |
| 'new-cap': 'off', | ||
| '@typescript-eslint/interface-name-prefix': 'off' | ||
| '@typescript-eslint/interface-name-prefix': 'off', | ||
| '@typescript-eslint/ban-ts-comment': 'error' |
There was a problem hiding this comment.
That's a good one in general but I would use the option allow-with-description so we can use ts-ignore in specific cases. Recently I've worked with a library with stale typings and had to ignore typescript error to use some newer option.
| @@ -1,3 +1,5 @@ | |||
| // TODO: FIXME: Remove the ts-nocheck and fix errors! | |||
There was a problem hiding this comment.
It better to create github issues rather than TODO's in the code. We can label them with good first issue for contributors to find something simple and easy to work on.
| const tx = this.api.tx.contentWorkingGroup.acceptCuratorApplications(new u32(id)); | ||
| const tx = this.api.tx.contentWorkingGroup.acceptCuratorApplications(id); | ||
| // FIXME: That's a bad way to send extrinsic in Pioneer (without "queueExtrinsic" etc.) | ||
| // and probably the reason why it always appears as succesful |
There was a problem hiding this comment.
I'm sure here you mean that you are not handling case when the transaction returns an error, but is still finalized?
|
Works as expected. |

Implements: #597
Note that the listing of user's active applications for storage working group etc. is not implemented yet, as there is another issue for that (#618)
ts-ignore issue
While working on this issue I removed the
ts-ignoreinside/joy-roles/src/flows/apply.controller.tsxas it is a very bad practice to use it, because it silences a lot of potential TypeScript errors during the build. It should have actually been caught by eslinter'sban-ts-ignorerule, but for some reason it wasn't (perhaps because it wasn't added as a valid-syntax comment, but actually a string value inside jsx).This forced me to fix a few typing errors inside
/joy-roles/src/flows/apply.tsxthat were revealed once thets-ignorewas removed.Other pre-existing UI issues
I also decided to list all the pre-existing
Working Grouptab issues I was able to find in #741 to allow better understanding of the problems that may occur during testing, but were not actually introduced in this PR (I'll try to tackle those once theWorking Groupstab is fully adjusted to support Storage Working Group)