Show errors more prominently and show token source #228
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There is the little bubble in the lower right corner but I think showing the error next to the field or in the table can help identify problems more quickly and in cases where we prompt for a token again I think it is a bit non-obvious at first why it suddenly appears when there is no accompanying text.
Also hoping it will help in cases like #226 where "nothing to show" could mean the workspaces list response was empty or it could mean any number of things went wrong while trying to connect.
As I was doing this I made the token nullable which meant I would have to add a null check in
connect
as it pulled from the local model even though technically it could never be null (we always set it before callingconnect
) so I refactored it to not rely on the local model, you just pass things in now.