Commit Graph

43 Commits

Author SHA1 Message Date
Eugen Rochko
cdb101340a
Keyword/phrase filtering ()
* Add keyword filtering

    GET|POST       /api/v1/filters
    GET|PUT|DELETE /api/v1/filters/:id

- Irreversible filters can drop toots from home or notifications
- Other filters can hide toots through the client app
- Filters use a phrase valid in particular contexts, expiration

* Make sure expired filters don't get applied client-side

* Add missing API methods

* Remove "regex filter" from column settings

* Add tests

* Add test for FeedManager

* Add CustomFilter test

* Add UI for managing filters

* Add streaming API event to allow syncing filters

* Fix tests
2018-06-29 15:34:36 +02:00
Eugen Rochko
0deb9fa6b9
Remove trending hashtags ()
* Delete trends_controller.rb

* Update routes.rb

* Update trending_tags.rb

* Update index.js

* Update index.js

* Update search_results.js

* Update async-components.js

* Update index.js

* Delete trends.js

* Delete trends.js

* Delete trends_container.js

* Delete trends.js

* Update search_results.js

* Update search_results_container.js
2018-06-04 02:18:18 +02:00
Yamagishi Kazutoshi
69b45350fe Add loading indicator for trending tags () 2018-06-01 14:22:42 +02:00
Eugen Rochko
9bd23dc4e5
Track trending tags ()
* Track trending tags

- Half-life of 1 day
- Historical usage in daily buckets (last 7 days stored)
- GET /api/v1/trends

Fix 

* Add trends to web UI

* Don't render compose form on search route, adjust search results header

* Disqualify tag from trends if it's in disallowed hashtags setting

* Count distinct accounts using tag, ignore silenced accounts
2018-05-27 21:45:30 +02:00
ThibG
d8864b9e9d Fix caret position after selected suggestion and media upload ()
* Fix media upload reseting caret position to last inserted emoji

* Fix caret position after inserting suggestions (fixes )
2018-05-23 15:20:15 +02:00
Eugen Rochko
1bbe12254d
Improve direct message warning again () 2018-05-19 18:37:33 +02:00
Sylvhem
53c2164e9c Reword the direct message warning ()
* Change direct message warning

Reword the direct message warning to set proper privacy expectations.

* Update the French translation

Update the French translation to reflect the changes made to the direct message warning.

* Wording update

Update the message's wording according to the feedback.
2018-05-16 14:47:11 +02:00
abcang
727917e91e Fix caret position after inserting emoji () 2018-04-17 13:50:33 +02:00
Harmon
98146281e1 Remove duplicate frequently used emojis () 2018-04-07 14:53:11 +02:00
Emelia Smith
d1f34151ae Feature: Direct message from menu ()
* Implement ability to send direct messages from the user menu

* Implement message warning users that direct messages are visible to all mentioned users

* Update locales
2018-03-29 19:08:34 +02:00
Eugen Rochko
f0ae6b4cc5 Merge branch 'spoiler' of git://github.com/kagucho/mastodon into kagucho-spoiler 2018-03-13 09:18:11 +01:00
Akihiko Odaki
18241ccbe1 Change the title of sensitive button by state ()
Icon showing the state may be confusing. (does the slahed eye icon mean
the state that it is sensitive, or to mark it as sensitive?) Moreover, it
may not help for blind people.

The title will give the precise representation of the current state.
2018-03-13 08:10:12 +01:00
Akihiko Odaki
0dccb398bd Change the title of spoiler button by state
The title will give the precise representation of the current state. It
would be helpful for blind people.
2018-03-13 15:58:55 +09:00
Eugen Rochko
1aaec701bb
Fix : Make catalan words with the L geminate letter work in hashtags () 2018-03-11 14:55:49 +01:00
Eugen Rochko
cfa9b6e13a
Remove text requirement when media attached from statuses () 2018-03-07 08:28:52 +01:00
Eugen Rochko
90f12f2e5a
Focal points ()
* Add focus param to media API, center thumbnails on focus point

* Add UI for setting a focal point

* Improve focal point icon on upload item

* Use focal point in upload preview

* Add focalPoint property to ActivityPub

* Don't show focal point button for non-image attachments
2018-02-22 00:35:46 +01:00
Daniel King
95c8232109 match hashtag regex in js client with server ()
the slight mismatch in hashtag regex between js and ruby was causing
hashtag warning to be displayed for unlisted tweets when an invalid
hashtag was entered

exact version of ruby regex not possible in js as POSIX bracket
expressions are not supported, this version approximates and doesn't
give same unicode support
2018-02-05 02:44:13 +01:00
ThibG
b6af88192f Display a warning when composing unlisted toots with something looking like a hashtag () 2018-01-02 14:24:52 +01:00
Nolan Lawson
60f962eedc Refactor initial state: auto_play_gif () 2017-11-01 06:58:07 +09:00
Nolan Lawson
b254e6ca5f Refactor initial state: "me" ()
* Refactor initial state: "me"

* remove "me" from reducers/meta.js
2017-10-31 11:27:48 +09:00
nullkal
781105293c Feature: Unlisted custom emojis () 2017-10-27 16:11:30 +02:00
Nolan Lawson
8392ddbf87 Remove unnecessary translateZ(0) when doing scale() () 2017-10-19 18:27:55 +02:00
Yamagishi Kazutoshi
bf0ee1a25c Enable ESLint rules import/* ()
* Enable ESLint rules import/*

* fix
2017-10-16 11:12:09 +02:00
Nolan Lawson
fa0be3f834 Add option to reduce motion ()
* Add option to reduce motion

* Use HOC to wrap all Motion calls

* fix case-sensitive issue

* Avoid updating too frequently

* Get rid of unnecessary change to _simple_status.html.haml
2017-10-16 09:36:15 +02:00
Eugen Rochko
9815be2a44 Fix - Pre-fill frequently used emojis to avoid bugs () 2017-10-10 20:47:14 +02:00
Eugen Rochko
4bb3e4eeba Fix - Order custom emoji lexicographically () 2017-10-10 15:18:12 +02:00
Eugen Rochko
488584bfc1 Track frequently used emojis in web UI ()
* Track frequently used emojis in web UI

* Persist emoji usage, but debounce commits to the settings API

* Fix  - Add tooltips to picker

* Display only 2 lines of frequently used emojis
2017-10-08 21:47:15 +02:00
Eugen Rochko
d2dee6ea43 Fix custom emoji in emoji picker, persist skin tone () 2017-10-07 19:02:30 +02:00
Eugen Rochko
45682f876d Make auto-play GIFs preference affect custom emojis in web UI () 2017-10-07 02:38:52 +02:00
Eugen Rochko
4ec1771165 Add ability to specify alternative text for media attachments ()
* Fix  - Add ability to specify alternative text for media attachments

- POST /api/v1/media accepts `description` straight away
- PUT /api/v1/media/:id to update `description` (only for unattached ones)
- Serialized as `name` of Document object in ActivityPub
- Uploads form adjusted for better performance and description input

* Add tests

* Change undo button blend mode to difference
2017-09-28 15:31:31 +02:00
Eugen Rochko
e648ef0bfb Remove web UI warnings about OStatus privacy ()
* Remove web UI warnings about OStatus privacy

* yarn run manage:translations
2017-09-28 00:26:33 +02:00
Eugen Rochko
66126f3021 Add custom emojis to the emoji picker () 2017-09-23 05:40:28 +02:00
Yamagishi Kazutoshi
bb85043f46 Disable sensitive button when with content warnings () 2017-07-31 05:06:56 +02:00
Sorin Davidoi
50d38d7605 fix(dropdown_menu): Open as modal on mobile ()
* fix(dropdown_menu): Open as modal on mobile

* fix(dropdown_menu): Open modal on touch

* fix(dropdown_menu): Show status

* fix(dropdown_menu): Max dimensions and reduce padding

* chore(dropdown_menu): Test new functionality

* refactor: Use DropdownMenuContainer instead of DropdownMenu

* feat(privacy_dropdown): Open as modal on touch devices

* feat(modal_root): Do not load actions-modal async
2017-07-27 22:31:59 +02:00
Yamagishi Kazutoshi
eff9416469 Remove unused variables () 2017-06-23 16:05:04 +02:00
Yamagishi Kazutoshi
eb832e88f4 Replace TextIconButton for SensitiveButton to IconButton ()
* Replace TextIconButton for SensitiveButton to IconButton

* line-height
2017-06-20 19:43:09 +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
Sorin Davidoi
2c405aed55 Performance improvements ()
* refactor(components/status_list): Avoid quering scrollTop if not necessary

* refactor(components/dropdown_menu): Do not render items if not expanded

* refactor: Cherry-pick react-motion imports

* refactor(compose/privacy_dropdown): Do not render options if not open

* refactor(components/column_collapsable): Do not render children if collapsed
2017-05-20 14:58:13 +02:00
Yamagishi Kazutoshi
2991a7cfe6 Use ES Class Fields & Static Properties ()
Use ES Class Fields & Static Properties (currently stage 2) for improve class outlook.

Added babel-plugin-transform-class-properties as a Babel plugin.
2017-05-12 14:44:10 +02:00
fusshi-
29d8313b28 Disabled auto focus on toot form when search results are shown. () 2017-05-10 02:51:43 +02:00
alpaca-tc
d1290fbd8f Fixes propTypes warning introduced by () 2017-05-05 21:31:20 +02:00
Eugen Rochko
4fcc0d5ac9 Fix () 2017-05-04 01:42:03 +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