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.
- 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
- 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.
- 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.
- 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.
- 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.
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.