Skip to content

Conversation

@atyrode
Copy link
Contributor

@atyrode atyrode commented Apr 25, 2025

This PR aims to refactor the codebase to stop using a custom Modal component and instead rely on the 0.18.0-2 version of our Excalidraw fork.

This version exports the Dialog component publicly and was therefore used for the AuthDialog.tsx component (previously AuthModal.tsx)

atyrode added 8 commits April 25, 2025 17:24
- Bumped version of @atyrode/excalidraw from 0.18.0-1 to 0.18.0-2.
- Updated @tanstack/query-core and @tanstack/react-query to versions 5.74.4 and 5.74.6 respectively.
- Updated @types/node to version 22.15.1 and posthog-js to version 1.236.6 in yarn.lock.
- Added authentication handling to ExcalidrawWrapper, displaying AuthModal when the user is not authenticated.
- Removed AuthModal state management from AuthGate, simplifying its structure.
- Updated AuthModal to use the Dialog component for improved UI consistency.
- Replaced AuthModal with a new AuthDialog component for improved functionality and clarity.
- Updated ExcalidrawWrapper to use AuthDialog, simplifying the authentication flow.
- Removed the old AuthModal file.
- Introduced DiscordIcon, GithubIcon, and GoogleIcon components.
- Each icon component supports customizable properties such as className, width, height, and fill/stroke colors.
- Updated index.ts to export the new icon components for easy access.
- Introduced AuthDialog.scss for styling the authentication modal, enhancing the UI with a structured layout and responsive design.
- Updated AuthDialog component to use new styles and replaced references from AuthModal to AuthDialog.
- Integrated new icon components (GoogleIcon, GithubIcon, DiscordIcon) for improved visual consistency in the authentication buttons.
- Deleted the Modal component and its associated styles to streamline the codebase.
- Updated AuthDialog.scss to include necessary styles for the authentication modal.
- Enhanced index.scss with new styles for fullscreen dialogs and modal backgrounds.
- Updated AuthDialog.scss to improve layout and responsiveness, including new animations for the logo and speech bubble.
- Modified AuthDialog component to display a random greeting message from a predefined list.
- Adjusted styles in index.scss for modal backgrounds to enhance visual consistency.
- Improved button styles and layout within the authentication modal for better user experience.
@atyrode atyrode force-pushed the modal-style-refactor branch from 806900e to c797e1d Compare April 25, 2025 17:25
@atyrode
Copy link
Contributor Author

atyrode commented Apr 25, 2025

The branch was accidentally started from another branch, and I had to rewrite the history to discard the obsolete changes.

@atyrode atyrode merged commit 250de02 into main Apr 25, 2025
1 check passed
@atyrode atyrode deleted the modal-style-refactor branch April 25, 2025 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants