feat: Show LinkedIn profile type (personal vs company) to owners/admins
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions

Displays badge indicating whether detected LinkedIn is a company page
or personal profile. Shows recommendation to create a Company Page
when only a personal profile is found. Visible only to company
owners/managers and admins.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-17 10:58:01 +01:00
parent 6633b94644
commit add3a32367

View File

@ -2336,6 +2336,17 @@
<svg width="14" height="14" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z" clip-rule="evenodd"/></svg>
Aktywny profil
</div>
{% if platform == 'linkedin' and (can_edit_profile or is_admin) %}
{% if '/in/' in sm.url %}
<div style="color: #d97706; font-size: var(--font-size-xs); display: flex; align-items: center; gap: 4px; margin-top: 2px;">
<i class="fas fa-user" style="font-size: 10px;"></i> Profil osobisty
</div>
{% elif '/company/' in sm.url %}
<div style="color: #0a66c2; font-size: var(--font-size-xs); display: flex; align-items: center; gap: 4px; margin-top: 2px;">
<i class="fas fa-building" style="font-size: 10px;"></i> Profil firmowy
</div>
{% endif %}
{% endif %}
{% else %}
<div style="color: #dc2626; font-size: var(--font-size-sm); display: flex; align-items: center; gap: 4px;">
<svg width="14" height="14" fill="currentColor" viewBox="0 0 20 20"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"/></svg>
@ -2396,6 +2407,19 @@
transition: opacity 0.2s;">
Odwiedź profil
</a>
{% if platform == 'linkedin' and '/in/' in sm.url and (can_edit_profile or is_admin) %}
<!-- LinkedIn personal profile recommendation -->
<div style="margin-top: var(--spacing-sm); padding: var(--spacing-sm) var(--spacing-md);
background: #fef3c7; border: 1px solid #f59e0b; border-radius: var(--radius);
font-size: var(--font-size-xs); color: #92400e; line-height: 1.4;">
<i class="fas fa-info-circle" style="margin-right: 4px;"></i>
To jest profil osobisty{% if sm.page_name %} ({{ sm.page_name }}){% endif %}, nie strona firmowa.
Rozważ utworzenie <a href="https://www.linkedin.com/company/setup/new/" target="_blank" rel="noopener noreferrer"
style="color: #92400e; font-weight: 600; text-decoration: underline;">LinkedIn Company Page</a>
dla lepszej widoczności firmy.
</div>
{% endif %}
{% else %}
<!-- No Profile Message -->
<div style="text-align: center; padding: var(--spacing-lg); color: var(--text-secondary);">