Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Next #449

Merged
merged 30 commits into from
Jan 20, 2025
Merged

Next #449

merged 30 commits into from
Jan 20, 2025

Conversation

geolffreym
Copy link
Member

No description provided.

semantic-release-bot and others added 30 commits January 10, 2025 21:36
- Added `handleBackdropClick` function in `modal.tsx` to close the modal when the backdrop is clicked in the 'profile' view.
- Updated `BackdropProps` to use `handleBackdropClick` for the `onClick` handler.
This improves user experience by allowing seamless modal closure in the specified view.
- Renamed `BoxRow` to `FinanceBoxRow` in `finance-withdraw.tsx` and `finance-deposit.tsx` files.
- Updated import paths and component references to reflect the new name.
- Renamed file `box-row.tsx` to `finance-box-row.tsx` for consistency and updated its default export.
This improves clarity and aligns naming with the domain context.
- Replaced MUI `Avatar` with custom `AvatarProfile` component across the codebase.
- Extracted Dicebear URL generation logic into a reusable `dicebear` utility function.
- Updated `dicebear` references to ensure consistent and centralized avatar fallback management.
- Added the new `AvatarProfile` component under `@src/components/avatar/avatar.tsx`.

This improves maintainability, simplifies avatar handling, and replaces repetitive logic related to avatars.
- In `src/sections/user/profile-header.tsx`, replaced `dicebear` fallback with `profile?.id`.
- In `src/sections/publication/publication-comment-item.tsx`, replaced `dicebear` fallback with `comment?.by?.id`.

This simplifies avatar fallback logic by removing unused utility calls and relying directly on IDs.
- Updated `web3AuthSettings.ts` to include `sessionTime` option set to 30 days.
- Ensures longer session persistence for Web3Auth users by default.
- **src/sections/user/profile-header.tsx**: Enhanced the profile header by integrating the `BadgeVerified` component alongside the user's display name for visualizing verification status.
- **src/components/user-item/index.tsx**: Introduced `UserNameAndBadge` component for combining user names with verification badges in the user list. Added `BadgeVerified` component to display the verification status.
- **src/components/user-item/BadgeVerified.tsx**: Created `BadgeVerified` component to check and render a verification icon for users based on their ID.
…fer to/from to history table, added tx row to history table, added padding to deposit modal, added min to register form and edit
- Updated tooltip text in `openable-text.tsx` from "Abrir en una nueva ventana" to "Open in new window".
- Ensures consistency with the application's primary language and improves user experience.
- Added `email` field to the AuthReducerState in `src/redux/auth/index.ts` to track user email data.
- Updated the initial state with a default empty string for `email`.
- Created a new `setEmail` action for updating the email field and exported it with other actions.
- Added `EMAIL_API_KEY`, `EMAIL_SERVICE_ID`, and `EMAIL_TEMPLATE_ID` to `src/config-global.ts`.
- These new variables enable integration with the EmailJS service for email functionality.
- Updated `modal.tsx` in `src/components/login-modal`:
  - Added import for `setEmail` action and `AuthUserInfo` type.
  - Integrated logic to fetch user email using `getUserInfo` and dispatch it with `setEmail`.
- Removed `storeEmailData` function in `finance-invite-friends.tsx` and replaced it with `sendInvitation` from `useReferrals` to handle invitation logic.
- Updated import statements to include `useReferrals` and remove unused `supabase`.
- This change improves modularity and centralizes referral logic for better maintainability.
- Updated `user-profile-view.tsx` to include a new "Referrals" tab.
- Created `profile-referrals.tsx` to display referrals with sorting and pagination.
- Implemented `profile-referrals-table-row.tsx` to manage individual referral rows in the table.
- Added `use-referrals.ts` custom hook for managing referrals API and email functionality.
- Updated `table-pagination-custom.tsx` to set the container's `Box` width to `100%`, ensuring it spans the full width of its parent component.
- This change improves layout consistency where the pagination is used.
- Updated `package.json` to include `@emailjs/browser` v4.4.1
- This library is necessary for handling browser-based email functionalities in the project.
…er and show a local notification informing the status
- **src/utils/supabase-actions.ts**:
  - Created a new utility module to handle all Supabase operations related to invitations.
  - Added functions: `fetchInvitations`, `checkIfMyEmailHasPendingInvite`, `acceptInvitation`, `checkIfInvitationSent`, `checkIfEmailAlreadyAccepted`, `sendInvitation`, and `acceptOrCreateInvitationForUser`.

- **src/hooks/use-referrals.ts**:
  - Refactored the hook to utilize the newly created Supabase actions module.
  - Replaced inline Supabase queries with calls to utility functions for better maintainability.
  - Simplified and cleaned up methods, removing redundant error handling and comments.
- Update `self_invite` to `self_register` in `src/utils/supabase-actions.ts`.
- Ensures correct payload key usage for handling self-registration actions.
- **poster-top-titles.tsx**: Removed unnecessary `as any` assertion for `picture` metadata URI.
- **use-is-verified.ts**: Switched from `||` to `??` for error fallback handling.
- **finance-quick-transfer.tsx**: Introduced explicit typing with `ProfilePicture_ImageSet_` and adjusted avatar logic for clarity.
- **publication-detail-main.tsx**: Improved `picture` metadata URI fallback, removing redundant `any` assertions.
- **publication-details-view.tsx**: Added a `customImage` prop for OG meta tags fallback.
- **profile-referrals-table-row.tsx**: Marked `Props` as readonly for better immutability.
- **publication-comment-item.tsx**: Removed `as any` assertion and refined fallback logic for comment avatars.
- Updated the `ProfilePicture_ImageSet_` interface to `ProfilePicture`.
- Adjusted type casting within AvatarProfile component to match the updated interface.
This resolves potential type inconsistencies and ensures cleaner, more accurate code.
refactor: avatar profile centralized, session handling, SEO tags, refactored referrals and other minor fixes
@geolffreym geolffreym merged commit d7d1ef2 into main Jan 20, 2025
1 of 3 checks passed
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.

4 participants