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

Share updates to submission across tabs #646

Open
matthew-white opened this issue Jan 21, 2023 · 1 comment
Open

Share updates to submission across tabs #646

matthew-white opened this issue Jan 21, 2023 · 1 comment
Labels
enhancement New feature or behavior frontend Requires a change to the UI

Comments

@matthew-white
Copy link
Member

matthew-white commented Jan 21, 2023

Right now, the following sequence is possible:

  • Navigate to the submissions table.
  • Open an individual submission in a new tab by clicking the More button.
  • In the new tab, make a change to the submission.
  • Return to the first tab. The submissions table does not reflect the change made in the new tab.

There are a couple of different updates that could happen in the new tab:

  1. The submission's review state is updated.
  2. The submission is edited (that is, a new version of the submission is created).

We can definitely hook into (1). For (2), is Frontend able to detect when the user completes an edit in Enketo? (In that case, Enketo redirects to Frontend. We can probably check for that, right?)

I'm thinking that this may be a good use case for BroadcastChannel, which is at last supported in Safari. getodk/central-frontend#706 is another issue for which we might use BroadcastChannel.

@matthew-white matthew-white added the enhancement New feature or behavior label Jan 21, 2023
@matthew-white
Copy link
Member Author

Should we also do something similar for updates to entities (including resolving a conflict)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or behavior frontend Requires a change to the UI
Projects
None yet
Development

No branches or pull requests

1 participant