ohcnetwork / care_fe

Care is a Digital Public Good enabling TeleICU & Decentralised Administration of Healthcare Capacity across States.
https://care.ohc.network
MIT License
204 stars 372 forks source link

Show alert/popup/warning notification when opening Care on older/unsupported browsers #8403

Closed rithviknishad closed 3 days ago

rithviknishad commented 3 weeks ago

Is your feature request related to a problem? Please describe. CARE may use functions that may not be available on older browsers of users. This may lead to certain pages within CARE to crash when such browser unsupported functions are invoked.

Describe the solution you'd like Based on the browserslist configured for the project, show a alert/popup/warning notification when users open CARE on such older/unsupported browsers.

We could use the following to achieve it:

Additional context Recent issue that was caused due to older browser unsupported:

AdityaJ2305 commented 3 weeks ago

Hey @rithviknishad, can you assign this issue to me?

AdityaJ2305 commented 2 weeks ago
Screenshot 2024-08-24 at 10 02 31 PM

Is the CSS for the BrowserWarning component okay, or should I adjust it?
and Can I put this browserWarning comp in the ErrorPages folder in the component ?

Adiflickzzz commented 2 weeks ago
Screenshot 2024-08-24 at 10 02 31 PM

Is the CSS for the BrowserWarning component okay, or should I adjust it?

and Can I put this browserWarning comp in the ErrorPages folder in the component ?

In which browser did you face this issue can u plz say me ..

AdityaJ2305 commented 2 weeks ago
Screenshot 2024-08-24 at 10 02 31 PM

Is the CSS for the BrowserWarning component okay, or should I adjust it? and Can I put this browserWarning comp in the ErrorPages folder in the component ?

In which browser did you face this issue can u plz say me ..

You can change the default browser for testing in the inspect so it will behave like that only . I had changed to opera mini which is unsupported as per browserlist in package.json