Commit graph

2310 commits

Author SHA1 Message Date
biosfood
069c2c787f
use improved notification system for all notification types (#2190)
* only refetch PM counts when marking a message as read

* refresh registration applications and the corresponding unread counter when processing an application

* refetch reports when marking one as resolved

* update unread notifications when logging in

* UnreadCounterService: use async functions

* clarify the meaning of UnreadCounterService.updateInboxCounts

* UnreadCounterService: correct updateAll
2023-10-24 17:58:00 -04:00
SleeplessOne1917
25b06124fd
Make 2FA input play nicer with phone keyboards (#2199) 2023-10-23 21:25:06 -04:00
Benjamin Barbeau
2b5068187c
Add code highlighting (#2195)
* Add highlighting

* Adds it to mdNoImages as well

* Revert "Adds it to mdNoImages as well"

This reverts commit 2f8e3bb0cc.

* Revert "Add highlighting"

This reverts commit 80bcddd4df.

* Prevent yarn.lock from massively updating

* Add code themes locally

---------

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-10-20 11:18:13 -04:00
ca456fdd1b v0.19.0-rc.3 2023-10-19 20:48:42 -04:00
Dessalines
538fb5e28c
Updating for new v19 changes. (#2191)
* Updating for new v19 changes. WIP.

* Fixing package json.

* Updating for new lemmy-js-client.

* Trying to add node-sass

* Revert "Trying to add node-sass"

This reverts commit 959ea0de13.

* Trying node:20-alpine
2023-10-19 20:47:28 -04:00
Dessalines
bb8e4f26ee
Dont hide reply box on other actions. Fixes #1968 (#2189)
* Dont hide reply box on other actions. Fixes #1968

* Removing unecessary check.
2023-10-19 15:35:53 +00:00
Derek Vanderveer
68f0b654d4
Add curl for basic healthcheck (#2186) 2023-10-19 02:41:18 -04:00
SleeplessOne1917
aefd65ae83
Tweak 2fa (#2179)
* Handle 2FA inputs in a way that (hopefully) plays nice with virtual keyboards

* Some tweaks
2023-10-12 20:25:14 -04:00
Kaveh
f5780c22ba
Add RTL/BIDI to post text (#1963) 2023-10-11 12:07:53 -04:00
Daniel Lo Nigro
42d60fe3d5
Simplify favicon (#2176)
Removes Inkscape metadata and resulting unneeded XML namespaces
2023-10-08 00:31:02 +00:00
b0307ada71 v0.19.0-beta.8 2023-10-06 09:11:22 -04:00
Dessalines
2c1f4538be
Adding cursor pagination. Fixes #2155 (#2173)
* Adding cursor pagination. Fixes #2155

* Addressing PR comments.

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-10-06 09:08:55 -04:00
SleeplessOne1917
ae4c37ed44
fix: Fix emoji picker custom emoji bug (#2175)
* Make emoji picker insert custom emojis

* Close emoji picker after emoji is selected
2023-10-06 08:56:36 -04:00
Dessalines
ff98c2428d
Fixing broken docker build due to missing rxjs. (#2174) 2023-10-05 17:11:31 -04:00
ca6f0baa18 v0.19.0-beta.7 2023-10-05 16:00:57 -04:00
a4b09b14e4
Dont push to :latest docker tag (#2171)
* Dont push to :latest docker tag

Same as https://github.com/LemmyNet/lemmy/pull/4016

* Adding tag.

---------

Co-authored-by: Dessalines <tyhou13@gmx.com>
2023-10-05 15:41:04 -04:00
SleeplessOne1917
a2473680d4
fix: Prevent login screen from redirecting to signup (#2170) 2023-10-05 15:38:10 -04:00
SleeplessOne1917
c6d6107ddc
feat: Accomodate 2FA changes in UI
* feat: Add modal for totp settings

* Make inputs show up on totp modal

* Make modal work when enabling and disabling 2FA

* Give user better feedback when en/disabling totp

* Use new 2FA flow for login

* Refactor 2fa modal to prevent implementation details from leaking

* chore: Use constant objects where appropriate

* Incorporate translations
2023-10-04 21:24:23 -04:00
Dessalines
0c18224cf2
Adding scaled sort to UI. Fixes #2156 (#2169) 2023-10-04 21:17:36 -04:00
biosfood
de8255fc9e
fix: Fix notifications (#2132)
* add global service for unread notifications

* update inbox counter when marking a message as read

* adapt NotificationService for new auth parameter

* refactor unread counter service

* user service: refactor moderatesSomething

* use behavioursubjects for unreadcounterservice

* retry tests

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-10-04 16:47:51 -04:00
Lukas
8a2cd127ee
Smart url parsing (#2141)
* handle url paste

* change selection range after paste

* use default paste behaviour if no text is selected

* change to `validUrl` helper function

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-28 08:35:15 -04:00
SleeplessOne1917
36dc27f0cc
fix: Fix bug where old settings would linger on page until browser refresh (#2153) 2023-09-28 08:11:49 -04:00
SleeplessOne1917
951c8afebc
fix: Fix bug where user could not block person from profile page (#2151)
* fix: Fix bug where user could not block person from profile page

* fix: Fix linting errors

* chore: Replace arrow function with regular function
2023-09-27 17:36:34 -04:00
Dessalines
aec61ec5d1
Husky fix for production build. (#2150)
* Trying to fix CI for husky 1.

* v0.19.0-beta.1
2023-09-27 20:02:42 +00:00
a304c7d527 v0.19.0-rc.1 2023-09-27 15:09:37 -04:00
SleeplessOne1917
f0ccf93735
feat: Block instance (#2144)
* Start modifying settings

* feat: Finish making block instance setting

* feat: Add translations

* fix: Handle first load fetch

* chore: Fix linting error

* fix: Fix broken import
2023-09-27 14:11:08 -04:00
SleeplessOne1917
d9fe7d1488
Remote follow (#1875)
* Redirect to page user was trying to access on login

* Make modal

* Make modal look better

* Forgot to include in merge

* Get rid of modal

* Add external interaction page

* Tweak success page

* Add loading screen for remote fetch and refactor loading ellipses

* Add error state for remote fetch page

* Add card to federation success page

* Bring back remote fetch modal

* Add autofocus to remote fetch modal input

* Redirect for remote fetch

* Remove dummy data

* Remove duplicate functions

* Update translations

* Update translations

* Fix linting error

* Fix linting errors

* feat: Add toasts for remote follow error conditions
2023-09-25 23:32:37 -04:00
SleeplessOne1917
65e669035d
Remove auth from API request body params (#2140)
* chore: Remove auth param from API request bodies

* chore: Update client to use bearer token
2023-09-25 21:07:26 -04:00
biosfood
a97e608f27
refetch inbox when marking a message as read (#2131) 2023-09-13 09:27:50 -04:00
biosfood
d7a80a184f
allow limited markdown in spoiler summary (#2126)
* allow limited markdown in spoiler summary

* use const in markdown spoiler code
2023-09-13 07:35:27 -04:00
Security-Chief-Odo
f9f8233d6f
Changed blocked instances to not be linked from instance page (#2121)
Co-authored-by: Beehaw Dev <dev@beehaw.dev>
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-09-12 16:56:22 -04:00
biosfood
5e91a4d9af
fix purge submit button in post-listing (#2128) 2023-09-12 16:54:48 -04:00
ab545e0e19
Increase cache-control max-age to 60s (#2124)
Cache headers have been active in production for a while now, and I didnt see any issues reported. So it should be save to increase the max-age to reduce server load further.

Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-12 15:27:56 -04:00
biosfood
a5366ddf7a
Don't hide the 'show source' button for anonymous users (#2127) 2023-09-11 18:12:57 -04:00
Jarosław
d98009c7d5
Disable "Next" button in Paginator when the next page is empty (#2114)
* Store communityLimit as a constant in the config

* Block Next button on communities list if the next page is empty

* Use this.props instead of undefined props, compare number to the length of the array, not the array itself

* Set nextDisabled prop for Paginator in registration-applications component

* Set nextDisabled prop in Paginator required

* Ignore nextDisabled prop in Paginator component used in person/inbox.tsx and modlog.tsx

* Set nextDisabled to true if community is not yet loaded or no more pages are expected

* Set nextDisabled to false for Paginator in emojis-form.tsx

* Fix swapped bool logic in community.tsx

* Set nextDisabled for Paginator in home.tsx

* Set nextDisabled for Comments and Posts in person-details.tsx

* Set nextDisabled for reports.tsx

* Set nextDisabled for search.tsx

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-09-07 09:33:43 -04:00
biosfood
8e2609a96d
Add moderator view button (#1993)
* update lemmy-js-client version

* add moderator view to moderator view select

* fix some linting problems introduced in recent lemmy-js-client changes

* remove form id from mardown-textarea submit

* add default delete_content as false

* manually check if a user is an admin

* update lemmy-js-client to 0.19.0-rc.7
2023-09-06 08:43:19 -04:00
SleeplessOne1917
c49ca9e195
Fix communities search bug (#2108)
Co-authored-by: Dessalines <dessalines@users.noreply.github.com>
2023-09-02 14:22:41 -04:00
Jarosław
38ec8c0b06
Display more information why has the login failed (#2109)
* Add registration_application_pending and email_not_verified as a toast message

* Fix linting errors

* Fix more linting errors

* Skip key checks on login error

---------

Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-09-02 13:11:46 -04:00
Dessalines
0ec0af71bb
Fix husky for yarn 2 . (#2110)
- Context: https://typicode.github.io/husky/getting-started.html#yarn-2
2023-09-02 09:51:58 -04:00
SleeplessOne1917
7c2defcf0e
Report fix (#2089)
* Fix report dialog not closing once submitted.

* Refactor

* Incorporate suggested changes
2023-08-31 08:34:06 -04:00
Die4Ever
6224c4e378
always show community name with instance for easy copy-pasting to friends (#2073)
* always show community name with instance for easy copy-pasting to friends

I don't like the inconsistency of community names currently, the UI shouldn't be presenting things differently because of technical reasons that are hard for users to understand. This makes it easier to share communities with your friends!

* always show community name with instance, cleanup
2023-08-30 14:52:36 -04:00
cmp
b2927c36a2
Update spoiler icon to diamond shape. (#2102) 2023-08-30 12:42:30 -04:00
cmp
c4f7344564
Ensure markdown links have the noopener and nofollow rel tags as well. (#2100) 2023-08-29 23:39:39 -04:00
dnswrsrx
acc32f2c5d
Move allowed and blocked instance tables to the column right of linked instance table (#2071)
* Move allowed and blocked instance tables into column right of linked

Conserve some vertical space. And I assume linked instance list will
usually belonger than allowed and blocked, combined or not.

* Use tabs to organise instances by status

As per suggestions from the initial PR. Using the suggested Tab
component was implemented.

* Provide a header when there are no instances found

Will be weird if there are no instances linked on this instances page
otherwise.

* Wrap tabs and table in a col-sm-8 div (within a row div)

To restrict the width of the table especially on wider screens
2023-08-29 15:27:50 -04:00
Dessalines
28d60a12d0
Woodpecker updates. (#2046)
Co-authored-by: SleeplessOne1917 <abias1122@gmail.com>
2023-08-26 00:40:38 -04:00
Anon
b4dd0556e4
Federate emoji sizing (#2063)
* Store signifier for emoji image, render using emoji css.

* cleanup

* fix prettier
2023-08-26 00:35:59 -04:00
drumlinish
c8ab91bdd6
Moved title field to the top of post-form (#2039, #2059) (#2061)
* Moved title field to the top of post-form

* Remove whitespace

* Trigger build

* Trigger build

---------

Co-authored-by: drumlin <>
2023-08-14 21:21:40 -04:00
Anon
f27cbb3224
Temp fix to modlog failing to render future dates (#2058) 2023-08-12 22:46:26 -04:00
cmp
da4fd7e39e
Move banned users to a separate admin tab. (#2057) 2023-08-12 05:25:29 -04:00
Dessalines
2117f1d0f2
Fixing webpack build. (#2042) 2023-08-07 20:07:09 +00:00