---------------------------------------------------------------------------------- In this video of our Next.js Job Portal Application, we implement a feature that checks whether an applicant has completed their profile or not.
When users log in to their dashboard, we verify important profile fields like location, biography, experience, and resume upload from the database using MySQL, TypeScript, and Drizzle ORM.
If the profile is incomplete, we display a notification prompting the user to complete their profile and redirect them to the profile settings page. If the profile is already filled, the notification will not appear.
We also reuse the same function used earlier for pre-filling profile form data and use the JavaScript Double NOT (!!) operator to ensure strict boolean results.
This is a practical full-stack pattern used in real production applications.
⌛TIMELINE⏳ 0:00 Profile Incomplete Notification Overview 0:16 Understanding What “Incomplete Profile” Means 1:30 Next Video Update 1:53 Support the Channel 2:05 Project Folder Structure 2:50 Function to Check Profile Completion 5:02 Fields We Need to Verify 6:10 Showing Notification with If / Else 6:32 Understanding !! Double NOT Operator 7:50 Fixing Redirect Link Issue 8:50 Next Video Update
Hello what's up everyone
Welcome everyone to the Nextgest and MySQL Present Job Portal Application
Today marks my 90th day
Yes guys Day 90
And today we're going to look at what you're seeing here
Incomplete profile status
This notification has appeared for you
Here's how we can handle it today
We'll take a look yes guys
When any applicant logs in for the first
time we show them this: yes brother listen up
Your profile page is incomplete
please go fix it before proceeding
Alright go to the settings
page and check those
pages we want to see what's displayed here
Basically the text area—whatever fields
there are—should feel like it's truly
theirs you know as if it's become their
own logo essentially their very own
Photo then name is set
His email ID his date of birth his likes
What's his education status
Alka can write her own biography
And the most important thing is
uploading your resume because if someone else is applying
for the job they’ll need to upload their resume too
What happens there is that when he clicks
to apply by default we show him that resume
We'll show you right here—no need to do anything we've
already taken care of everything
All we need now is this
If the user already feels it on the homepage then
we don't really need this
notification anymore do we
Why is this shown here Now we need to verify
whether the applicant has provided this
I've indicated in the profile form whether he feels it or not based on that we now
need to show this accordingly Right now we're
keeping it static but we're about to change that
We'll cover it dynamically
Hey guys today we'll go through this entire thing
And in the Kalki video what you're seeing right now is what we'referring to
You've already seen here how dynamic it is
Previously it was static now it's dynamic
The user essentially this applicant
Every job you apply for will
appear here in
this table format
See he applied on the 4th
all of this he's
already applied for—just take a look all right that's fine
I'll handle this myself—don't worry This
data comes directly from your genuine database
Today in this Kalki video it will all
be complete guys without any theory
Our next goal is 800 000 subscribers
If you haven't subscribed yet please do so
Because your subscription really motivates me
I'm sharing this video
with you guys just a quick
update — I'll keep uploading videos like this
Happy Human's Day and it's a special day so I
thought I'd do something special for all of you too
And that's why this course of ours I'm adding it here
today for just 999 rupees
so that anyone can access it
Annual kar sake and yeh sip aaj ek din ke liye
This is valid link in the description below
And I'll share it in the comment section so you can
You can do the annual update there
and once you' ve completed it I'll send you a message on WhatsApp
Contact me I'll add you to the group and then
we'll get started with class morning batch
Sobha between 7 and 7:30 so
if you're interested please
You definitely should check this out
So here we have this code extremely
simple I'll start by running it right here
You're working on something let
me start by sharing everything
with you so we have our source the applicant dashboard
And then yeah take a close look here
See this this is our page
This is the dashboard page as I mentioned
Yeah this is the page I clicked
here and that's
how I ended up here
Applicant profile status
This is what you're
currently seeing there
It's here the full responsibility for the notification
Lies above the responsibility lies with
I clicked the link and here I am
These are the features you mentioned
Component
Applicant profile
Status which we've already reviewed
By the way but now we're looking into this
What should I do now that it's become dynamic check this
This is one line I'll uncomment it right away
If I start it here
And boom check it out—see he's disappeared
meaning this thing of mine is actually working
And how the work is going we're all aware of that
Now the best part is this isn't it
We've already taken care of the tough
The portion the part that was difficult we've already handled it
You've already dealt
with it for instance
That was it—the settings page—and when
we created this back
then well it's done
Now that we've figured out how to store whatever data the
user entered into the database that's also taken care of
What we saw after that was this: the
initial data we are receiving here
We can handle
anything just like
how we used to call functions
The data I was receiving kept showing up here and
I showed it to him then we updated it as well
That task of retrieving
data from the database
and displaying it here
we've already completed it
Right to clarify what exactly are you saying from the
database All the form data related
to the applicant what is it
Whether it was filled or not
for the data we had addressed
it if the user filled the data then we had to handle it
Don't say it don't mention it
We've already done it now here
We should focus on that
That specific function
Look here
That's the same one get applicant profile data
If I click on this it's
The very function we used that day
Checking to get the initial
data here you can see it
The user's existing
Basically the settings form in our applicant
The applicant's data whatever it may be we are
returning it all here from
A to Z just take a look
Right A to Z — we'll call
the isi function here — Now
you're thinking oh my
god this is so easy — I called him
And obviously first of all we need to verify whether the user is
authenticated meaning logged in or
not and then retrieve that user's ID
I passed the function meaning this same function
worked here too and it
worked there as well right
Now that the data has been
received take a closer look —
something seems to be checking something at this moment
I was checking something related
to the location but I think
validation will happen later for
now we need to mix this up let's go
The data has arrived and there's
far more than just one or two—there
are so many data points—bro the user has filled in so much data
Whether he's moving or not to catch him we're doing this
in this way this is complete—we'
re creating a constant variable
If you look closely these four properties
here are exactly what I was just thinking about
You're welcome to come all the properties are here Just arrange them however you like
Completely up to you
But I thought the location was settled
Like the user's biography has
been created their experience
will be included and I'll provide the resume's URL
Bro has he actually uploaded his resume or not
Because users don’t care about themselves anyway
The user must have already done so by
default to the applicant's table and then
to the resume's table—I thought this was from those three applicants
And yes in your resume's
table if he uploaded it that
means he obviously did something
These four are all four
If it's been verified that
means the user has completed
their profile form And if it has been completed
There's no need for us to show
that again—once it's done we're done
You don't really need it he'll be here
shortly Your profile editing is not yet complete
You can clearly see it right here
If he had completed
See if this is completed then return
null meaning don't
show anything at all
Obviously nothing will be shown here simple
Yes if brother there's some mess
If it's not completed then go ahead and
This editing part here—let 's
say something was off
We'll show this but not the other now
you might be wondering in your mind
And what are you doing
The double NOT operator
What are you doing here
By the way I just wanted to mention something
The not operator flips values—true
becomes false false becomes true—
but here this double not operator is showing you something different
Make sure brother that now I
only need a Boolean value as
output—this is
strictly a Boolean
operator kind of situation
You can say whatever you want because here it'll be true and here it'll be false—fine that's a good thing
But if anything goes
wrong this null could
return to you or it could return undefined
It can return an empty string or anything else
in that case you won't get
true or false as output
And if we rely on that foundation our entire logic would
collapse that's why we're using the double not operator
So that we ensure ki bhai we strictly
use boolean values if everything
is correct then true and if anything
is null or undefined then false
Anything that's false will be made true by it
simply put — that's exactly what
the double NOT operator does
Nothing else remains the best part was that
For us we had already
We'd handle it earlier otherwise we'
d have to go through all this trouble
Inner joints ache hain we've already seen all that's needed
But now we don't need to
We've already done this
I just want to point out
one thing here and that is
the editing section
and this part
When we clicked it wasn 't
working even though
it should have been functioning I mean like
It goes to the dashboard so when it goes to the settings
dashboard it 's
a dashboard then settings the link
is the same so there's a problem
What else was there dashboard
And then we have a settings
Link is exactly the same
There's no issue here just do one thing
I'll re-explain it to you again
Where we're
headed is localhost
3000 the Dashboard then
Settings—this is how it is So what's the problem with it
I guess I didn't start
it earlier but it 's
coming now Let's give it one more try
He's here so let's go—great he's arrived no need to worry now
I'll just turn this on and leave it on
I just can't seem to connect with him
But whatever it is it won't even show up yet
By the way
So yeah guys that's
Today's video clip I hope you'll enjoy it
Wherever you watch it you'll see how effortlessly it's handled
So guys what do you think about this that you're seeing right
now—how can we tackle
it going forward Check out the next video
And by the way this will be just as easy as
today’s video was since we’ve already done it
If you recall we have this job
application data here as well
—basically you just need to get that data over here somehow
How will it be and what will it be
like for you to have a stable form
So yeah this
is it So yeah guys today's video clip is one you definitely didn't miss It must be one of the most loved videos ever
If you have any doubts please leave
a comment If you like the video please like it and share it widely with friends
And our next goal is 800 000 subscribers
— if you haven't subscribed yet
please do so now — see you
in the next video until then thanks so much take care