When LOIs are imported for a job that is not published, they do not show up in the map as they are not associated with any jobs.
We can bundle the import/delete LOI action within the publish job action:
[ ] Add a state to each LOI and manage the states so that in the edit job phase
[ ] user import LOIs, LOIs shows in edit page, user clicks publish button => LOIs shows in map page
[ ] user import LOIs, LOIs shows in edit page, user quits editing without clicking publish => LOIs does not show in map page
[ ] user delete LOIs, LOIs does not show in edit page, user clicks publish button => LOIs does not show in map page
[ ] user delete LOIs, LOIs does not show in edit page, user quits editing without clicking publish => LOIs shows in map page
[ ] Same behavior should happen to a new unpublished job
When LOIs are imported for a job that is not published, they do not show up in the map as they are not associated with any jobs.
We can bundle the import/delete LOI action within the publish job action:
[ ] Add a state to each LOI and manage the states so that in the edit job phase [ ] user import LOIs, LOIs shows in edit page, user clicks publish button => LOIs shows in map page [ ] user import LOIs, LOIs shows in edit page, user quits editing without clicking publish => LOIs does not show in map page [ ] user delete LOIs, LOIs does not show in edit page, user clicks publish button => LOIs does not show in map page [ ] user delete LOIs, LOIs does not show in edit page, user quits editing without clicking publish => LOIs shows in map page [ ] Same behavior should happen to a new unpublished job
More context: https://github.com/google/ground-platform/issues/1714#issuecomment-2200410314