Commit Graph

65 Commits

Author SHA1 Message Date
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
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
Blake Duncan
7735f50827 Taking rooms out of the server object in state 2023-08-08 17:00:26 -04:00
AtHeartEngineer
d6736e5012 Merge pull request #11 from Discreetly/join-flow-fixes
Fix some async issues in the Join user flow
2023-08-04 17:10:23 -04:00
Blake Duncan
c494733a2b Fix some async issues in the Join user flow 2023-08-04 16:34:52 -04:00
c31ecd7f51 fixes - this puts the FE in a better state but probably still has issues 2023-08-04 10:39:12 -04:00
f1c05071b9 feat: add matomo 2023-08-01 15:58:51 -04:00
AtHeartEngineer
bd90b2d553 text logo for github 2023-07-31 22:03:36 -04:00
391e266d8e chore refactored "updateServer" 2023-07-31 21:11:45 -04:00
458008b061 Fix bug caused by changing room.id to room.roomId 2023-07-31 18:52:40 -04:00
6a87866ea8 fix ui not rendering chat room properly because of the conflict between room.id and room.roomID for the db 2023-07-27 23:53:41 -04:00
072c05296c chore(roomGroups) removed roomGroups 2023-07-27 17:12:22 -04:00
fb0e780c59 feat(identity backup & restore) via json and qr code 2023-07-27 01:58:24 -04:00
AtHeartEngineer
3e42e88c0a feat: updated RLN Identifier variable for clarity 2023-07-25 23:58:18 -04:00
AtHeartEngineer
f682fcb5de logos, local fonts, cleaned up theme, minor bugs 2023-07-25 00:18:39 -04:00
AtHeartEngineer
c7544d90f3 no more cheating 2023-07-12 00:54:17 -04:00
AtHeartEngineer
cc9d8b6643 repo work 2023-07-12 00:30:39 -04:00
AtHeartEngineer
9835accab0 identity page cleanup 2023-07-12 00:26:06 -04:00
81d7ac77fa disable prompt if can't send 2023-07-11 23:59:07 -04:00