-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add Email to Sign / In and Sign Up Page, Settings Page, User can delete all Messages #232
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
- Setings - Privacy - Notifications - Chats - Added Emailformat check
- Added Email to Sign Up Page - Added Email to Convex / Clerk
- Show Error is Email already taken.
️✅ There are no secrets present in this pull request anymore.If these secrets were true positive and are still valid, we highly recommend you to revoke them. 🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request. |
# Conflicts: # pnpm-lock.yaml # src/app/(internal-sites)/profile/page.tsx # src/app/(internal-sites)/profile/settings/page.tsx
@@ -79,6 +79,7 @@ export const initialConvexSetup = mutation({ | |||
username: identity.nickname, | |||
clerkId: identity.tokenIdentifier, | |||
firstName: identity.givenName, | |||
email: identity.email, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Set the value of the emailfield
@@ -39,6 +39,56 @@ export const getMessages = query({ | |||
}, | |||
}); | |||
|
|||
export const createDeleteRequest = mutation({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the mutation for creating a delete all messages request
deleted: false, | ||
readBy: [convexUser._id], | ||
}); | ||
}, | ||
}); | ||
|
||
export const deleteAllMessagesInChat = mutation({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the mutation for delete all messages
}, | ||
}); | ||
|
||
export const rejectRequest = mutation({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the reject request mutation
@@ -22,6 +23,7 @@ const schema = defineEntSchema({ | |||
|
|||
messages: defineEnt({}) | |||
.field("content", v.string()) | |||
.field("type", v.string(), { default: "message" }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the type of a message.
I need a difference between the normal messages and the request messages
@@ -104,6 +104,7 @@ export default function Page({ params }: { params: { chatId: string } }) { | |||
_creationTime: now, | |||
content, | |||
deleted: false, | |||
type: "message", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the normal type of any message that is not a request
) : ( | ||
<div className="xl:mt-4">{user?.username}</div> | ||
)} | ||
<p className="my-10 text-xl font-bold sm:text-2xl">Profile</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is only the profilepage
}, | ||
{ status: 400 }, | ||
); | ||
if ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added a email error
@@ -274,11 +327,47 @@ export const Message = ({ | |||
<Ban /> | |||
<p className="ml-2.5">This message was deleted</p> | |||
</div> | |||
) : message.type != "message" ? ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added the UI of the delete messages request
@@ -25,6 +25,7 @@ const config = { | |||
dark: "#005C8F", | |||
white: "#009BFA", | |||
}, | |||
accept: "#00834C", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added new color for the accept button
package.json
Outdated
@@ -56,7 +56,7 @@ | |||
"sonner": "^1.5.0", | |||
"tailwind-merge": "^2.3.0", | |||
"tailwindcss-animate": "^1.0.7", | |||
"zod": "^3.23.8" | |||
"zod": "3.23.8" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make it as it was before (^^^^^^)
src/components/password-dialog.tsx
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whats this file doing? Why not use the same dialog as for the add user dialog?
Bildschirmaufnahme.2024-07-11.031549.mp4