urbit / bridge

An application for interacting with Azimuth.
MIT License
96 stars 25 forks source link

invites: refactor to reflect accurate status #990

Closed arthyn closed 2 years ago

arthyn commented 2 years ago

This PR attempts to fix both #940 and #947. Any logic dealing with invites was moved to the useInvites hook to help get useRoller smaller and clean up some of the component files.

Invites now only ever get added if they are correct, so we either show a status of 'updating' or we show the correct number. Also when generating invites for the first time, we give a modal explaining what's happening and showing progress.

In addition, I did a bit of drive by refactoring to convert some files to Typescript and also removing any unused files, like the old useInvites and anything to do with L1 invites.

arthyn commented 2 years ago

Also fixes #978