ReeTui

ReeTui Used AI

33 devlogs
232h 23m
Created by Youssef

a chat app that run in the terminal bc 2030 is the year we're not going to use desktop env

Timeline

so i reworked the message layout styling, better performance, some enhancement etc, now just some work on the server, and ill make a website very woopy fast, and ill ship it yay

Update attachment
Youssef
Youssef
10h 21m 1 day ago

so i fixed a bug, where when the img is a square, it takes the whole screen, and fixed the emoji search, and spent some times working on the folder and bin ascii >:], and fixed the size of the file manager (-_-)=b

Youssef
Youssef
11h 16m 2 days ago

so yeah, its been a while, ive made the image not have more widht when reached the max widht, and have more height when he don't have a lot of widht, and made the notification manager, fully working , now im gonna enhance the other things, so w'll have a fully working chat app >:]

Youssef Youssef 2 days ago
:orpheus-smirk:
Youssef Youssef 2 days ago
orpheus is also driving a cat
yehor yehor 2 days ago
where did the beer car drive guy go
Youssef
Youssef
10h 56m 4 days ago

the chat app still doesn't work, i shouldn't have done the rewrite if what i have already work, now im very very stressed, anyway, now im gonna work on the old one, the working one, and gonna apply all the changes, to make it the best >:]

Update attachment
Youssef Youssef 4 days ago
please understand that this caused a lot of emotional damage :heavysob:
Youssef
Youssef
10h 45m 6 days ago

yay, now im rewriting it, for the whatever how many time, and i wrote a very good notification thing, now im gonna rewrite the chat, and everythings gonna be :fire:

HQ2000 HQ2000 5 days ago
damn that’s so :fire:
Youssef Youssef 6 days ago
why :heavysob:
Advick Advick 6 days ago
No
Advick Advick 6 days ago
No

so i tried a lot of time to implement ratatui-image in this app, but after @MHanak tried my app, he helped me and recommended me the good practices, and i realized that the image preview isn't the real problem i have, now im rewrting it, and thx for @MHanak for his help :)

Update attachment

updated te layout of a box msg, and also now where using ratatui image, but bc im still implementing it(144 errors 35 warnings >:3), thats an screen shot ive made 4h earlier

Update attachment
Jakov C Jakov C 9 days ago
YESSSS YEESSASDASFDJADJFPKAD YEAAAA!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! I LVOE TEHIIDSSISISISSSS

finally fixed the damn file manager, i think now its good, ive even added a metadata section, to see duration, resolution, if its too big to send, and that kind of things, now im gonna improve other things, idk, maybe the propose channel pop up, idk

HQ2000 HQ2000 7 days ago
damn this was worth over 100h I would say

sooo, yeah, i rewrited the file manager, and i makae it better ig, so, its not a lot, i will tmr work on a better preview and that stuff

omg how i can tell that, i was having issue with the previewer, ive changed smt that made him crash, so i git restore . , but i forgot that i haven't commited the changes yesterday, so now i lost everything, but im trying to rewrite the file manager again, also the pic is unrelated

Update attachment

just wanted to proof that the img preview work :3, but it crashes sometime for some reason, gotta fix tmr

Update attachment

so i fixed the bug, where when we open the settings ,and then go out of it, the chat pgae reconnect and that stuff, also worked on the file manager, there is a lot of bugs, like the image preview not working and that stuff, but working partially, and fixed the scroll bc uh, it was really buggy ("=-=)

yay, the perf is way better, its a lil buggy after opening the settings, its because it reconnect to the ws and those stuff, but its good d=(-v-)=b

so yeah, ive changed the setting pop up by a settings module, beter ig, but still, we can't interact with the chat page, maybe a tokio think i forgot todo, but everythings good for now

Youssef Youssef 14 days ago
thats the old one lol, im now rewriting it in another folder, but need this one to copy paste some code, i might push it to the repo til i don’t need the old version, and no thats not btop themes
MHanak MHanak 14 days ago
are those btop themes? nice. also one thing: i had a look at the repo and you might want to add log.log to .gitignore

uh, the originael version took a lot of cpu usage, so i decided to optimize it, and use tokio instead of rusts std async, for now, i ReeWritted the home and auth tui page, and its using 2% less than the original version :yay: (< why :heavysob:), tommoroy ill reewrite the chat tui ofc, AND MAYBE AN AUDIO PLAYER idk

Youssef Youssef 14 days ago
since tha app is only using the cpu, not the gpu
Youssef Youssef 14 days ago
yeah, thats what im trying todo, and im also planning to add smt that track if the app is used, and if not it slow donw the delay, like 60 fps if used, and 24 if not
MHanak MHanak 14 days ago
Have you tried profiling the app? my guess is that the GIFs rerendering take a lot of compute forcing the entire app to rerender, maybe try to only render the gifs in a separate thread if possible?
MHanak MHanak 14 days ago
Have you tried profiling the app? my guess is that the GIFs rerendering take a lot of compute forcing the entire app to rerender, maybe try to only render the gifs in a separate thread if possible?

now we can see gifs, and i have updated the ui, also it was a lil slow so i managed to use multithreading for that ;-; but its atleast working, but the files are gettings, big, i also modularized the home and auth tuis code

sooo, i tried to make the gif wrok ,but bruh, i fixed the bug where the image aren't rendered when its come from the history , and fixed the scroll, but for some reason, it crashes at random moment, prob download thing or whatever, gonna fixx it tommoroy ('°-°)

Update attachment

made some server optimization, now we can download a 255% of a file in less than 0.5s, added image handling, but still gif need work, then ill do some tui tweaks, and a .conf file for personalising the colors and custom themes, i think ill also enhance the settings etc, but bruh it seems a lot of wrok tbh

Update attachment

uh, do some tweaks, added a file manager, made a file manager to upload file, we can also download files too, and added some themes for fun

Update attachment

Major code Ree Arrangement , especially in the chat tui code, do some tweaks, still some bugs, and started implementing the file upload, will need some time

Update attachment

we got now notif and mentions, still in beta (some minor bugs, like still seing the mention pop up even if its empty and those kinds of bugs)

Update attachment

added emoji selector when typing ':', tried to add notif and mention, soone ill add friends discussion and file upload

Update attachment

the thinkpad is dead, i am very cooked, there still a lot of bugs, sis laptop sucks, and i don't f remember what ive done, and widnwos sucks, he just recorded the one windows -_-

uh, the Reechat TUI, just still need some work, especially a bug that make it crash, im gonna work for it this night >:]

ReeWriting this thing

uh, screwed the client, and forgot to commit for a while lol
also i worked on the new auth page (1000 lines fr), and themes ?

uh, added the channel feature, but oh man i get this error for some reason:WebSocket error: ColumnDecode { index: \id\", source:mismatched types; Rust type alloc::string::String (as SQL type TEXT) is not compatible with SQL type BLOB" }

Youssef Youssef about 1 month ago
sqlx = { version = "0.8.6", features = ["runtime-tokio", "sqlite", "macros", "uuid"] } thats the code import, btw if u see a lot of these message, thats bc i don’t see it when i send it
MHanak MHanak about 1 month ago
i second @Your local wobbler, whatever database library you are using should have a crate feature for converting uuids to SQL types
Your local wobbler, Suya Your local wobbler, Suya about 1 month ago
Are you using UUIDs as your ID's? If so, those are internally stored as binary data in postgres and such. You might wanna use the uuid crate and export as binary to sql

FINALLY HOSTED THIS SERVER
also i spent 5 hours, why hackatime show only 30min
ive make the chat a lil more modular in code, and make some optimization, added the blink cursor too

:3, everything is in the video, my hands are just hurting me at this point

Youssef Youssef about 1 month ago
meaw
Koei Koei about 1 month ago
meow
Koei Koei about 1 month ago
meow

now, it working, my hands hurt again, here is a vi

BREAKING CHANGE!
switched to Rocket and Reddis (was reading the docs and doing some text last night)
now we have real time for real
we removed the tui because it is not complatible with the older one
gonna rewrite it
more secure, when registering, we receive a token that is used to talk with the websocket
Forgot to say we added websocket
my hand hurts so here is a vid

Youssef Youssef about 2 months ago
i mean test

well, i added the auth tui chat tui (just a prototype) , and also a net debuger to see what the client and the server are talking about , well, the app is quite usable, just some things like sending new messages to others and add a checker to check if the message can be sended to others or have some bad words that shouldnt be sent

made the server side, now its just receiving data, and the client send it, here u can see how it actually works