feat(company-detail): Display all editable fields on company profile
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

Add missing sections for services_offered, technologies_used,
operational_area, languages_offered, founding_history, and core_values
to company_detail.html. These fields are editable via /firma/edytuj
but were not visible on the profile page.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-02-06 07:12:56 +01:00
parent f96c1e8f21
commit 45f6a4a358

View File

@ -814,6 +814,34 @@
</div>
</div>
</div>
{% if company.founding_history %}
<div style="margin-top: var(--spacing-lg); background: var(--background); border-radius: var(--radius-lg); padding: var(--spacing-lg); border: 1px solid var(--border);">
<div style="display: flex; align-items: flex-start; gap: var(--spacing-md);">
<div style="width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #f59e0b, #d97706); display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
<svg width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" fill="none" stroke="white" stroke-width="2"/></svg>
</div>
<div style="flex: 1;">
<h3 style="font-size: var(--font-size-base); font-weight: 600; color: var(--text-primary); margin: 0 0 var(--spacing-sm);">Historia i doświadczenie</h3>
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.founding_history }}</div>
</div>
</div>
</div>
{% endif %}
{% if company.core_values %}
<div style="margin-top: var(--spacing-lg); background: var(--background); border-radius: var(--radius-lg); padding: var(--spacing-lg); border: 1px solid var(--border);">
<div style="display: flex; align-items: flex-start; gap: var(--spacing-md);">
<div style="width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(135deg, #10b981, #059669); display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
<svg width="24" height="24" fill="white" viewBox="0 0 24 24"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z" fill="none" stroke="white" stroke-width="2"/></svg>
</div>
<div style="flex: 1;">
<h3 style="font-size: var(--font-size-base); font-weight: 600; color: var(--text-primary); margin: 0 0 var(--spacing-sm);">Wartości i misja</h3>
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.core_values }}</div>
</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
@ -821,10 +849,61 @@
{% set www_services = website_analysis.services_extracted if website_analysis and website_analysis.services_extracted else [] %}
{% set www_keywords = website_analysis.main_keywords if website_analysis and website_analysis.main_keywords else [] %}
{% if www_services or www_keywords or company.services or company.competencies %}
{% if www_services or www_keywords or company.services or company.competencies or company.services_offered or company.technologies_used %}
<div class="company-section">
<h2 class="section-title">Usługi i kompetencje</h2>
{# Services description (text field from company edit) #}
{% if company.services_offered %}
<div style="margin-bottom: var(--spacing-lg); background: var(--background); border-radius: var(--radius-lg); padding: var(--spacing-lg); border: 1px solid var(--border);">
<div style="display: flex; align-items: flex-start; gap: var(--spacing-md);">
<div style="width: 32px; height: 32px; border-radius: 8px; background: #2E4872; display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
<svg width="16" height="16" fill="white" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" fill="none" stroke="white" stroke-width="2"/></svg>
</div>
<div style="flex: 1; line-height: 1.8; color: var(--text-secondary);">{{ company.services_offered }}</div>
</div>
</div>
{% endif %}
{# Technologies #}
{% if company.technologies_used %}
<div style="margin-bottom: var(--spacing-lg); background: var(--background); border-radius: var(--radius-lg); padding: var(--spacing-lg); border: 1px solid var(--border);">
<div style="display: flex; align-items: flex-start; gap: var(--spacing-md);">
<div style="width: 32px; height: 32px; border-radius: 8px; background: #6366f1; display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
<svg width="16" height="16" fill="none" stroke="white" stroke-width="2" viewBox="0 0 24 24"><polyline points="16 18 22 12 16 6"/><polyline points="8 6 2 12 8 18"/></svg>
</div>
<div style="flex: 1;">
<h3 style="font-size: var(--font-size-sm); font-weight: 600; color: var(--text-primary); margin: 0 0 var(--spacing-xs);">Technologie i specjalizacje</h3>
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.technologies_used }}</div>
</div>
</div>
</div>
{% endif %}
{# Operational area & languages - compact row #}
{% if company.operational_area or company.languages_offered %}
<div style="margin-bottom: var(--spacing-lg); display: flex; gap: var(--spacing-md); flex-wrap: wrap;">
{% if company.operational_area %}
<div style="flex: 1; min-width: 200px; background: var(--background); border-radius: var(--radius-lg); padding: var(--spacing-md) var(--spacing-lg); border: 1px solid var(--border); display: flex; align-items: center; gap: var(--spacing-sm);">
<svg width="18" height="18" fill="none" stroke="var(--primary)" stroke-width="2" viewBox="0 0 24 24"><path d="M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0118 0z"/><circle cx="12" cy="10" r="3"/></svg>
<div>
<div style="font-size: var(--font-size-xs); color: var(--text-secondary); font-weight: 500;">Obszar działania</div>
<div style="font-size: var(--font-size-sm); color: var(--text-primary);">{{ company.operational_area }}</div>
</div>
</div>
{% endif %}
{% if company.languages_offered %}
<div style="flex: 1; min-width: 200px; background: var(--background); border-radius: var(--radius-lg); padding: var(--spacing-md) var(--spacing-lg); border: 1px solid var(--border); display: flex; align-items: center; gap: var(--spacing-sm);">
<svg width="18" height="18" fill="none" stroke="var(--primary)" stroke-width="2" viewBox="0 0 24 24"><circle cx="12" cy="12" r="10"/><path d="M2 12h20M12 2a15.3 15.3 0 014 10 15.3 15.3 0 01-4 10 15.3 15.3 0 01-4-10A15.3 15.3 0 0112 2z"/></svg>
<div>
<div style="font-size: var(--font-size-xs); color: var(--text-secondary); font-weight: 500;">Języki obsługi</div>
<div style="font-size: var(--font-size-sm); color: var(--text-primary);">{{ company.languages_offered }}</div>
</div>
</div>
{% endif %}
</div>
{% endif %}
{# Company services from database #}
{% if company.services %}
<div style="margin-bottom: var(--spacing-lg);">