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

Feat job seeker UI #555

Merged
merged 15 commits into from
Nov 1, 2024
Merged

Conversation

devsharmagit
Copy link
Contributor

closes the issue #548

fffff.mp4

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code let me know if it requires more changes or not

@VineeTagarwaL-code
Copy link
Collaborator

Cool pr, had a good chat in discord dms ... waiting for the small addition asked then will review the whole code

@VineeTagarwaL-code
Copy link
Collaborator

this will be little time taking and constant request response will be needed, so please bear with me for the time being

Thanks again !

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
okay sir
give me any changes you want, I will update them as soon as i can.

next.config.js Outdated
}
},
{
protocol: 'https',
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this

@@ -120,6 +147,7 @@ model Project {
stack ProjectStack @default(OTHERS)
userId String
user User @relation(fields: [userId], references: [id], onDelete: Cascade)
isFeature Boolean @default(false)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is "isFeature"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

there was a "Feature this project" in the figma, so i added this field in the schema. If the isFeature is set to true then the project will show up other it will hide under show more button

prisma/seed.ts Outdated
{ id: '1', name: 'Jack', email: '[email protected]' },
{ id: '2', name: 'Admin', email: '[email protected]', role: Role.ADMIN, onBoard: true },
{ id: '3', name: 'Hr', email: '[email protected]', role: Role.HR },
{ id: '1', name: 'Jack', email: '[email protected]', username: 'jackcoder' },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add role: Role.USER

@@ -42,7 +42,8 @@ export const signUp = withServerActionAsyncCatcher<
await prisma.$transaction(
async (txn) => {
const user = await txn.user.create({
data: { ...data, password: hashedPassword },
// todo username
data: { ...data, password: hashedPassword, username: 'asdif' },
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

username doesnt look good ig

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

username was present in figma. changing schema leads to require username whenever user is being created. we can remove username from schema or need to add username input in signup form.

@@ -0,0 +1,86 @@
import { useState } from 'react';
import { deleteExperience } from '@/actions/user.profile.actions';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is experience delete dialog box and the name of the file is accountdeletedialog

misleading ig

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry this file is mistakenly committed
this component is not used anywhere.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have a file called expdeleteDialog in which you call deleteExp()

and same you are doing here, are you sure this is correct ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry this file is mistakenly committed
this component is not used anywhere.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the naming of this file is not proper it should aboutMe only

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay changing the name of the file

@VineeTagarwaL-code
Copy link
Collaborator

in the profile edit section make the links as optional, the users wont be able to submit the form if they didnt filled every field,

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
Okay sir
Will update them as soon as possible

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
now social links are optional

gggggg.mp4

@VineeTagarwaL-code
Copy link
Collaborator

Test it our for every edge case you can think of and write it out here in this form

  • User profile with login
  • User profile without login
  • ability to share profile

etc

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
okay
I will test it heavily and share the results with you.

@VineeTagarwaL-code
Copy link
Collaborator

no results yet ?

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
can we connect over discord ? since there are lot of moving pieces. I would like to clarify them first.

@VineeTagarwaL-code
Copy link
Collaborator

yeah yeah why not

@VineeTagarwaL-code
Copy link
Collaborator

build failed

@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
fixed

@VineeTagarwaL-code
Copy link
Collaborator

give a video ref demonstrating the whole flow

@VineeTagarwaL-code
Copy link
Collaborator

and fix the conflicts too

@devsharmagit
Copy link
Contributor Author

devsharmagit commented Oct 31, 2024

https://drive.google.com/file/d/1lX7gi_881D86Yk3wl52jBepf2ttHJIWG/view?usp=sharing

here is the video

images are not showing in the video because my bunny cdn free trial is expired.

@VineeTagarwaL-code
Copy link
Collaborator

we can improve the code quality by getting rid of repititions of delete dialogs and stuff, but do it in a other pr merging this for now

great work !

@VineeTagarwaL-code VineeTagarwaL-code merged commit a8d6364 into code100x:main Nov 1, 2024
1 check passed
@devsharmagit
Copy link
Contributor Author

@VineeTagarwaL-code
thanks for merging
sure I will refactor the code.

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