Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

reinitiate manifest array field state on refresh #677

Open
dpgraham4401 opened this issue Jan 10, 2024 · 0 comments
Open

reinitiate manifest array field state on refresh #677

dpgraham4401 opened this issue Jan 10, 2024 · 0 comments
Labels
client Related to front end workings (React/Redux) enhancement New feature or enhancement test Unit tests are, or need to be, included

Comments

@dpgraham4401
Copy link
Member

🚀 Feature Request

To enhance the UX, it's annoying that we have to re-add the transporters and waste lines every time the manifest form refreshes for a draft manifest (which happens often in a development environment). Currently, the generator and TSDF are stored in a URL parameter and retrieved on refresh.

We could also implement a similar feature for transporters since they are also retrieved from the haztrak db, waste lines represent a more unique challenge since we don't save waste lines to the database unless they're associated with a manifest (which does not exists until the manifest has been saved).

Options:

  1. use the browser API to store waste lines.
  2. Start saving waste lines to the haztrak db every time a new waste lines is created/updated.
    • I'm not a fan of option 2 because it would create orphan waste lines. These could be cleaned up periodically but the risk of deleting waste lines that are still attached to a manifest is present.
    • It's additional network traffic
@dpgraham4401 dpgraham4401 added enhancement New feature or enhancement client Related to front end workings (React/Redux) test Unit tests are, or need to be, included labels Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Related to front end workings (React/Redux) enhancement New feature or enhancement test Unit tests are, or need to be, included
Projects
No open projects
Status: 🆕 ToDo
Development

No branches or pull requests

1 participant