Commit Graph

369 Commits

Author SHA1 Message Date
1f793312be Hopefully fixed regression in background styling for
frequency/member/ban/signal lists
2025-02-08 17:42:07 +02:00
57441a44ac Updated bubletea version, broken a bunch of UI but seems to fix the
tearing issue in fast terminals such as ghostty
2025-02-08 17:04:37 +02:00
4776d42ccc User settings colors are now runtime-friendly except for fields which
have an issue (effects all popups and anything else that uses them),
seems to be an issue in charm
2025-02-07 19:52:11 +02:00
e396129e07 Viminput colors are now runtime-friendly 2025-02-07 18:39:03 +02:00
939a692168 Chat colors are now runtime-friendly (except viminput) 2025-02-07 18:28:44 +02:00
7f1148cbd8 Signallist colors are now runtime-friendly 2025-02-07 17:47:42 +02:00
479fc541eb UI, memberlist and banlist colors are now runtime-friendly 2025-02-07 17:39:39 +02:00
58df1b978b Frequencylist colors are now runtime-friendly 2025-02-07 17:22:12 +02:00
9065ca31d0 Networklist colors are now runtime-friendly 2025-02-07 17:21:48 +02:00
ffb5935164 Added config for colors (not yet supported in most areas as I need to
make things not static so they color changes)
2025-02-06 18:37:29 +02:00
98f29ba812 Fixed a bug where if you would delete a message that would make the chat
empty, it wouldn't show the empty chat message
2025-02-06 17:22:18 +02:00
a758ca4212 Chat is now handling user signals better and showing specific signal
strings instead of the frequency strings
2025-02-06 17:18:53 +02:00
0ffeb67a3c User signals now support not selecting any signal (which is the default
on start to avoid "insta-reading" messages of the top isgnal)
2025-02-06 16:56:05 +02:00
242add420d Implemented network icon notifications for user signals icon 2025-02-06 16:45:59 +02:00
3c05ff0937 Added notifications display in user signals 2025-02-06 16:33:16 +02:00
f10f8396cc Added support for editing messages in user signals 2025-02-05 20:00:29 +02:00
b96118f59b Removed all instances of setting the user data, this is retrieved once
on start, then managed by the client and stored once on client exit
2025-02-05 19:51:00 +02:00
0bf5515629 When a user sends a message "signal" and the receiving user doesn't have
the signal already open, it will be added as the first signal
2025-02-05 19:41:34 +02:00
8a8c4e9abc Refactored all instances of the word "peer" and it's variants to
"signal" and it's variants as this is the new terminology for "user
signals" which are direct messages between 2 users
2025-02-05 16:54:09 +02:00
9d1158f03e Implemented deleting messages in user signals 2025-02-05 16:45:01 +02:00
f0607f1663 Server now also sends the last_read column to the client so the client
so the client can use it to persist notifications
2025-02-04 19:37:06 +02:00
752403fd52 Implemented notifications rework on the client 2025-02-04 19:32:04 +02:00
fe520e219c Server now uses a new context for api requests to make sure they still
get completed even if the user disconnects, this is not ideal and should
be reworked in the future
2025-02-04 19:30:30 +02:00
d9ae301818 Reverted back the removal of the logic in get notifications to check if
the user has access to the frequency, because it is needed for the
is_admin ping type but also to prevent the case where someone was an
admin, got demoted and can now monitor when new messages are sent there
2025-02-04 19:08:22 +02:00
eab8cba4bb Refactored the way notifications work on the server-side, next commit
fixes the client to use this new system
2025-02-04 18:52:57 +02:00
42a1ee12c1 Fixed crash in user signals 2025-02-04 16:54:51 +02:00
e3b22023d8 Fixed a bug in viminput where trying to delete in visual mode up to the
end of the line and that line is the last line, it wouldn't delete
anything
2025-02-03 19:38:43 +02:00
7d9a1adb1e Added support for viw/vaw and viW/vaW in viminput 2025-02-03 19:29:16 +02:00
4ad772a1e9 Added v/V in visual/visual line modes to switch between the 2 2025-02-03 19:01:52 +02:00
cac7be6c22 Fixed a bug where users weren't able to scroll higher if they already
got to the top message but then more messages have been added
2025-02-03 18:13:15 +02:00
ad25655d5f Fixed first message of a user triggering the "new" line if there were no
new messages in the frequency/receiver
2025-02-03 17:38:19 +02:00
c0013eba37 Fixed instances where viminput would still show the terminal background 2025-02-03 17:30:23 +02:00
a6cb16570e Pings now have a matching backgground if the user is effected by them 2025-02-03 17:14:35 +02:00
e8a7f654d7 Fixed edited messages still showing terminal bg 2025-02-03 17:03:13 +02:00
008d7cd0cd Added background for chat to avoid relying on terminal background 2025-02-03 16:50:53 +02:00
822347c1aa Moved client-side calculations of notification to after all the
components have updated instead of before so the view will reflect the
update in case any of the updates change the notifications
2025-02-02 19:28:11 +02:00
c77ac77e78 Added support for offline notifications where the server calculates them
and sends the info to the client when it connects
2025-02-02 19:23:50 +02:00
a1c20cbfc5 Corrected separator background to match the background of the section
they separate
2025-02-02 18:35:36 +02:00
b3e4eb11be Fixed rendering issue with pings in frequencylist 2025-02-02 18:30:22 +02:00
69bbde190e Reworked how frequency notifications work 2025-02-01 17:36:23 +02:00
0659bdaf81 Added a way to display notifications for networks 2025-02-01 16:51:10 +02:00
ac01dff4e7 Started working on notifications for networks (got to carried away with
how it looks lol)
2025-01-30 20:33:02 +02:00
088baa6d3a Implemented frequency-level notifications and pings 2025-01-30 19:04:52 +02:00
a0fb12ca9a Added automatic saving when the client exits (using ctrl+c), will abort
and not save if it takes longer than 1 second
2025-01-30 18:55:29 +02:00
e98132bb4a Added "new" indicator to show which messages are new when opening a
frequency, similar to how discord works
2025-01-30 16:44:11 +02:00
eac9e1ad09 Pressing enter will now properly update the border of viminput 2025-01-29 16:21:40 +02:00
8c805499ec Fixed incorrect rendering of peers in the user signals when they are
trusted and their public key mismatches and also ellipsis when the
username overflows the width
2025-01-28 19:48:18 +02:00
f3bf8a9c5d Fixed recently introduced crash due to trying to access network info
while in user signals
2025-01-28 19:37:33 +02:00
2e9e0785c3 Fixed wrapping issues of placeholder in viminput and also re-phrased
some things
2025-01-28 19:33:51 +02:00
7abb46eb81 Fixed viminput border not updating instantly 2025-01-28 19:12:19 +02:00