Commit Graph

152 Commits

Author SHA1 Message Date
Nick Wynja 31e5ae37d5 Hides content of messages from blocked people
This introduces a basic implementation to not display the content of
messages. It still shows that a message exists but shows localized
copy indicating why the content was hidden.

We should consider additional filters or queries in different views to actually
remove these posts but I'll leave that as up for discussion since I can see
value in showing that a blocked comment exists in a conversation.
2021-03-02 17:47:28 -05:00
Soma c05023e0dd updating code for likes page bug 2021-02-13 07:23:26 -08:00
Cecilia Lindskog 29dcaad89c Fix issue with feedId 2021-01-27 10:57:04 +01:00
Cecilia Lindskog 3c771da8ff Issue 126: Show recipients of private messages 2021-01-26 10:33:29 +01:00
Supernova 1b47d439ec Add support for linking an optional custom-style.css file from the user's oasis configuration folder. 2020-12-08 12:37:26 -05:00
Christian Bundy a02744d0eb Add rebuild button to settings
Problem: The latest release seems to have some index problems, which is
frustrating, but might be able to be circumvented with a database
rebuild. The rebuild was something that Ahau funded and I'm excited to
be able to finally expose this to users without asking them to `rm -rf`
random files in their `~/.ssb` directory.

Solution: Replaced unused 'progress' bars (always at 100%) with rebuild
button.
2020-11-29 10:55:00 -08:00
Christian Bundy 65b7df9ea9 Remove comments to disable linters
Problem: Our tests seem to have been disabled in various places, which
means that type errors, typos, and other small problems were introduced.

Solution: Remove the comments and fix the underlying problems without
disabling the linters.
2020-11-22 16:52:12 -08:00
Christian Bundy 26fa0203a7 npm dedupe 2020-11-22 16:38:23 -08:00
Alexander Cobleigh 4d5c571df3 restore common-good check & fix its errors
after having restored the package-lock.json to that of the master branch, this
PR now uses common-good@2.0.3, which has common-good check as a command.

i ran it manually as $(npm bin)/common-good check, and fixed whatever
it complained about.
2020-10-21 15:33:01 +02:00
Henry e7dd215f4d fix common-good setup
somehow it's cli arguments changed
2020-10-19 10:06:34 +02:00
Alexander Cobleigh 9fb2b87708 add i18n for mentions component 2020-10-19 10:06:06 +02:00
Alexander Cobleigh d4a1602940 add much improved mentions listing 2020-10-19 10:06:06 +02:00
Alexander Cobleigh a2817cf5fb implement relationship-based name matching 2020-10-19 10:06:06 +02:00
Alexander Cobleigh 8127008ce4 add i18n.preview for all languages except .de, improve labels 2020-10-19 10:06:06 +02:00
Henry 9004280d0b some @mentions in preview
replaces immediatly if there is one match,
but just spews multiple ones.

* add silly in-memory about:name cache

rational is also commented the code. the tl:dr; is oasis already doesnt
use ssb-about or other indexing plugins.

butt for @mentions we need a quick way to lookup names to feeds,
otherwise we block the preview flow with long query times.
2020-10-19 10:06:06 +02:00
Alexander Cobleigh 8fe9c5b6f5 make subtopicView and commentView consistent w/ threads 2020-10-19 10:06:06 +02:00
Alexander Cobleigh 680a894efd add blob upload to comment, subtopics 2020-10-19 10:06:06 +02:00
Alexander Cobleigh 119c1f8584 implement content warnings for comments, subtopics
also make sure to only display content warning in summary for subtopics
2020-10-19 10:06:06 +02:00
Alexander Cobleigh 0449ebd425 refactor previewView, fix displaying content warnings in previews 2020-10-19 10:06:06 +02:00
Alexander Cobleigh 2d5781f0fe add subtopic previewing 2020-10-19 10:06:06 +02:00
Alexander Cobleigh 83ab086fb5 extract preview code into generatePreview 2020-10-19 10:06:06 +02:00
Alexander Cobleigh 0ea5f998f5 fix crash w/ no likes, improve preview styling 2020-10-19 10:06:06 +02:00
Henry be412793c2 whoops cleanup 2020-10-19 10:04:39 +02:00
Alexander Cobleigh e64b595b54 implement comment previewing 2020-10-19 10:04:39 +02:00
Alexander Cobleigh cc8d2db6a3 extract preview code into generatePreview 2020-10-19 10:04:39 +02:00
Alexander Cobleigh b4fb448e53 improve thread view 2020-10-19 10:04:39 +02:00
Alexander Cobleigh b101472767 improve visual hierarchy by refining bold text use 2020-10-19 10:04:39 +02:00
Henry 423c0c11f4 begin working on preview with blobs 2020-10-19 10:04:39 +02:00
Daan Wynen 8ae7e3125c Add absolute post time as tooltip to timestamps.
Oh, so Christian's birthday was "1y ago"? But when *exactly* was that?
Hover the timestamp to find out! :)
2020-10-12 23:36:45 +02:00
Daan Wynen a40b2eefc1 make the linters happy.
this time they had a *lot* of opinions. :P
2020-05-23 21:14:49 +02:00
Daan Wynen e8c8aa49a7 Add simple pagination to user feeds.
This is simply based on sequence numbers and the `gt`/`lt` arguments of
`createUserStream`.
2020-05-23 06:13:11 +02:00
Nick Wynja d26fc919b4 Fix broken Profile Edit 2020-05-19 07:42:19 -04:00
Nick Wynja e19a0b457b Adds visual separator for threads 2020-05-13 14:31:19 -04:00
Christian Bundy 63888766dc
Merge pull request #435 from nickwynja/sticky-fix
Improve wrapping of sticky section header
2020-05-12 06:48:23 -07:00
Nick Wynja b4f0509e21 Adds mystery description fallback
If a message had no obvious text because it didn't have a content type
of post, use the mystery description as to not break the `postSnippet()`
function and give a valid snippet in the title.
2020-05-12 09:33:28 -04:00
Nick Wynja 8ce7d73edd adds title for imageSearch 2020-05-12 09:26:08 -04:00
Nick Wynja 45c9ffe3f5 Adds view specific titles 2020-05-12 09:13:46 -04:00
Nick Wynja bdc43a61e3 Improve wrapping of sticky section header 2020-05-12 09:06:51 -04:00
Jacob Karlsson 3b753f16ac Apply style fixes 2020-05-03 23:14:19 +02:00
Jacob Karlsson f63a0dfa0a Add i18n for image search 2020-05-03 23:02:44 +02:00
Jacob Karlsson 51ae2966f1 Add sidebar entry 2020-05-03 22:38:34 +02:00
Jacob Karlsson e456c1d9c5 Add image search 2020-05-03 22:16:44 +02:00
Christian Bundy 8e2eb404e0 Rename "reply" to "subtopic"
Problem: The words "comment" and "reply" are super ambiguous, but
renaming them is hard.

Solution: I think "subtopic" captures the sentiment well, and makes it
clear that you're leaving the current topic to start a new topic (rather
than just replying to an individual message).
2020-04-16 08:31:35 -07:00
Nick Wynja e392b68d1f Merge remote-tracking branch 'upstream/master' into sync 2020-04-13 16:09:03 -04:00
Christian Bundy 81c03bebde Add Français (FR) to the language drop-down
Problem: The FR translation is added in `i18n.js` but it's not available
in the drop-down language selection menu.

Solution: Add it to the menu and ensure that the menu is sorted
alphabetically by the name of the language.
2020-04-13 10:24:01 -07:00
Nick Wynja fd1d63ffba Introduces sync endpoint
Starts, waits until connected to peers, waits for progress, disconnects
2020-04-13 11:28:36 -04:00
sean billig dcbd37d941 Remove postInAside() in favor of post(); fixes 'liked by' in replies 2020-04-10 20:59:28 -07:00
Sean Billig 8fc5437b6b
Merge pull request #381 from christianbundy/fix-italian
Fix linter problems with Italian translation
2020-03-31 15:14:08 -07:00
Tim Robinson 48fc0e0086 Don't show likedby with zero likes. Improve style.
- Don't add "Liked by..." title when there are zero likes.
- Refactor code to use const's and have a single defined message.
2020-03-31 11:05:12 -07:00
Tim Robinson 206044e21f Show liked-by in title attr, handle many likes
- Instead of having a custom on hover effect, just add the Liked by
message to the title of the heart.
- When there are > 16 likes on a post, show +X more to convey this to
users.
2020-03-31 10:56:49 -07:00