compose-us / flottform

A better UX for file uploads #build-in-public
https://github.com/compose-us/build-in-public/blob/main/README.md#ux-improvement-for-file-uploads-in-web-forms-working-title-flottform
1 stars 0 forks source link

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

Open TamaraBogantseva opened 2 weeks ago

TamaraBogantseva commented 2 weeks ago

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

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 commented 1 week ago

This should be working for this commit: https://github.com/compose-us/flottform/commit/aa965793ad41bbd0a11316cb585ed7a4405b2a23 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