Commit Graph

82 Commits

Author SHA1 Message Date
Blake Duncan
0cfac51241 Don't call DOMpurify on the server 2023-08-29 17:56:54 -04:00
Blake Duncan
7838fac50f Add emoji support 2023-08-29 17:51:04 -04:00
Blake Duncan
cdb475f56a Clean up 2023-08-29 17:33:38 -04:00
Blake Duncan
498301c27c Adding some libraries to update text chat and created BubbleText component 2023-08-29 16:48:16 -04:00
AtHeartEngineer
e500c3430e let people complete signup without backup 2023-08-29 13:28:27 -07:00
AtHeartEngineer
e94e85410f minor bug fixes, backup identity abstraction, alert toast message abstraction 2023-08-28 23:31:10 -07:00
AtHeartEngineer
5afa7835a5 link fixes 2023-08-28 12:34:39 -07:00
AtHeartEngineer
bca7abb810 link fix and about update 2023-08-28 12:08:00 -07:00
AtHeartEngineer
6d6cd43ea4 logo goes to chat if identity exists 2023-08-28 11:58:38 -07:00
AtHeartEngineer
03029989af change ? link button style 2023-08-28 11:56:40 -07:00
AtHeartEngineer
f2c87ac260 move ? link in header 2023-08-28 11:55:15 -07:00
AtHeartEngineer
6e7b16e8fb fix typo in url generation 2023-08-28 11:50:12 -07:00
AtHeartEngineer
3578cd41dc links to discord 2023-08-28 11:48:40 -07:00
AtHeartEngineer
aef09d90c0 url for invite codes 2023-08-28 11:44:12 -07:00
AtHeartEngineer
8658fd19e4 chore(UI): Adjust layout and add tooltips
This commit adjusts the layout in the chat page by widening the sidebar column. Tooltips have been added to provide additional information for the server and room selections. The footer has been temporarily commented out for further improvements in the future.
2023-08-28 02:20:29 -04:00
AtHeartEngineer
6d81f11acb Merge pull request #24 from Discreetly/alpha-fixes
Cleaned up Light Mode, fixed lots of small bugs/UX things, added admin invite feature
2023-08-28 01:41:06 -04:00
AtHeartEngineer
a62b6ae7de feat: Add loading component to Join form
- Added a loading component to the Join.svelte form to show a loading message when the invite code is being submitted.
- Updated the addCode function to set the loading variable to true before making the API call and set it back to false when the API call is completed.
- Added a msg variable to store any error messages returned by the API call and display them to the user.
- Updated the submit button to show a loading message when the loading variable is true and disable the button when there is no invite code.
- Added a new <aside> element to display the error message if there is one.
- Added a style tag to set the overflow-wrap style property for the <aside> element.

fix: Fix SelectRoom style issue

- Updated the SelectRoom.svelte component to use the variant-ghost class for the <select> element and set the background color and text color based on whether the room is selected or not.

fix: Update SelectServer component

- Updated the SelectServer.svelte component to use the variant-ghost class for the <select> element and added a margin to the component.
- Updated the add server button to use the variant-ghost class and added some margin to the button.

feat: Add loading component

- Added a new loading component to show a loading message and a progress indicator when the page is loading.

refactor: Update prover.ts

- Updated the logging in the genProof function in prover.ts to use console.info instead of console.debug to improve visibility of proof generation.

fix: Update postAuth function

- Added a new postAuth function to make a POST request with basic authentication to the API.
- Updated the createInvite function in server.ts to use the postAuth function to create invite codes with basic authentication.

feat: Add invite code functionality

- Added new types for invite codes and
2023-08-28 01:38:15 -04:00
d3a77e8f28 chore(gitignore) ignore vscode settings 2023-08-27 12:24:12 -04:00
AtHeartEngineer
ebf4fa0efa connection status 2023-08-26 00:30:41 -04:00
AtHeartEngineer
64e322969c connection status & system broadcasts 2023-08-26 00:10:02 -04:00
AtHeartEngineer
92298e2940 import bug fix 2023-08-25 23:57:50 -04:00
AtHeartEngineer
081e4c2a9f feat: Add toast notifications for system broadcasts
- Updated the layout component to include a toast component with a specific position.
- Modified the chat room component to import the toast store and show toast notifications for system broadcasts.
- Updated the chat room header component to adjust the positioning of circles on the canvas.
- Modified the input prompt component to include a custom message when the rate limit is reached.
2023-08-25 23:56:46 -04:00
AtHeartEngineer
a1b64ef288 messagesSent++ 2023-08-25 22:40:01 -04:00
AtHeartEngineer
e2788ad279 Merge pull request #23 from Discreetly/qol
refactored for better UI/UX
2023-08-25 01:05:12 -04:00
b0c0834a1a refactored for better UI/UX 2023-08-25 01:01:36 -04:00
AtHeartEngineer
8768a7721f Add error handling to rateLimit utility function 2023-08-23 20:33:39 -04:00
AtHeartEngineer
f299a84c4c Format Time Relative 2023-08-23 20:28:41 -04:00
AtHeartEngineer
ccc322334d feat: Improve Join functionality and SelectRoom component
- Added a code transformation to lowercase before sending to the server in the Join component.
- Modified the SelectRoom component to use a list layout instead of a dropdown menu.
- Added a click event to each room item in the SelectRoom component to update the selected room.
- Updated the styles for the SelectRoom component to improve readability.

fix: Handle errors in merkle proof generation

- Added error handling for generating merkle proofs with rate commitments and identity commitments in the Prover module.

style: Adjust grid template columns in Chat page

- Adjusted the grid template columns in the Chat page to make the sidebar narrower.

fix: Improve error handling in InputPrompt component

- Added validation for empty messages and messages that exceed the character limit.
- Added error handling for cases where generating merkle proofs fail, displaying appropriate error messages.

style: Adjust padding in Sidebar component

- Adjusted the padding in the Sidebar component to improve spacing.

feat: Reset state on identity deletion

- Reset the state on identity deletion by setting identityStore, configStore, roomsStore, selectedRoom, and messageStore to their initial values.
2023-08-23 19:48:43 -04:00
AtHeartEngineer
43fb6ab45f Merge pull request #18 from Discreetly/mobile
Add SelectRoom.svelte component and update layout for Chat page
2023-08-23 18:41:34 -04:00
AtHeartEngineer
ffb2931212 Add SelectRoom.svelte component and update layout for Chat page
- Added SelectRoom.svelte component to allow users to select a room.
- Updated the layout for the Chat page to include the SelectRoom component in the top drawer.
2023-08-23 18:40:58 -04:00
AtHeartEngineer
1ef80bc321 Refactor storage set and update functions, update roomStore and serverStore
- Refactored the set and update functions in `storeFactory.ts` to use more descriptive variable names.
- Updated the `set` function to use the `value` parameter instead of `newValue`.
- Updated the `updateRoomStore` function in `rooms.ts` to directly update the `roomsStore` and `serverStore`.
- Removed unnecessary lines of code from `updateRoomStore` and fixed indentation.
- Added comments to clarify the purpose of the code in `updateRooms` function in `rooms.ts`.
- Added code to limit the number of messages in the message store in `ChatRoom.svelte`.
- Updated the `currentRoomMessages` loop in `Conversation.svelte` to not reverse the order.
- Added a debug statement in `InputPrompt.svelte` to print the message being sent.
2023-08-23 16:59:38 -04:00
AtHeartEngineer
3d93182b13 removed testing route 2023-08-23 15:13:09 -04:00
AtHeartEngineer
490de3ea93 Merge pull request #17 from Discreetly/rate-limiter
Update the server address in `SelectServer.svelte` from `http://discr…
2023-08-23 15:09:39 -04:00
AtHeartEngineer
9e57131315 Update the server address in SelectServer.svelte from http://discreetly.chat/ to https://server.discreetly.chat/.
Update the default server URL in `defaults.ts` to `'https://server.discreetly.chat/'`.

Add a new function `getMessages()` in `server.ts` to retrieve messages from a server.

In `ChatRoom.svelte`, call `getMessages()` to fetch messages from the selected server and update the message store.

In `InputPrompt.svelte`, remove console log statements.

In `BackupIdentity.svelte`, add a cursor style to the QR Code button.

In `DeleteIdentity.svelte`, reset the application configuration after deleting the identity.
2023-08-23 15:09:19 -04:00
AtHeartEngineer
6ee66af3cb Merge pull request #16 from Discreetly/rate-limiter
implement rate limiter properly in svelte
2023-08-23 12:59:58 -04:00
AtHeartEngineer
80f4f1815c implement rate limiter properly in svelte 2023-08-23 12:59:34 -04:00
AtHeartEngineer
bd56a854e1 Merge pull request #15 from Discreetly/store-refactor
Fix prover and Join to other servers
2023-08-22 17:44:58 -04:00
2339d74483 refactor(join) extracted join component with select server component 2023-08-22 17:20:55 -04:00
ef91227f22 fixed prover with correct hashing 2023-08-22 16:44:54 -04:00
AtHeartEngineer
e502350f4f Merge pull request #14 from Discreetly/store-refactor
Major Refactor
2023-08-22 13:53:09 -04:00
e3dfc244a6 fixed prover and epochs 2023-08-22 13:52:37 -04:00
09db35b72e fixes: does identity exist, sidebar room list, some prover fixes 2023-08-21 21:39:57 -04:00
d615c3f983 cleaning up signup process with new refactor; server fetching works now 2023-08-17 17:06:24 -04:00
AtHeartEngineer
04e4f2bb06 continuing refactor 2023-08-17 00:14:25 -04:00
316d6aaf0c refactor fixes and organizing components 2023-08-16 22:15:55 -04:00
97c12f1c33 checkpoint - untested - major refactor to stores 2023-08-15 23:52:14 -04:00
b781cb3b4d major refactor 2023-08-15 20:22:09 -04:00
AtHeartEngineer
da420d9dbb Merge pull request #12 from Discreetly/fix-state-issues
Taking rooms out of the server object in state
2023-08-10 14:00:25 -04:00
Blake Duncan
926f97110e Fixing some loading state 2023-08-10 11:42:51 -04:00
Blake Duncan
b713d71e46 More clean up of rooms state 2023-08-10 10:50:00 -04:00