Commit graph

22 commits

Author SHA1 Message Date
Christopher Gurnee
85af5be925 Add context query param: shows permalink ancestors
Appending `?context=#` to a permalink will highlight the permalinked
comment and display above it up to 8 ancestors, similar to Reddit's
behaviour. To keep things fast, this update required that the Pushshift
comments endpoint work with `ids` queries which was fixed around May 11.
2022-05-13 22:33:18 +00:00
Christopher Gurnee
df0c86aac0 Don't fetch removed link-posts from Pushshift
Removed/deleted self-posts are still fetched from Pushshift to get
the selftext, however there's no value in fetching link-posts.

Also:

 * Don't display '[deleted]' if no selftext was deleted.
 * Add key attributes to the post <div> so that React recreates
   it instead of mutating it after the Post loads. This prevents
   transitioning the background color (from the dark/light mode css).
2022-04-14 22:25:17 +00:00
Christopher Gurnee
69e59a75d2 Improve scrolling with parent and permalinks
Visiting a permalink (from an internal or external link) now scrolls to
just past the post, and both parent and permalinks scroll smoothly where
appropriate; it makes sense for internal permalinks to immediately jump.
2022-04-08 18:51:58 +00:00
Christopher Gurnee
0abf9222fb Improve permalinks and add parent link to comments
Beforehand, visiting a permalink would cause Unddit to begin loading
from the Post's first comment. If the max-to-download setting was too
small, and the permalinked comment wasn't yet encountered, no comment
tree would be displayed.

Now, only comments that occur at the same time as the permalinked
comment or later (chronologically) are downloaded.

This also adds a Parent link to each comment. When viewing a permalinked
comment, clicking the top-level Parent link will download only new
comments between the parent and child comments. Likewise, clicking the
'view rest of comments' link will only download new comments from the
first comment up until the previously viewed comment.

In general, Unddit will not re-download comments that it knows it has
previously downloaded, nor download more than max-to-download comments
per link clicked. This can leave 'gaps' in the list of downloaded
comments. If the 'load more comments' link is clicked, Unddit will only
download comments that can fill such gaps between the currently-linked
permalink (or if not viewing one, the first comment) and the last, up to
the max-to-download setting.
2022-03-18 23:56:10 +00:00
Christopher Gurnee
006e6ab5af Make collapse and edited links keyboard navigable 2022-03-16 21:54:58 +00:00
Christopher Gurnee
09e6f9d11d Make collapse-minus width the same as expand-plus 2022-03-05 21:13:11 -05:00
Christopher Gurnee
ec51dc05cc Don't wrongly highlight '[deleted]' as post author 2022-02-07 20:21:44 -05:00
Christopher Gurnee
9a0e3b8a79 Show 'last edited' even when edit isn't available 2021-12-20 08:36:32 -05:00
Christopher Gurnee
e98baf062a Highlight comment author when it's the post author 2021-12-12 16:19:29 -05:00
Christopher Gurnee
c6eaa3a865 Add title texts with exact date/time 2021-12-12 13:20:08 -05:00
Christopher Gurnee
bba3db6073 Add *edited link to toggle archived/reddit comment 2021-12-08 16:10:20 -05:00
Christopher Gurnee
9c102b9dc1 Clicking the [-] button now collapses comments
Also adjust the css to make deeply nested comments easier to read.
2021-11-30 14:29:44 -05:00
Christopher Gurnee
157fd7104f Round "removed(?) from archive" times down 2021-11-01 16:14:05 -04:00
Christopher Gurnee
3c17681f6a Fix quoting bug 2021-10-27 14:14:59 -04:00
Christopher Gurnee
d9c46d00e7 Be more descriptive with removed comments 2021-10-23 12:58:06 -04:00
Christopher Gurnee
57d753b42e Change ceddit to reveddit 2021-10-06 23:51:45 +00:00
Jesper Wrang
67803e2c0a Updated url for ceddit links 2019-12-05 10:41:21 +01:00
JubbeArt
f157217a6a Fixed bug where 'removed too quickly to be archived' text would not show up 2018-08-09 04:59:23 +02:00
JubbeArt
2d45e9295f Added 'you are vering a single comment' and link to full thread 2018-08-09 03:22:45 +02:00
JubbeArt
4727d6961c Fixed a bug where it would not properly detect removed threads 2018-07-28 23:17:05 +02:00
JubbeArt
43d5a1979c Switched redux to unstated 2018-07-16 20:12:01 +02:00
JubbeArt
9031a717f7 Put react-components into logical folders according to the page they're used on 2018-07-15 00:23:44 +02:00
Renamed from src/components/Comment.js (Browse further)