Repository navigation
feat: rename workspace - #163
Conversation
kantord
left a comment
There was a problem hiding this comment.
Great job!
The only thing I'm slightly missing is a test that actually tests the process of renaming using an MSW handler for the relevant endpoint as well.
But there is no reason to block a release because of that at all
| const handleSubmit = (e: FormEvent<HTMLFormElement>) => { | ||
| e.preventDefault(); | ||
| mutate({ body: { name: workspaceName, rename_to: name } }); | ||
| }; | ||
|
|
There was a problem hiding this comment.
There is a hook in the system prompt editor useSavedStatus
We could re-use it here to show a pending+confirmation state
There was a problem hiding this comment.
mm I saw it, honestly I don't see the value 🤔
I mean we have isPending and the onSuccess callback for notification, why we need this hook?
There was a problem hiding this comment.
Just to provide visual feedback that it has been saved — also for consistency.
Feel free to merge without this — I would like to go back and standardise it - but it's deffo not a blocker.
There was a problem hiding this comment.
I mean, I would prefer to show a notification after a mutation, I would standardise the notification approach after a mutation...wdyt?
There was a problem hiding this comment.
That's a valid option too
There was a problem hiding this comment.
Let's merge as is and standardise on something in next iteration?
yep, let me add it in a next PR, avoid block the release if it makes sense to you |
exactly, that is what I'm thinking |
Pull Request Test Coverage Report for Build 12905363452Details
💛 - Coveralls |
Kapture.2025-01-22.at.10.27.10.mp4