This PR creates an endpoint for fetching one receiving ID so that users can view rarities, tooltip images, and other card list metadata. The bulk of the work was confined to the interactor for this controller, where we had to use multiple joins via $lookup to resolve user and bulk card info on entity ID's.
On the client, we pass receivingId to the dialog component and fetch this information on mount. The query and return types were also written.
It quickly became a grab-bag PR that also includes:
Using MUI's Tooltip component over rolling our own solution
Centralizing Collection names with an enum
Extracting <Loading />
Improvements (maybe?) that allow us to run TS tests from the built code. I'm still not convinced that ts-jest is even doing work here
Summary
This PR creates an endpoint for fetching one receiving ID so that users can view rarities, tooltip images, and other card list metadata. The bulk of the work was confined to the interactor for this controller, where we had to use multiple joins via
$lookup
to resolve user and bulk card info on entity ID's.On the client, we pass
receivingId
to the dialog component and fetch this information on mount. The query and return types were also written.It quickly became a grab-bag PR that also includes:
Tooltip
component over rolling our own solution<Loading />
ts-jest
is even doing work herepackage.json
script consolidation