fix(zopk): hide technical sections from public ZOPK page
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

Hide: knowledge stats (facts/entities/chunks), fact types chart,
top entities, key investments, knowledge timeline, knowledge graph.
These are dev/admin tools available in /admin/zopk.
Also hide empty "Projekty strategiczne" section when no projects.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Maciej Pienczyn 2026-03-16 21:59:38 +01:00
parent 1b46b1d5e1
commit f3da52c8cd

View File

@ -1009,8 +1009,8 @@
</div>
</div>
<!-- Knowledge Section — admin only -->
{% if current_user.is_authenticated and current_user.is_admin and knowledge_data %}
<!-- Knowledge Section — hidden from public view, data available in /admin/zopk -->
{% if false and current_user.is_authenticated and current_user.is_admin and knowledge_data %}
<section>
<div class="section-header">
<h2>Wiedza o regionie (baza wiedzy AI)</h2>
@ -1093,8 +1093,8 @@
</div>
</section>
<!-- Knowledge Timeline — admin only -->
{% if knowledge_data.dated_facts %}
<!-- Knowledge Timeline — hidden from public view -->
{% if false and knowledge_data.dated_facts %}
<section>
<div class="section-header">
<h2>Oś czasu faktów</h2>
@ -1129,7 +1129,8 @@
{% endif %}
{% endif %}
<!-- Projects Section -->
<!-- Projects Section — only show if there are projects -->
{% if projects %}
<section>
<div class="section-header">
<h2>Projekty strategiczne</h2>
@ -1138,7 +1139,6 @@
{% endif %}
</div>
{% if projects %}
<div class="projects-grid">
{% for project in projects %}
<a href="{{ url_for('zopk_project_detail', slug=project.slug) }}" class="project-card" style="border-left-color: {{ project.color or '#059669' }}">
@ -1165,12 +1165,8 @@
</a>
{% endfor %}
</div>
{% else %}
<div class="empty-state">
<p>Brak projektów do wyświetlenia.</p>
</div>
{% endif %}
</section>
{% endif %}
<!-- Timeline / Roadmapa Section -->
{% if milestones %}
@ -1396,8 +1392,8 @@
</section>
{% endif %}
<!-- Knowledge Graph — admin only -->
{% if current_user.is_authenticated and current_user.is_admin and knowledge_data %}
<!-- Knowledge Graph — hidden from public view -->
{% if false and current_user.is_authenticated and current_user.is_admin and knowledge_data %}
<section>
<div class="section-header">
<h2>Graf współwystępowania encji</h2>
@ -1428,7 +1424,7 @@
{% endblock %}
{% block extra_js %}
{% if current_user.is_authenticated and current_user.is_admin and knowledge_data %}
{% if false and current_user.is_authenticated and current_user.is_admin and knowledge_data %}
// Knowledge Graph — D3.js
(function() {
if (typeof d3 === 'undefined') {