Closes #107 (at least until we need to figure out a good shared auth solution)
Changes made
Redefined the previous API logic so that it's all behind a CoderClient class
Also defined a stub/mock CoderSdk class that the CoderClient relies on, so that it will be easier to bring in the real Coder SDK down the line. The thinking is that it will be a matter of swapping the mock for the real thing
Defined client to consume Backstage APIs directly, reducing the amount of APIs that needed to be grabbed from within the React UI, and manually passed around for the API calls
Made a new useCoderSdk hook
We aren't exporting this to the end user just yet, but it will be easy to do that once the full SDK is brought in
Main point is making us start dogfooding it for the rest of the UI components
Centralized some of the mock server endpoint logic
Closes #107 (at least until we need to figure out a good shared auth solution)
Changes made
CoderClient
classCoderSdk
class that theCoderClient
relies on, so that it will be easier to bring in the real Coder SDK down the line. The thinking is that it will be a matter of swapping the mock for the real thinguseCoderSdk
hook