Thibaut Girka
82a76f03a4
Assume children of visible IntersectionObserverArticle always change
...
This fixes multiple issues, while adding few computations
2019-07-01 19:31:10 +02:00
Thibaut Girka
c0b5ee315d
Revert to using upstream's optimisations
...
This *does* break things, as `shouldComponentUpdate` assume the
children to never change!
2019-07-01 19:31:10 +02:00
Thibaut Girka
0ef6a114e7
Fix error boundary DOM
2019-07-01 19:30:59 +02:00
Thibaut Girka
82cd138c89
Fix some React warnings
2019-07-01 19:30:59 +02:00
ThibG
4175f13155
[Glitch] Add option to disable blurhash previews
...
Port 3086c645fd
to glitch-soc
2019-06-26 23:19:26 +02:00
Thibaut Girka
598cdc9542
Use a different icon for audio attachments
2019-06-24 16:16:16 +02:00
Eugen Rochko
d7eb580053
[Glitch] Add media description as title to links of unknown media attachments
...
Port front-end changes from 49ebda4d49
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-24 16:00:42 +02:00
Eugen Rochko
967456b6a9
[Glitch] Add audio uploads
...
Port front-end changes from f7f23b4a19
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-24 16:00:42 +02:00
Eugen Rochko
362f3973be
[Glitch] Fix some React warnings
...
Port cc8f6b3cda
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Takeshi Umeda
1329308bc7
[Glitch] Improvement variable height in single column layout
...
Port d93b82af87
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Eugen Rochko
ff88387a4a
[Glitch] Improvements to the single column layout
...
Port 0e445ebb13
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Eugen Rochko
d99a661f08
[Glitch] Add responsive panels to the single-column layout
...
Port 1e5532e693
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Eugen Rochko
610b4b44c4
[Glitch] Add single-column mode
...
Port 9ddeb30f90
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-13 22:15:31 +02:00
Thibaut Girka
b45f555a0c
Minor cleanup
2019-06-10 16:24:09 +02:00
Thibaut Girka
d61a6271c6
Add DM conversations mode similar to upstream
2019-06-10 16:23:42 +02:00
Jeong Arm
b32a62fe95
[Glitch] Scroll to compose form when focus
...
Port 8f3c32e29c
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-06-07 17:39:46 +02:00
Thibaut Girka
5b92910664
Fix expanding status from menu modal in glitch-soc
...
Fixes #1085
2019-06-02 14:11:32 +02:00
slice
22130a0947
Fix incorrect PropType in Glitch AutosuggestInput
2019-05-30 09:04:00 +02:00
Thibaut Girka
b4d4138cf9
[Glitch] Add keyboard shortcut to hide/show media
...
Port a472190729
and 988342a56c
to glitch-soc
2019-05-27 19:43:15 +02:00
Eugen Rochko
f59973cc85
[Glitch] Make the "mark media as sensitive" button more obvious in web UI
...
Port 05ef3462ba
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-04 20:41:21 +02:00
Eugen Rochko
a5da59f140
[Glitch] Change account gallery in web UI
...
Port 3f143606fa
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-04 18:54:57 +02:00
Eugen Rochko
ccf4f3240a
[Glitch] Add blurhash
...
Port front-end changes from fba96c808d
to glitch-soc
Signed-off-by: Thibaut Girka <thib@sitedethib.com>
2019-05-04 18:07:44 +02:00
Thibaut Girka
67fb9a8679
Add keyboard shortcut to collapse/uncollapse toots
2019-04-28 20:23:04 +02:00
Thibaut Girka
f3acf8f414
Add hotkey for bookmarking a toot
2019-04-28 20:23:04 +02:00
Thibaut Girka
aa1832ac4d
Hide suggestions by default
...
They will be enabled if the input has focus
2019-04-26 22:38:03 +02:00
Thibaut Girka
d7e4be285a
Add emoji suggestion to poll options
2019-04-26 22:38:03 +02:00
Thibaut Girka
df52004fe6
Add suggestions in CW field
2019-04-26 22:38:03 +02:00
Thibaut Girka
ef249a2718
Rename status__text to status__content__text for consistency with upstream
2019-04-24 22:40:17 +02:00
Thibaut Girka
659f972bed
Do not switch to italic for status media buttons
2019-04-22 23:07:14 +02:00
Thibaut Girka
47faf47ed5
ComposerTextarea → AutosuggestTextarea
2019-04-22 20:15:47 +02:00
Eugen Rochko
9b9816aba6
[Glitch] Show suggested follows on search screen in mobile layout
...
Port ad510db3a1
to glitch-soc
2019-04-22 20:15:47 +02:00
Thibaut Girka
e3c1472040
Shift+click on column Back button to return to last pinable column
2019-04-17 18:40:40 +02:00
Thibaut Girka
8d57c0e70e
When selecting a toot via keyboard, ensure it is scrolled into view
2019-04-17 10:07:33 +02:00
Thibaut Girka
fbec0edf08
Fix opening/closing gifv sometimes making the timeline scroll
2019-04-16 22:20:23 +02:00
ThibG
30500dff7c
Merge pull request #981 from ThibG/glitch-soc/merge-upstream
...
Merge upstream changes
2019-04-04 15:13:18 +02:00
ThibG
be6885eb93
[Glitch] Update poll remaining time just like with status timestamps
...
Port daab45d4ae
to glitch-soc
2019-04-04 14:58:11 +02:00
Thibaut Girka
14bad3f472
Do not handle clicks in detailed status content
2019-04-03 19:58:18 +02:00
ThibG
9e80b34a95
[Glitch] Add a “Block & Report” button to the block confirmation dialog
...
Port 6df4a82969
to glitch-soc
2019-03-26 17:44:00 +01:00
Eugen Rochko
614bd3f8d4
[Glitch] Add lang
attribute to statuses in web UI
...
Port JS changes from e6cfa7ab89
to glitch-soc
2019-03-26 16:09:59 +01:00
ThibG
8b5b686f08
[Glitch] Add support for custom emojis in poll options
...
Fixes #956
Port 80f0910e21
to glitch-soc
2019-03-20 17:34:32 +01:00
ThibG
931ecc8824
[Glitch] Add UI for enabling/disabling poll notifications
2019-03-13 22:21:52 +01:00
Thibaut Girka
a1c6e6de1b
Remove leftover console.log
2019-03-11 14:39:45 +01:00
ThibG
45e4c90a23
Merge pull request #953 from ThibG/glitch-soc/merge-upstream
...
Merge upstream changes
2019-03-11 13:23:54 +01:00
Thibaut Girka
9c620fc5c8
[Glitch] Add support for poll ending notifications
...
Port front-end parts of 3a92885a86
to glitch-soc
2019-03-11 13:08:21 +01:00
ash lea
f534f4869e
add local setting to auto reveal media behind cw
2019-03-11 12:14:45 +01:00
Eugen Rochko
ca45198ccb
[Glitch] Fix NaN in Poll component
...
Port 75cb93676b
to glitch-soc
2019-03-08 01:01:19 +01:00
ThibG
6e295beab2
[Glitch] Disable the underlying button element when an ItemButton is disabled
...
Port b3668a79ec
to glitch-soc
2019-03-06 22:40:17 +01:00
Thibaut Girka
1bb23100b1
Add an icon to highlight polls behind a Content Warning
2019-03-06 13:01:27 +01:00
Eugen Rochko
94a0149ff3
Fix poll options not rendering text after vote/refresh
...
Port fd128b9c7a
to glitch-soc
2019-03-06 11:44:27 +01:00
Eugen Rochko
7f32d675b0
Render unicode emoji in polls using emoji pack
...
Port 4407f07014
to glitch-soc
2019-03-06 11:42:25 +01:00
Thibaut Girka
e80fabfd84
Fix toots opening in dynamic column when trying to interact with them
...
This fixes inline preview cards and polls, preventing them from opening
the toot in detailed view when clicking on an interactive element.
2019-03-06 00:20:43 +01:00
Eugen Rochko
ba6ca3cd69
Fix various issues in polls
...
Port front-end changes from a198add83b
to glitch-soc
2019-03-05 21:35:03 +01:00
ThibG
7f27ee35a8
Display closed polls as such
...
Port cda6ece760
to glitch-soc
2019-03-05 21:35:03 +01:00
ThibG
530151466e
Fixes to the polls UI
...
Port 4ced609497
to glitch-soc
2019-03-05 21:35:03 +01:00
Eugen Rochko
f14eda23e9
Fix web UI crash on page load when detailed status has a poll
...
Port 5dfa433698
to glitch-soc
2019-03-05 21:35:03 +01:00
Eugen Rochko
8d70a8a19b
Add polls
...
Port front-end parts of 230a012f00
to glitch-soc
2019-03-05 21:35:03 +01:00
Thibaut Girka
d82de360c1
Fix non-numeric account identifiers leading to /web/accounts/NaN
...
I'm not sure what purpose these “+” served?!
2019-02-22 17:52:21 +01:00
Thibaut Girka
91c9cb6022
[Glitch] Change buttons on timeline preview to open the interaction dialog
...
Port 71e28ba399
to glitch-soc
2019-02-17 12:39:44 +01:00
Thibaut Girka
2769b54466
[Glitch] Fix occasional crash in detailed toot view
...
Port f9a338b473
to glitch-soc
2019-02-15 17:34:15 +01:00
Thibaut Girka
614ea184bb
[Glitch] Add "copy link" item to status action bars
...
Port 3cfadd875c
to glitch-soc
2019-02-13 07:29:57 +01:00
Thibaut Girka
b89e003c4d
Handle deletion of filtered toots
2019-02-10 22:54:25 +01:00
Thibaut Girka
7c0728c776
Minor fix to timeline jump avoiding behavior
2019-02-10 22:54:25 +01:00
Thibaut Girka
dfe1d548a5
Adjust scroll when statuses above the current scroll position are deleted
2019-02-10 22:54:25 +01:00
Thibaut Girka
0b91322762
Adjust scroll if previewCard appeared
2019-02-10 22:54:25 +01:00
Thibaut Girka
049c9a3b97
Avoid two-step rendering of statuses as much as possible
...
Cache width shared by Video player, MediaGallery and Cards at the
ScrollableList level, pass it down through StatusList and Notifications.
2019-02-10 22:54:25 +01:00
Thibaut Girka
68f3d003d6
Refactor intersection observer article code
2019-02-10 22:54:25 +01:00
Thibaut Girka
e49e54a5ff
Cleanup redundant markup for hidden statuses
2019-02-10 22:54:25 +01:00
Thibaut Girka
405ef5ad37
Hide items rendered out-of-frame (once they have been rendered at least once)
2019-02-10 22:54:25 +01:00
Thibaut Girka
1a70fca168
Fix CW unfolding not triggering re-layout in public hashtag page
2019-02-06 15:32:48 +01:00
Thibaut Girka
2e93f87c9f
[Glitch] Replace unlock-alt icon with unlock
...
Port 6513f6c953
to glitch-soc
2019-02-01 16:15:44 +01:00
Thibaut Girka
3e8b623975
[Glitch] Redesign public hashtag page to use a masonry layout
...
Port bc642ac24b
to glitch flavour
2019-01-20 11:38:09 +01:00
Thibaut Girka
92830029ca
[Glitch] Make hashtag search results link to the hashtag URL
...
Port 6cfb357940
to glitch-soc
2019-01-16 14:25:58 +01:00
Thibaut Girka
e03813cf0a
[Glitch] Stop gifv timeline preview explicitly when open the media gallery
...
Port cf3c0fc38c
to glitch-soc
2019-01-10 21:00:33 +01:00
Thibaut Girka
147f4f9fd2
[Glitch] refactored account.js
...
Port 57c91fbbed
to glitch-soc
2019-01-10 21:00:33 +01:00
Thibaut Girka
e8ae77236b
[Glitch] Only consider mouse move in scrolling on item insertion
...
Port cc1f13dfd0
to glitch-soc
2019-01-10 12:09:12 +01:00
Thibaut Girka
825decbf9e
[Glitch] Identify manual scrolling to cancel scroll to top reset on mouse idle
...
Port 2f86fc5e0a
to glitch-soc
2019-01-10 12:09:12 +01:00
Thibaut Girka
19c64a49f7
[Glitch] Cancel list scroll reset after mouse move on wheel scroll
...
Port 9cfd610484
to glitch-soc
2019-01-10 12:09:12 +01:00
Thibaut Girka
21f27e6579
[Glitch] Temporarily hold timeline if mouse moved recently
...
Port 6a1216d2cd
to glitch-soc
2019-01-10 12:09:12 +01:00
Thibaut Girka
22dedb676b
[Glitch] Fix unnecessary loadMore calls when the end of a timeline has been reached
...
Port 8389b496ba
to glitch flavour
2018-12-23 11:40:52 +01:00
Thibaut Girka
1a3088364f
Fix composer not getting focus after reply confirmation dialog
...
The modal-handling code gives back focus to the element focused when the
modal opened. However, in the case of reply confirmation, it would do so
*after* the composer code itself requested focus.
2018-12-21 20:00:49 +01:00
Thibaut Girka
5eaf2c9e02
[Glitch] Back to the getting-started when pins the timeline
...
Port 5bf100f87b
to glitch-soc
2018-12-20 14:51:28 +01:00
Thibaut Girka
9fc7ad7b9c
[Glitch] Always display tab navigation on local/federated timeline even when empty
...
Port 90b64c0069
to glitch-soc
2018-12-18 21:39:35 +01:00
Thibaut Girka
1e656c3632
[Glitch] Fix “load more” button when no data has been fetched
2018-12-13 15:00:36 +01:00
Thibaut Girka
73ee38f485
[Glitch] Do not display empty message when the list is known to have more elements
2018-12-13 15:00:36 +01:00
Thibaut Girka
39696024ca
Minor cleanup in ScrollableList component
2018-12-13 15:00:36 +01:00
Thibaut Girka
7e63fb26e0
Do not hardcode preferences link, pleroma doesn't have it
2018-11-28 22:36:01 +01:00
Thibaut Girka
922d05864f
Add error boundary component to catch Web UI crashes
2018-11-28 22:36:01 +01:00
Thibaut Girka
0d3612482e
Render placeholder instead of image when MediaGallery container width isn't known
2018-11-25 11:29:56 +01:00
Thibaut Girka
b3ff35a75c
Move URLs to backend in their own file
2018-11-19 15:56:38 +01:00
Thibaut Girka
86527024aa
In detailed status view, take displayMedia setting into account when changing media
...
Fixes #819
2018-11-15 16:38:50 +01:00
Thibaut Girka
2fe0cb1623
[Glitch] Prepend account header even when status list is empty
...
Partially port 90b64c0069
2018-11-13 15:54:04 +01:00
Thibaut Girka
5ebbaffaa3
[Glitch] Use local instead of global loading indicator for timelines, account timelines
...
Port dd00cd19d2
to glitch-soc
2018-11-13 15:54:04 +01:00
Thibaut Girka
7e18e95716
Add a local setting for inline preview cards
2018-10-30 17:51:06 +01:00
Thibaut Girka
bdc2338833
Add a “link” status icon for toots with a preview card
2018-10-30 17:51:06 +01:00
Thibaut Girka
ac9780b844
[Glitch] Include preview cards in status entity in REST API
...
Port 795f0107d2
to glitch-soc
2018-10-30 17:51:06 +01:00
Thibaut Girka
0c7f710be1
[Glitch] Surround mid-text display names with bdi tags
...
Port 7861c5f108
to glitch-soc
2018-10-22 18:57:20 +02:00
Thibaut Girka
dfa5b0576f
Update mediaGallery component's width when opening CWs
2018-10-21 16:09:07 +02:00
Thibaut Girka
7cc7843109
Do not scroll timelines when *closing* media modals
...
Media modals push an history state so that pressing back on mobile closes them.
We made sure to not scroll when opening them, but not when *closing* them,
which caused some issues in rare cases.
2018-10-07 12:08:32 +02:00
Thibaut Girka
a9e8f98a9d
Make hidden media clickable in account media gallery
2018-10-02 22:00:57 +02:00
Thibaut Girka
6ad7606909
[Glitch] Add support for new display_media setting
...
Port f7a6f9489d
to glitch-soc
[API] [vanilla required] [glitch-soc optional] initial_state show_sensitive_media boolean changed to show_media string with options "default", "hide_all", "show_all"
2018-10-01 16:48:55 +02:00