yaade icon indicating copy to clipboard operation
yaade copied to clipboard

Align save collection call with overall project architecture

Open n14s opened this issue 1 year ago • 1 comments

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

n14s avatar Dec 02 '23 19:12 n14s

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.

jonrosner avatar Dec 02 '23 20:12 jonrosner