Skip to content

Commit

Permalink
Release 1.5.0 (#146)
Browse files Browse the repository at this point in the history
* SK-217 Implemented group chat images  (#124)

* SK-189 Add images support for profile

* SK-189 added updateNeedToUploadAvatar to utils

* SK-189 clean up

* SK-189 Minor changes

* SK-189 removed the login field from the edit request

* SK-189 replaced currentuser -> currentUserId store, added getCurrentUserFromParticipants

* Sk-189 fix loop

* Sk-189 updated blur-hash style, added more avatar views

* SK-189 removed all events for upload user's avatar

* SK-189 optimization

* SK-189 removed uploadAvatarsUrls

* SK-217 added support for upload image for group chat

* SK-217 added DynamicAvatar for chat list

* SK-217 added owner validation

* SK-217 added image_object to create conversation request

* SK-217 added owner icon validation

* SK-217 added hover effect

* SK-217 optimized group icon for mobile

* SK-217 added hover effect

* SK-217 updated icon for conversation on chat list

* SK-217 added loader

* SK-217 try to fix

* SK-217 fix delete conversation

* SK-194 implemented typing status indicator (#126)

* SK-194 added names view

* SK-194 added support name in last message view

* SK-194 added validation for system message

* SK-194 updated last message structure

* SK-194 fixed error on close chat info

* SK-194 minor fixed

* SK-194 fixed user name view, cut if length > 8

* SK-194 fixed last message user name view (nowrap)

* SK-225 Improved compression for avatar and group avatars  (#127)

* SK-225 change quality for compression

* SK-225 updated comression for file

* SK-225 added heic preview for user and group icon

* SK-225 replace 1024 size on create to 300 kb

* updated CHANGELOG.md (1.2.0 -> 1.3.0)

* SK-278 added storing of `refresh_token`, moved auth flow to http (#138)

* SK-278 added storing of `refresh_token`, moved authorization logic to http protocol

* SK-278 `connect_socket` -> `conenct`

* SK-278 updated buildHttpUrl

* SK-278 updated .env.example

* SK-278 minor fix

* SK-278 updated .env.example

* SK-278 added http logout request

* SK-278 updated buildHttpUrl

* SK-278 replaced access_token to headera

* SK-278 removed unnecessary requests

* SK-278 removed access_token from login request

* SK-278 added validation for serviceWorker on logout request

* SK-278 added serviceWorker timeout for ready

* SK-278 change timeout time to 0.5s

* SK-278 added `userData` to localstorage

* SK-278 added log

* SK-278 redirect user on error from http login

* SK-278 addeed validation for token in autoLoginService

* SK-278 added new message error for token expired

* Fixed minor bugs (#137)

* Fixed minor bugs

* Fixed the display of the number of chat participants in the add_participant window

* updated link color in message

* fixed flashing text on page refresh

* Fixed extraction of system message objects from a message (#139)

* updated CHANGELOG.md

* minor-fix

* updated CHANGELOG.md

* fixed the display of errors on the authorization screen

* Added demo page (#141)

* added demo page with alert message

* added text and padding flexibility for mobile devices

* SK-298 removed `leave` and `delete user` options for test users (#142)

* Disabled password change for test users (#143)

* Migrated to Monorepo, Vite, connected Tailwind (#144)

* init Vite, add/updated config files, updated icons import, connect tailwindcss

* cleaned package.json, capacitor for mobile

* migrated to monorepo structure

* added sama-sdk package

* replaced packages/app ->apps/client

* removed buildHttpUrl from utils

* updated README.md

* added LICENSE

* updated sama-sdk, file structures, added events

* updated .env.example

* minor fix on delete user profile

* updated package.json

* Updated README.md (#145)

* add logs for api

* fix device_id, added preview script

* added more logs

* removed logs

* fixed 'Deleted account' is displayed for 1-1 chat when participant left the chat

* added optionalDependencies in package.json

* updated package-lock.json

* updated CHANGELOG.md
  • Loading branch information
Oleksandr1414 authored Mar 4, 2025
1 parent 4ab1168 commit 0fc8d06
Show file tree
Hide file tree
Showing 387 changed files with 28,697 additions and 43,293 deletions.
4 changes: 0 additions & 4 deletions .env.example

This file was deleted.

4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
/.pnp
.pnp.js

.vite/
.idea
dist/

/coverage

/build
Expand Down
3 changes: 0 additions & 3 deletions .idea/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions .idea/misc.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/modules.xml

This file was deleted.

9 changes: 0 additions & 9 deletions .idea/sama-client.iml

This file was deleted.

6 changes: 0 additions & 6 deletions .idea/vcs.xml

This file was deleted.

35 changes: 12 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# SAMA - Simple but Advanced Messaging Alternative - Client app
# SAMA - Simple but Advanced Messaging Alternative - Client app

<img width="1282" alt="ClientImage" src="https://github.com/SAMA-Communications/sama-client/assets/98953475/fe8dfd1c-462d-46d2-aa24-5792b36e23f2">

## Overview
## Overview

This is a frontend demo app for the SAMA server https://github.com/SAMA-Communications/sama-server

Expand All @@ -13,38 +13,28 @@ Read a complete medium post **Introducing SAMA** about what is SAMA and what pro
The whole SAMA stack can be tested using https://app.samacloud.io public cloud.

## Development

### To run Web

- Make sure you followed SAMA server Development guide first https://github.com/SAMA-Communications/sama-server/blob/main/README.md#development
- Copy `.env.example` to `.env`.
- generate VAPID keys via `npx web-push generate-vapid-keys` and set Public Key to `REACT_APP_PUBLIC_VAPID_KEY` in `.env` file
- `npm install` to install dependencies
- `npm run start` to run server
- access http://localhost:3000 in your browser
- In `packages/app`: copy `.env.example` to `.env`.
- Generate VAPID keys via `npx web-push generate-vapid-keys` and set Public Key to `VITE_PUBLIC_VAPID_KEY` in `.env` file
- `npm install` to install dependencies
- `npm run build --workspace=sama-sdk` to install SAMA api
- `npm run start --workspace=sama` to run server
- Access http://localhost:3000 in your browser

There are also other components. Make sure to check [Deploying SAMA chat server stack: a comprehensive guide](https://medium.com/sama-communications/deploying-sama-chat-server-stack-a-comprehensive-guide-294ddb9a2d78)

### To run iOS and Android

#### Preparations

- In order to develop any application with Capacitor, you will need NodeJS 18 or higher installed
- Follow https://capacitorjs.com/docs/getting-started/environment-setup#ios-requirements guide to make sure you meet iOS requirements
- Follow https://capacitorjs.com/docs/getting-started/environment-setup#android-requirements guide to make sure you meet Android requirements

#### How to run

- Copy `.env.example` to `.env` (use `REACT_APP_SOCKET_CONNECT=wss://api.samacloud.io/` to connect to PROD live env)
- Run `npm run capacitor:build`
- To run ios: `npm run ios` or android: `npm run android`

## Community and Support

Join our community for support and discussions:

- [GitHub Issues - SAMA server](https://github.com/SAMA-Communications/sama-server/issues), [GitHub Issues - SAMA client](https://github.com/SAMA-Communications/sama-client/issues)
- [SAMA on Medium](https://medium.com/sama-communications)
- Get help - [Discord 💬](https://discord.gg/bHSm9a7DpC)

## License
## License

[MIT](LICENSE)

Expand All @@ -55,4 +45,3 @@ Any thoughts, feedback is welcome! Please create a GitHub issue for any feedback
Want to support us?

<a href="https://www.buymeacoffee.com/khomenkoigor" target="_blank"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-blue.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" ></a>

101 changes: 0 additions & 101 deletions android/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions android/.idea/.gitignore

This file was deleted.

6 changes: 0 additions & 6 deletions android/.idea/compiler.xml

This file was deleted.

10 changes: 0 additions & 10 deletions android/.idea/deploymentTargetSelector.xml

This file was deleted.

10 changes: 0 additions & 10 deletions android/.idea/migrations.xml

This file was deleted.

10 changes: 0 additions & 10 deletions android/.idea/misc.xml

This file was deleted.

2 changes: 0 additions & 2 deletions android/app/.gitignore

This file was deleted.

54 changes: 0 additions & 54 deletions android/app/build.gradle

This file was deleted.

22 changes: 0 additions & 22 deletions android/app/capacitor.build.gradle

This file was deleted.

21 changes: 0 additions & 21 deletions android/app/proguard-rules.pro

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 0fc8d06

Please sign in to comment.