Phase 2: Invite links UI to call GQL#1921
Conversation
fbd9d95 to
4ef535a
Compare
c6cfc0e to
960a7b9
Compare
960a7b9 to
0ad3331
Compare
91846c8 to
64def18
Compare
4d8ccc6 to
802db91
Compare
4003bff to
401a159
Compare
kiahna-tucker
left a comment
There was a problem hiding this comment.
Releasing review comments while manual testing is underway.
Given the Active Invite Links table no longer has selectable rows, please remove all remaining instances of SelectTableStoreNames.ACCESS_GRANTS_LINKS. At least one instance exists within the codebase given src/context/Zustand/invariableStores.ts is not in the change list.
| if (error.networkError) { | ||
| setTableState({ status: TableStatuses.NETWORK_FAILED }); | ||
| } else { | ||
| setTableState({ status: TableStatuses.TECHNICAL_DIFFICULTIES }); | ||
| } |
There was a problem hiding this comment.
This syntax can be consolidated:
setTableState({ status: error.networkError ? TableStatuses.NETWORK_FAILED : TableStatuses.TECHNICAL_DIFFICULTIES });| createInviteLink(_result, _args, cache) { | ||
| invalidateQuery(cache, 'inviteLinks'); | ||
| }, | ||
| deleteInviteLink(_result, _args, cache) { | ||
| invalidateQuery(cache, 'inviteLinks'); | ||
| }, |
There was a problem hiding this comment.
I am assuming (hoping) that was only have to manually manage this currently since we are not using the GraphCache right now?
There was a problem hiding this comment.
Did some more reading and this is not true. Oh well.
* wip * feedback
travjenkins
left a comment
There was a problem hiding this comment.
1 small change to add a new LR event. Working on testing now.
| {hasData ? ( | ||
| <TableFooter> | ||
| <TableRow> | ||
| <TablePagination |
There was a problem hiding this comment.
Had video call - but adding this comment so we have a history.
Pagination is a bit messed up when you have multiple pages and click back. The first time the page updates but the data in the table does not.
There was a problem hiding this comment.
There is another issue - might be related.
If you block the gql endpoint and click through pagination it is not clear that no data was sent back. If that happens the "network issue" should show up on the tabe.


Verify: