feat: display fallback "Not specified" state for agent work environment and tagline info cards

This commit is contained in:
pradeepkumar
2026-04-15 14:00:40 +05:30
parent 1637139f23
commit 87d8ee389a
2 changed files with 72 additions and 56 deletions

View File

@@ -496,34 +496,42 @@ export default function AgentDashboard() {
</div> </div>
} }
/> />
{workEnvironmentData.content && ( <InfoCard
<InfoCard title={workEnvironmentData.label}
title={workEnvironmentData.label} icon={
icon={ <Image
<Image src="/assets/icons/work-environment-icon.svg"
src="/assets/icons/work-environment-icon.svg" alt={workEnvironmentData.label}
alt={workEnvironmentData.label} width={28}
width={28} height={28}
height={28} />
/> }
} content={
content={<p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>} workEnvironmentData.content ? (
/> <p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>
)} ) : (
{testimonials.length > 0 && ( <p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
<InfoCard )
title="" }
icon={ />
<Image <InfoCard
src="/assets/icons/testimonial-star-icon.svg" title={personalTaglineData.label}
alt="Testimonial" icon={
width={28} <Image
height={28} src="/assets/icons/testimonial-star-icon.svg"
/> alt={personalTaglineData.label}
} width={28}
content={<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">&ldquo;{testimonials[0].text.length > 150 ? testimonials[0].text.substring(0, 150) + '...' : testimonials[0].text}&rdquo;</p>} height={28}
/> />
)} }
content={
personalTaglineData.content ? (
<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">&ldquo;{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}&rdquo;</p>
) : (
<p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
)
}
/>
</div> </div>
{/* Specialization Section */} {/* Specialization Section */}

View File

@@ -424,34 +424,42 @@ export default function AgentProfileView() {
</div> </div>
} }
/> />
{workEnvironmentData.content && ( <InfoCard
<InfoCard title={workEnvironmentData.label}
title={workEnvironmentData.label} icon={
icon={ <Image
<Image src="/assets/icons/work-environment-icon.svg"
src="/assets/icons/work-environment-icon.svg" alt={workEnvironmentData.label}
alt={workEnvironmentData.label} width={28}
width={28} height={28}
height={28} />
/> }
} content={
content={<p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>} workEnvironmentData.content ? (
/> <p className="font-serif font-semibold text-[14px] leading-[19px] text-[#00293D]">{workEnvironmentData.content}</p>
)} ) : (
{personalTaglineData.content && ( <p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
<InfoCard )
title={personalTaglineData.label} }
icon={ />
<Image <InfoCard
src="/assets/icons/testimonial-star-icon.svg" title={personalTaglineData.label}
alt={personalTaglineData.label} icon={
width={28} <Image
height={28} src="/assets/icons/testimonial-star-icon.svg"
/> alt={personalTaglineData.label}
} width={28}
content={<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">&ldquo;{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}&rdquo;</p>} height={28}
/> />
)} }
content={
personalTaglineData.content ? (
<p className="text-[14px] font-semibold font-serif leading-[19px] text-center text-[#00293D]">&ldquo;{personalTaglineData.content.length > 150 ? personalTaglineData.content.substring(0, 150) + '...' : personalTaglineData.content}&rdquo;</p>
) : (
<p className="font-normal font-serif text-[14px] leading-[19px] text-[#00293D]/60">Not specified</p>
)
}
/>
</div> </div>
{/* Specialization Section */} {/* Specialization Section */}