EsperoTech / yaade

Yaade is an open-source, self-hosted, collaborative API development environment.
MIT License
1.56k stars 68 forks source link

Align save collection call with overall project architecture #115

Open n14s opened 10 months ago

n14s commented 10 months ago

The common approach for api call from the frontend in this project is, that they are defined in the api/index and passed from the Dashboard.tsx to the components. The save collection call in the the collection panel is not doing that.

https://github.com/EsperoTech/yaade/blob/0c83d78ce1e09625ba1d93907e49332dd0c58eea/client/src/components/collectionPanel/CollectionPanel.tsx#L55-L64

jonrosner commented 10 months ago

We'll have to consider how to structure the project best when we want to introduce the command palette. Basically all "actions" a user can take (like clicking a button) will have to be defined way up in the hierarchy in some kind of "command" component. This will also include the save collection action.