1
0
mirror of https://github.com/glitch-soc/mastodon.git synced 2025-02-17 08:03:53 -05:00

26 Commits

Author SHA1 Message Date
Paweł Ngei
13dce12665 Add notification quick-filter bar in the frontend app ()
* 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
2018-12-16 05:56:41 +01:00
ThibG
5648b30d6c Fix last_status parameter for notifications and conversations () 2018-12-01 18:36:41 +01:00
Eugen Rochko
3cecf3e5b9
Fix loading indicator inconsistency ()
* Use global loading indicator when loading more items

* Use local loading indicator for notifications

And remove global loading indicator for initial custom emojis load
2018-11-10 15:04:13 +01:00
Eugen Rochko
cfeb3beb4e
Fix filters not affecting notifications in web UI ()
* Hook up filtering to statuses in notifications column

* Filter notifications for sound, desktop notifications
2018-07-07 19:31:19 +02:00
Eugen Rochko
4b94e9c65e
Improve payload format of Web Push API now that it's open ()
> Good lord what is happening in there

Previously the contents of the Web Push API payloads closely resembled the structure of JavaScript's [Notification](https://developer.mozilla.org/en-US/docs/Web/API/Notification). But now that the API is open to non-browser apps, and given that there is no required coupling between contents of the payload and a Notification object, here is how I changed the payload:

```json
{ 
  "access_token": "...",
  "preferred_locale": "en",
  "notification_id": "12345",
  "notification_type": "follow",
  "title": "So and so followed you",
  "body": "This is my bio",
  "icon": "https://example.com/avatar.png"
}
```

The title, body and icon attributes are included as a fallback so you can construct a minimal notification if you cannot perform a network request to the API to get more data.
2018-05-19 14:46:47 +02:00
Eugen Rochko
dafd7afc5e
Use randomized setTimeout when fallback-polling and re-add since_id () 2018-05-18 02:32:35 +02:00
Eugen Rochko
d185f3ddaf
Use plaintext value for field value tooltips in web UI ()
Fix 
2018-05-07 09:30:38 +02:00
Eugen Rochko
9e45b051cf
When notification type filtered, ignore live updates for it ()
Fix 
2018-04-13 01:20:04 +02:00
unarist
41452e8302 Fix TypeError on follow notification ()
`notification.status` may not be present, e.g. follow notification.
2018-03-29 12:59:12 +02:00
Akihiko Odaki
cbf97c03bb Allow clients to fetch notifications made while they were offline () 2018-03-24 22:07:23 +01:00
Akihiko Odaki
fe398a098e Store objects to IndexedDB () 2018-03-24 13:06:27 +01:00
Eugen Rochko
4f7f6b3922
Fix follow relationships not loading after notifications fetch () 2018-03-12 03:20:56 +01:00
Noiob
94230fe565 Fix newlines-to-spaces functionality ()
yay for regexes, amirite
2018-01-02 19:35:24 +01:00
Ondřej Hruška
ae716a12e1 replace newlines in desktop notif with spaces instead of removing them () 2017-10-14 14:41:12 +02:00
Sorin Davidoi
cc68d1945b refactor: Rewrite immutablejs import statements using destructuring () 2017-07-11 01:00:14 +02:00
Yamagishi Kazutoshi
eff9416469 Remove unused variables () 2017-06-23 16:05:04 +02:00
Eugen Rochko
47bf7a8047 Fix - Refactor timelines reducer ()
* Move ancestors/descendants out of timelines reducer

* Refactor timelines reducer

All types of timelines now have a flat structure and use the same
reducer functions and actions

* Reintroduce some missing behaviours

* Fix wrong import in reports

* Fix includes typo

* Fix issue related to "next" pagination in timelines and notifications

* Fix bug with timeline's initial state, expandNotifications
2017-06-11 17:07:35 +02:00
Yamagishi Kazutoshi
2e112e2406 Improve eslint rules ()
* Add semi to ESLint rules

* Add padded-blocks to ESLint rules

* Add comma-dangle to ESLint rules

* add config/webpack and storyboard

* add streaming/

* yarn test:lint -- --fix
2017-05-20 17:31:47 +02:00
beatrix
3dcb5fa28f Revert HTML CW changes ()
* selectively Revert "Fix regressions from  ()"

This reverts commit 72698bc3b49925a2b2955f32e5a562c1eecd729b.

* Revert "Handle hashtags in spoiler_texts (partial fix for ) ()"

This reverts commit e2491680e696d2c285a798ec4c66b26d2748df66.
2017-05-13 04:03:43 +02:00
Eugen Rochko
e0c3ed29d8 Fix locales again ()
* Normalize locales

* Restore "mention" locale key
2017-05-12 14:46:21 +02:00
Yamagishi Kazutoshi
88fd5cb688 Focus tab of Mastodon when clicking notification () 2017-05-11 13:34:05 +02:00
Yamagishi Kazutoshi
7ff84cb07e Refine unescapeHTML () 2017-05-11 02:22:40 +02:00
Eugen Rochko
72698bc3b4 Fix regressions from ()
* Fix regressions from 

Properly format spoiler text HTML, while keeping old logic for blankness intact
Process hashtags and mentions in spoiler text
Format spoiler text for Atom
Change "show more" toggle into a button instead of anchor
Fix style regression on dropdowns for detailed statuses

* Fix lint issue

* Convert spoiler text to plaintext in desktop notifications
2017-05-11 00:28:10 +02:00
Yamagishi Kazutoshi
42eb841dc2 Remove jquery-ujs ()
* Remove jquery-ujs

* fix for eslint
2017-05-09 14:50:43 +02:00
Eugen Rochko
eddb95b012 When streaming API is disconnected, poll home/notifications ()
* When streaming API is disconnected, poll home/notifications
Display slightly different empty home timeline message if user is following others
Cull notifications to 20 items when over 40 get added in real-time
Run manage:translations

* Optimize <HomeTimeline /> a little
2017-05-04 23:41:34 +02:00
Eugen Rochko
f5bf5ebb82 Replace sprockets/browserify with Webpack ()
* Replace browserify with webpack

* Add react-intl-translations-manager

* Do not minify in development, add offline-plugin for ServiceWorker background cache updates

* Adjust tests and dependencies

* Fix production deployments

* Fix tests

* More optimizations

* Improve travis cache for npm stuff

* Re-run travis

* Add back support for custom.scss as before

* Remove offline-plugin and babili

* Fix issue with Immutable.List().unshift(...values) not working as expected

* Make travis load schema instead of running all migrations in sequence

* Fix missing React import in WarningContainer. Optimize rendering performance by using ImmutablePureComponent instead of
React.PureComponent. ImmutablePureComponent uses Immutable.is() to compare props. Replace dynamic callback bindings in
<UI />

* Add react definitions to places that use JSX

* Add Procfile.dev for running rails, webpack and streaming API at the same time
2017-05-03 02:04:16 +02:00