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

Persist Flottform states in chrome.storage and restore UI state on Popup mount #82

Open
3 tasks
TamaraBogantseva opened this issue Oct 29, 2024 · 1 comment
Assignees

Comments

@TamaraBogantseva
Copy link
Contributor

TamaraBogantseva commented Oct 29, 2024

Description

Save Flottform current states in chrome.storage. On mounting the popup, check each saved entry’s state to determine its current status. For example, if an endpoint has been created, retrieve the corresponding QR code and link, then update the UI to reflect these details.

This approach ensures that users can resume tasks seamlessly even if they close and reopen the popup or switch contexts within the extension.

Links / References

\

Tasks / Definition of Done

  • Implement logic to save Flottform states to chrome.storage whenever they change.
  • On popup mount, retrieve stored states from chrome.storage and check each entry’s state.
  • Update the popup UI based on the retrieved state (e.g., display the QR code and link if an endpoint exists).

Further information

This improves the user experience by maintaining state across popup sessions, reducing interruptions. Ensure states are updated accurately to avoid displaying outdated information in the UI.

@nidhal-labidi
Copy link
Contributor

This should be working for this commit: aa96579
Note: For now it works only with text fields (sending/receiving texts). In the future, when we will have to deal with files, we must make sure that the UI changes for the all the events including progress

@nidhal-labidi nidhal-labidi self-assigned this Nov 5, 2024
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

No branches or pull requests

2 participants