getodk / getodk/central

Share updates to submission across tabs

Open
#646 1 comment 0 reactions 0 assignees View on GitHub
frontend
Dominant language
JavaScript
Stars
226
Forks
235
Avg merge
2d 22h
Merged PRs (30d)
19

Description

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`](https://developer.mozilla.org/en-US/docs/Web/API/BroadcastChannel), which is at last supported in Safari. getodk/central#1284 is another issue for which we might use `BroadcastChannel`.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.