Thibaut Girka
fce248810b
[Glitch] Update state when opened dropdown is unmounted
...
Port dcd3544d153dd2a3961bd0d2214ed01a902a66da to glitch-soc
2018-08-23 22:58:14 +02:00
Thibaut Girka
3c49daeb8d
Add glitch-soc local setting to display reply counters
...
Defaults to false.
2018-08-22 20:29:55 +02:00
Thibaut Girka
87ad942d76
[Glitch] Display replies count in web UI
...
Port 4df9cabb22cbed8f9cd8af45325ecdcc7c72d6cb to glitch-soc
2018-08-22 20:29:55 +02:00
Thibaut Girka
801919fc9b
Add hashtag trendline support to glitch-soc flavour
...
Port Mastodon's hashtag stats thing to glitch-soc.
This doesn't change how hashtags are ordered, and doesn't add a trending
hashtags section, but it does change how hashtag searches are rendered,
displaying a trend line alongside each hashtag.
2018-08-22 19:27:06 +02:00
Thibaut Girka
acb3d5b7aa
Don't prevent opening links in tabs with keyboard modifiers
...
Ctrl+click usually allows opening a link in a new tab. This
was prevented for hashtag or user links in toots.
2018-08-11 15:29:08 +02:00
Thibaut Girka
d2b3eebe00
[Glitch] Show media modal on public timeline
...
Port e0b1e17bd04d7f9b533ab462aee4544a5f5fb926 to glitch-soc
2018-08-01 00:18:42 +02:00
Thibaut Girka
d894cdc93f
Port profile redesign to glitch-soc
...
Port bb71538bb503159177d46d8956bd466973c0876b to glitch-soc
2018-08-01 00:18:42 +02:00
Thibaut Girka
5d060cb6e4
Allow modals to be closed by pressing “back”
2018-07-30 14:32:02 +02:00
Thibaut Girka
358e3a4c32
Get rid of Collapsable, use CSS instead
...
Change inspired by 691107263c5e05973f9af9e1937abbc27430f54e
2018-07-28 23:25:42 +02:00
Thibaut Girka
0bb1720495
Add client-side custom filter support to glitch-soc
...
Port cdb101340a20183a82889f811d9311c370c855e5 to glitch-soc,
but without dropping support for regexp filters yet.
2018-07-10 14:06:04 +02:00
Thibaut Girka
33c1607c83
[Glitch] Fix Chrome issue with sizes="0px"
2018-07-10 10:53:36 +02:00
Thibaut Girka
a01faecfcb
[Glitch] Add redraft function
...
Port bd0791d800902cdbdf6666e65d201df3ec22789c to glitch-soc
2018-06-16 15:09:28 +02:00
David Yip
f8d50a4070
Merge pull request #509 from ThibG/glitch-soc/fixes/router-history-navigation
...
Use history.state to decide whether we should goBack() or go to / (fixes #247 )
2018-06-06 23:56:48 -05:00
David Yip
cfdbb36bdf
Merge pull request #519 from ThibG/glitch-soc/fixes/status-node-null
...
Prevent a rare crash when a status' root node is undefined
2018-06-02 16:19:06 -05:00
David Yip
9ad5de8a3a
Merge pull request #501 from ThibG/glitch-soc/features/red-bookmarks
...
Make active bookmarks red (fixes #493 )
2018-06-01 00:36:48 -05:00
Spencer Alves
e5f25a73f2
Adjust spacing between status icons
2018-05-31 21:55:44 -07:00
Spencer Alves
7d2e6429c2
Merge branch 'glitch' into thread-icon
2018-05-31 21:33:16 -07:00
Thibaut Girka
b9fdeceb3c
Make active bookmarks red ( fixes #493 )
2018-05-31 14:39:48 +02:00
Thibaut Girka
cc396f085d
Use history.state to decide whether we should goBack() or go to / ( fixes #247 )
...
So far, glitch-soc used history.length to decide whether to call `goBack()` or
go to / in order to not leave the webUI. This made clicking the “Back” button
go to the “Getting started” column instead of going back in the browser's
history when such an action would leave the web UI, but also when:
- The WebUI is refreshed (F5)
- A tab is restored
- The history length reaches its maximum (e.g., 50 in Firefox)
This commit fixes these shortcomings by checking `window.history.state`.
Indeed, we only want to go back in the browser's history when the current
location has been reached from within the WebUI, which only happens via
`pushState` as far as I know. Since browser store the serialized state in
the browser history, this also survives page reload and session restoration.
2018-05-31 14:39:02 +02:00
Thibaut Girka
893f2aff20
Prevent a rare crash when a status' root node is undefined
2018-05-31 14:38:29 +02:00
Thibaut Girka
08dbe29e29
[Glitch] Improve load gap styling in web UI
...
Port 45c9f16f714dd6de15391b5e2ae2bf0d30ef20fb to glitch-soc
2018-05-29 21:25:28 +02:00
Thibaut Girka
0ad3eedd4c
[Glitch] Allow clients to fetch statuses made while they were offline
...
Port 9a1a55ce526c956ac6b35897d483c316b7ad4394 to glitch-soc
2018-05-29 21:25:28 +02:00
Thibaut Girka
8b98afa781
[Glitch] Replace onScrollToBottom with onLoadMore
...
Port b0664a5e6cee9be602098fb9a2f98a9e61b2ab9b to glitch-soc
2018-05-27 20:40:58 +02:00
Thibaut Girka
d0b2f71501
Fix width only being set for standalone media
2018-05-21 18:25:41 +02:00
Thibaut Girka
3ad3cee44c
[Glitch] Use real container width in MediaGallery srcSet
...
Port 22e067bf5c30a5aa7aec4b3c17dc112cacbe7873 to glitch-soc
2018-05-21 17:55:07 +02:00
Thibaut Girka
9d6788b30b
Prevent click on video from opening detailed toot
2018-05-18 17:49:51 +02:00
Thibaut Girka
2154bd1b5a
Widen clickable area of toots
2018-05-18 17:33:58 +02:00
Thibaut Girka
07baa1ddb5
[Glitch] Open video modal on public UI
...
Port d9b2f84c92f24067b12be81837240bf6c8930236 to glitch-soc
2018-05-17 18:37:00 +02:00
Thibaut Girka
97c69de416
[Glitch] Feature: Direct message from Statuses
...
Port 904a2479dd2085dfc94f33746ad6f7a755e72609 to glitch-soc
2018-05-16 19:45:30 +02:00
Thibaut Girka
769a48495c
Fix root modal's keyup handling ( Fixes #478 )
2018-05-11 22:42:32 +02:00
Spencer Alves
f2ff167c1a
Add an extra icon to indicate that a status is part of a conversation
2018-05-07 22:10:34 -07:00
Thibaut Girka
658ac4396c
Hide media in report modal regardless of whether they are marked sensitive
...
The rationale behind this is that if the user wants to report violent media,
they might not want to see it repeatedly. The “sensitive” property is still
kept, displaying different messages for hidden media depending on whether
they are marked as sensitive.
2018-05-07 15:00:55 +02:00
Thibaut Girka
de7feea30e
Revert "[Glitch] Prevent timeline from moving when cursor is hovering over it"
...
This reverts commit 553cc2824040ba0b745644eb4633840129ffc13b.
2018-05-06 21:50:33 +02:00
Thibaut Girka
4133f70902
Revert "[Glitch] Do not re-position scroll when loading more (inserting items from below)"
...
This reverts commit 32974a58dcf5a8db39a9c0378f923a40d787cad3.
2018-05-06 21:50:26 +02:00
beatrix
331190e5fb
Merge pull request #462 from ThibG/glitch-soc/features/dropdowns-accessibility
...
Improve accessibility of toot dropdown menu
2018-05-06 12:12:20 -04:00
Thibaut Girka
32974a58dc
[Glitch] Do not re-position scroll when loading more (inserting items from below)
...
Port 8c601b54ccf530bd193b4500fee439aa4e9162d0 to glitch-soc
2018-05-05 17:18:55 +02:00
Thibaut Girka
553cc28240
[Glitch] Prevent timeline from moving when cursor is hovering over it
...
Port 58852695c8ec490239ed3812f82971f8c1e6c172 to glitch-soc
2018-05-05 17:18:25 +02:00
Thibaut Girka
cee157fc19
Improve accessibility of toot dropdown menu
...
* Prevent Enter keypresses from triggering dropdown display toggle twice
* Give focus to first/selected item of dropdown menus
* Implement keyboard navigation in generic dropdown menus
Partial port from ef7d64c80109074b39983b50cc8cf701c337cdcc to glitch-soc
2018-05-05 17:11:48 +02:00
Thibaut Girka
70a16d8858
[Glitch] Improve relative timestamps in web UI
...
Port 660cb058e18f8607a0044b5a89614e1caeb07ed9 to glitch-soc flavour
2018-05-02 13:45:40 +02:00
Thibaut Girka
1222e0a381
Use new getDerivedStateFromProps instead of deprecated componentWillReceiveProps
...
As we are already using the new getSnapshotBeforeUpdate lifecycle method,
we apparently cannot use the deprecated ones at all in this component.
2018-04-27 01:24:55 +02:00
Thibaut Girka
b39f3648a7
Tentative fix for #446
2018-04-27 00:59:36 +02:00
beatrix
f4ed38272b
Merge pull request #401 from ThibG/glitch-soc/features/unfold-thread
...
Port the “unfold thread” feature from Mastodon's UI to glitch-soc flavour
2018-04-26 11:34:14 -04:00
Thibaut Girka
003d114332
[Glitch] Fix the hot key (j, k) does not function correctly when there is a pinned toot in account timeline.
...
Port 23106844a10606dd0e04c8382281d5ff80d4bdd9 to glitch-soc
2018-04-22 23:11:16 +02:00
Thibaut Girka
64d8d0464d
Add show more/less toggle for entire threads in web UI
...
Inspired from b6003afcdb1b89eb967a2b211e3b4e26aed9ac9d but using component
properties instead of redux store for hidden/revealed state.
2018-04-22 19:19:01 +02:00
Thibaut Girka
2888f74c12
Refactor the infamous three-valued boolean into two booleans, trying to simplify the logic
2018-04-22 19:18:15 +02:00
Thibaut Girka
63d671b18f
[Glitch] Fix button hiding when header title is too long
...
Port ffb2b8ef8c3c7cd6f57860240378fac8d5964105 to glitch-soc
2018-04-22 19:17:10 +02:00
Thibaut Girka
abf7c5b850
[Glitch] Fix column headers accessibility
...
Port 08e4c78e78358c2847967e9cc34b4a6497be97e2 to glitch-soc.
SCSS fix inspired by 69f13e7bca90f4855e05a49dd69bba66f843134a.
2018-04-22 19:17:10 +02:00
beatrix
06fc278e4c
Merge pull request #432 from ThibG/glitch-soc/features/reblog-private
...
Glitchsoc-specific changes to allow boosting own private toots
2018-04-22 12:32:58 -04:00
beatrix
125e8c7f5a
Merge pull request #427 from ThibG/glitch-soc/fixes/scroll-behavior
...
Improve ScrollableList behavior
2018-04-22 12:09:52 -04:00
beatrix
e88ce27855
Merge pull request #435 from ThibG/glitch-soc/features/public-modals
...
[Glitch] Show media modal on public pages
2018-04-22 12:07:29 -04:00