Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export interface OpportunityEditPanelProps {
opportunity: Opportunity;
onSectionFocus?: (sectionId: string) => void;
className?: string;
hideLinkedProfiles?: boolean;
}

interface CollapsibleSectionProps {
Expand Down Expand Up @@ -119,6 +120,7 @@ export function OpportunityEditPanel({
opportunity,
onSectionFocus,
className,
hideLinkedProfiles,
}: OpportunityEditPanelProps): ReactElement {
const company = opportunity?.organization;
const recruiter = opportunity?.recruiters?.[0];
Expand Down Expand Up @@ -174,36 +176,38 @@ export function OpportunityEditPanel({
))}

{/* Linked profiles - flat list without collapsible wrapper */}
<div className="mt-4 flex flex-col gap-3 px-4">
<Typography
type={TypographyType.Footnote}
color={TypographyColor.Tertiary}
bold
>
Linked profiles
</Typography>
<LinkedProfileSection
type="company"
name={company?.name}
image={company?.image}
editUrl={`/recruiter/organizations/${company?.id}`}
emptyMessage="No company info added yet"
/>
<LinkedProfileSection
type="recruiter"
name={recruiter?.name}
image={recruiter?.image}
subtitle={recruiter?.title}
editUrl={getPathnameWithQuery(
`${settingsUrl}/profile`,
new URLSearchParams({
redirectTo: `${webappUrl}recruiter/${opportunity.id}/edit`,
redirectCopy: 'Back to job posting',
}),
)}
emptyMessage="No recruiter info added yet"
/>
</div>
{!hideLinkedProfiles && (
<div className="mt-4 flex flex-col gap-3 px-4">
<Typography
type={TypographyType.Footnote}
color={TypographyColor.Tertiary}
bold
>
Linked profiles
</Typography>
<LinkedProfileSection
type="company"
name={company?.name}
image={company?.image}
editUrl={`/recruiter/organizations/${company?.id}`}
emptyMessage="No company info added yet"
/>
<LinkedProfileSection
type="recruiter"
name={recruiter?.name}
image={recruiter?.image}
subtitle={recruiter?.title}
editUrl={getPathnameWithQuery(
`${settingsUrl}/profile`,
new URLSearchParams({
redirectTo: `${webappUrl}recruiter/${opportunity.id}/edit`,
redirectCopy: 'Back to job posting',
}),
)}
emptyMessage="No recruiter info added yet"
/>
</div>
)}
</div>
</div>
);
Expand Down
6 changes: 6 additions & 0 deletions packages/webapp/pages/recruiter/[opportunityId]/prepare.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ function PreparePageContent(): ReactElement {
<OpportunityEditPanel
opportunity={opportunity}
onSectionFocus={handleSectionFocus}
hideLinkedProfiles
/>
</div>

Expand All @@ -345,6 +346,8 @@ function PreparePageContent(): ReactElement {
hideHeader
hideCompanyBadge
hideRecruiterBadge
hideCompanyPanel
hideRecruiterPanel
previewMode
previewData={previewData}
/>
Expand Down Expand Up @@ -413,6 +416,7 @@ function PreparePageContent(): ReactElement {
<OpportunityEditPanel
opportunity={opportunity}
onSectionFocus={handleSectionFocus}
hideLinkedProfiles
/>
</div>
) : (
Expand All @@ -422,6 +426,8 @@ function PreparePageContent(): ReactElement {
hideHeader
hideCompanyBadge
hideRecruiterBadge
hideCompanyPanel
hideRecruiterPanel
previewMode
previewData={previewData}
/>
Expand Down