Problem
Proposed solution
It's common for many platforms these days to add in an option to allow users to be reminded when they're about to upload an image without alt text (e.g. BlueSky has it in settings > accessibility "require alt-text before posting"). It'd be nice to have a similar option. Not to mention for those who may not want a modal (or forced option), if they could add (or fix typo's they may have made!) in alt text after upload.Notes (optional)
Looks like looking at the rough code, I think the implementation (at least for the warning) would roughly be:- Add a new value to the accessibility store: https://github.com/fluxerapp/fluxer/blob/canary/fluxer_app/src/stores/AccessibilityStore.tsx#L104
- Add a UI element to the accessibility settings page, to configure this warning: https://github.com/fluxerapp/fluxer/blob/canary/fluxer_app/src/components/modals/tabs/AccessibilityTab/VisualTab.tsx#L55
- Modify submit attachment, to check the accessibility store for this setting for whether or not to spawn a new modal: https://github.com/fluxerapp/fluxer/blob/refactor/fluxer_app/src/components/modals/AttachmentEditModal.tsx#L62-L82
- Create a new modal component with a warning.
1 comment
Comment by @pieartsy