fecgov / fecfile-web-app

7 stars 4 forks source link

System to inform users that cookies and local storage need to be enabled in their browser to use FECFile #1744

Open lbeaufort opened 4 months ago

lbeaufort commented 4 months ago

Business Reason

As a FECFile user, I will be able to figure out why FECFile isn't working when I have my cookies and storage turned off so that I can re-enable them and use FECFile.

Acceptance Criteria

Given user accesses FECFile web browser with setting to block cookies turned on, When I access FECFile landing page (any page?) Then I will receive a message that the site is blocked and I must enable cookies.

QA Notes

Request to access cookie or storage on “<URL>” was blocked because we are blocking all storage access requests. 8
DOMException: The operation is insecure.
    bu ngrx-store-localstorage.mjs:203
    bu app.module.ts:58
    Qt ngrx-store.mjs:351
    Qt ngrx-store.mjs:351
    Kn ngrx-store.mjs:362
    he ngrx-store.mjs:392
    fac ngrx-store.mjs:443
    Angular 9
    fac ngrx-store.mjs:217
    Angular 23
main.ts:13:24
Screenshot 2024-02-21 at 2 16 35 PM

Design

null

AureliaKhorsand commented 3 months ago

@lbeaufort is the idea here that we will be able to display a front-end, user friendly message based on the message received (that you screenshotted above)? You mentioned Committee Administrator in the business reason, but I assume it would be applicable to any user?

@mjtravers @toddlees any technical considerations before we pass this off to design?

toddlees commented 3 months ago

@AureliaKhorsand looks good to me. It might be worth specifying that this alert will need to happen before login because that functionality depends on cookies

lbeaufort commented 3 months ago

@lbeaufort is the idea here that we will be able to display a front-end, user friendly message based on the message received (that you screenshotted above)? You mentioned Committee Administrator in the business reason, but I assume it would be applicable to any user?

@AureliaKhorsand yes, any user, thanks!

AureliaKhorsand commented 1 month ago

@GreggMoreland can you write up the ACs before we pass along to design?

AureliaKhorsand commented 1 month ago

@lbeaufort should we account for a scenario where they turn off cookies while logged in to FECFile, and upon refresh, no matter what page they're on, they get the message to enable cookies? Basically, I don't want to just put it on the landing page before long because I'm guessing it may be a problem elsewhere too. Is that right?

lbeaufort commented 1 month ago

@lbeaufort should we account for a scenario where they turn off cookies while logged in to FECFile, and upon refresh, no matter what page they're on, they get the message to enable cookies? Basically, I don't want to just put it on the landing page before long because I'm guessing it may be a problem elsewhere too. Is that right?

@AureliaKhorsand apologies for the delay! I defer to the PM/BA/UX team on desired behavior.