MuckRock / documentcloud-frontend

DocumentCloud's front end source code - Please report bugs, issues and feature requests to info@documentcloud.org
https://www.documentcloud.org
GNU Affero General Public License v3.0
18 stars 5 forks source link

Metadata in SvelteKit version not saving #852

Open morisy opened 2 days ago

morisy commented 2 days ago

Saving metadata to a document does not appear to be working in the SvelteKit branch:

https://drive.google.com/file/d/1_E9u6uY2AtbV_u01DyC9bWPGwVm4drQN/view?usp=share_link

eyeseast commented 1 day ago

Two things happening here that I can see:

We can probably do optimistic updates to fix the first issue.

I want to think about how we pre-populate, because it gets trickier the more things you're editing at once. But if you're just selecting one document, we can probably just give you the same Edit.svelte form you get in the viewer.