Skip to content

Conversation

@arlowhite
Copy link
Collaborator

@arlowhite arlowhite commented Nov 30, 2025

Persist Site Assessment project state.

  • save assessment criteria
  • save/restore assessment jobs
  • save map view (center & zoom)
  • move ADRIA tab delete to menu (remove X button)
  • cleanup ADRIA project CSS (not sure how :deep() ever worked)
  • various refactoring, code improvements
  • routed components are responsible for getting/injecting projectId

Significant Changes

I disagree with reverting to default project state when a project is found to be invalid. This is no different than the user creating a new project. Also, the fallback to local storage was not safe (all project shared same key, no date checks, etc). So instead invalid project state shows an error - either developers implement a migration to fix that project state, or users just move on and create a new project.

Limitations/TODO

Currently, job layer is restored if job succeeded. Ideally, reload would attach to in-progress job as well. Doing this requires some cleanup of related code: #233

Also checking job cache_valid will be done in:
#193

@github-actions
Copy link

❌ Code formatting check failed. Please run pnpm run format:write locally and commit the changes.

@arlowhite arlowhite merged commit 6c34726 into main Nov 30, 2025
2 checks passed
@arlowhite arlowhite deleted the feature/persist-site-assessment branch November 30, 2025 23:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants