You can add and edit spaces from the UI, but you can't delete them yet. Ideally, adding and deleting spaces will only be allowed in development. Strapi CMS has the same concept. You can use the UI for more rapid development of the content types, but editing the config is turned off in production.
Similarly, I think you should only be able to edit the space members and a few other fields in production vs. being able to totally create and delete them. This can be done via env vars, process.env === 'production'.
Acceptance Criteria
[x] /api/space/[key] handles deletion as well as updates.
[x] admin/spaces/[key]/edit has a "Delete" button next to "Update"
[x] admin/spaces/[key]/delete is a confirmation page with one button to actually delete the space.
You can add and edit spaces from the UI, but you can't delete them yet. Ideally, adding and deleting spaces will only be allowed in development. Strapi CMS has the same concept. You can use the UI for more rapid development of the content types, but editing the config is turned off in production.
Similarly, I think you should only be able to edit the space members and a few other fields in production vs. being able to totally create and delete them. This can be done via env vars,
process.env === 'production'
.Acceptance Criteria
/api/space/[key]
handles deletion as well as updates.admin/spaces/[key]/edit
has a "Delete" button next to "Update"admin/spaces/[key]/delete
is a confirmation page with one button to actually delete the space.