Add notification quick-filter bar in the frontend app (#9399)
* create FilterBar componer and its container, unstyled * introduce basic styling for FilterBar * add selection css * allow FilterBar to display active CSS with js * connect the FilterBar to the Redux state * change getNotifications to use filter * remove temporary comments * add an option to turn the FilterBar off in settings * fix showFilterBar data type to boolean * fix eslint errors * add English and Polish translations * allowed filter bar overflow to accomodate for longer languages * fix mispelled translation key * add unified CSS look * replace text in FilterBar with icons * add tooltips * replace text @ with an icon * introduce simple and advanced filtering view * add ability to toggle the advanced view * add Polish translations * change Advanced View description to be more clear * make each filter flush notifications and load new ones, fixing pagination * simplify getNotifications once frontend filtering is not needed for FilterBar * add a semicolon * Revert "simplify getNotifications once frontend filtering is not needed for FilterBar" This reverts commit 9f4be7857135b0327814bd22a3e8a4e7b546f7cc. * reset filter to 'all' when turning off FilterBar
parent
5f0d3e8b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Affichage de
- app/javascript/mastodon/actions/notifications.js 23 ajouts, 1 suppressionapp/javascript/mastodon/actions/notifications.js
- app/javascript/mastodon/features/notifications/components/column_settings.js 15 ajouts, 3 suppressions...odon/features/notifications/components/column_settings.js
- app/javascript/mastodon/features/notifications/components/filter_bar.js 93 ajouts, 0 suppression.../mastodon/features/notifications/components/filter_bar.js
- app/javascript/mastodon/features/notifications/containers/column_settings_container.js 4 ajouts, 0 suppression...res/notifications/containers/column_settings_container.js
- app/javascript/mastodon/features/notifications/containers/filter_bar_container.js 16 ajouts, 0 suppression...features/notifications/containers/filter_bar_container.js
- app/javascript/mastodon/features/notifications/index.js 20 ajouts, 3 suppressionsapp/javascript/mastodon/features/notifications/index.js
- app/javascript/mastodon/locales/en.json 8 ajouts, 0 suppressionapp/javascript/mastodon/locales/en.json
- app/javascript/mastodon/locales/pl.json 8 ajouts, 0 suppressionapp/javascript/mastodon/locales/pl.json
- app/javascript/mastodon/reducers/notifications.js 3 ajouts, 0 suppressionapp/javascript/mastodon/reducers/notifications.js
- app/javascript/mastodon/reducers/settings.js 8 ajouts, 0 suppressionapp/javascript/mastodon/reducers/settings.js
- app/javascript/styles/mastodon/components.scss 46 ajouts, 0 suppressionapp/javascript/styles/mastodon/components.scss
Veuillez vous inscrire ou vous se connecter pour commenter