Skip to content

Commit

Permalink
feat: Client implementation (#2)
Browse files Browse the repository at this point in the history
* feat: initial Tui application setup

the event handler is not good and needs to be reworked, this setup is a good starting point

* chore: update workspace cargo files

* fix: proper program terminattion

* refactor: implement default for App

* refactor: rewrite event handler

* refactor: update main to handle new events

the events are tick and mouse events

* chore: update cargo.toml

* feat: add home and footer components

* feat: add new events to handle

* chore: add components to lib

* feat: add home and footer component to app

* feat: update ui to render home and footer

* chore: update root cargo.lock

* chore: update cargo.toml & .lock

* feat: add login popup

* feat: update event handling for when selecting an action in home page

* feat: refactor ui into seperate package

* refactor: update app struct with lifetime

* feat: initial poc implementation for login pop

* feat: add helper text for login popup

* chore: update cargo

* feat: add Error mode in app.rs

* feat: update event handler to handle Error event

* chore: update text in footer

* feat: add validation of login credentials and error popup

* feat: handle error event in program loop

* feat: add validation & helper text for register

* feat: add login functionality

* feat: add register functionality

* chore: fix small clippy suggestions

* feat: initial PoC implementation for receiving and sending messages

* feat: improve sending and receiving message

the sending and receving of message have improved since we no longer require to clone the app each time, now each api for the client is created separately in the client.rs

* feat: improve chat functionality in client

* feat: add error popup when client want to send empty message

* refactor: update chatapi to receive a message without having to send something first

* fix: correctly value of password check operation

* chore: remove unecessary prints

* fix: update handling of expired jwts

* chore: fix formatting

* chore: remove --check for sqlx prepare git workflow

* fix: add cargo update in github workflow

* chore: update cargo dependencies to latest version
  • Loading branch information
Atheer2104 authored Aug 11, 2024
1 parent 0957236 commit f0915b4
Show file tree
Hide file tree
Showing 36 changed files with 2,634 additions and 525 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/general.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
with:
# this key will be added to tha automatic 'job'-based cache key, this key can also be used in further different jobs
key: "sqlx-${{ env.SQLX_VERSION }}"
- name: update cargo
run: cargo update
- name: Install sqlx cli
run: cargo install sqlx-cli
--version=${{ env.SQLX_VERSION }}
Expand All @@ -58,7 +60,7 @@ jobs:
SKIP_DOCKER=true auth/scripts/init_db.sh
- name: Check sqlx-data.json is up-to-date
run: |
cargo sqlx prepare --workspace --check
cargo sqlx prepare --workspace
- name: Run tests
run: cargo test -- --test-threads=1

Expand Down
Loading

0 comments on commit f0915b4

Please sign in to comment.