Commit Graph

11 Commits (3211e960ac793b1b9431a7eea40b385272f1a2a6)

Author SHA1 Message Date
Matt Jankowski b5115850bb
Move repeated `insert_pagination_headers` method to api base class ()
Matt Jankowski 9754967d5f
Move `pagination_max_id` and `pagination_since_id` into api/base controller ()
Matt Jankowski c0e8e457ab
Eager loading fixes for `api/` controllers ()
Nick Schonning e2a3ebb271
Autofix Rubocop Style/IfUnlessModifier ()
Eugen Rochko e6b272e5c9
Change REST API to return empty data for suspended accounts ()
Eugen Rochko d6b9a62e0a
Extract counters from accounts table to account_stats table ()
Quint Guvernator da13fa5021 Fix low-hanging rubocop gripes ()
* rubocop: quit being so picky

* rubocop: miscellany

* rubocop: prefer present to blank
Eugen Rochko 1f6ed4f86a
Add more granular OAuth scopes ()
* Add more granular OAuth scopes

* Add human-readable descriptions of the new scopes

* Ensure new scopes look good on the app UI

* Add tests

* Group scopes in screen and color-code dangerous ones

* Fix wrong extra scope
Eugen Rochko 33513753b9
Fix unpermitted parameters warning when generating pagination URLs ()
Eugen Rochko e20895f251
Add list of lists component to web UI ()
* Add list of lists component to web UI

* Add list adding

* Add list removing

* List editor modal

* Add API account search limited by following=true relation

* Rework list editor modal

* Remove mandatory pagination of GET /api/v1/lists/:id/accounts

* Adjust search input placeholder

* Fix rspec ()

* i18n: (zh-CN) Add missing translations for  ()

* i18n: (zh-CN) yarn manage:translations -- zh-CN

* i18n: (zh-CN) Add missing translations for 

* Fix some issues

- Display loading/missing state for list timelines
- Order lists alphabetically in overview
- Fix async list editor reset
- Redirect to /lists after deleting unpinned list
- Redirect to / after pinning a list

* Remove dead list columns when a list is deleted or fetch returns 404
Eugen Rochko 24cafd73a2
Lists ()
* Add structure for lists

* Add list timeline streaming API

* Add list APIs, bind list-account relation to follow relation

* Add API for adding/removing accounts from lists

* Add pagination to lists API

* Add pagination to list accounts API

* Adjust scopes for new APIs

- Creating and modifying lists merely requires "write" scope
- Fetching information about lists merely requires "read" scope

* Add test for wrong user context on list timeline

* Clean up tests