Skip to content
📦 ARCHIVED SNAPSHOT (v1.0) You are viewing historical business logic and documentation for Webpage (planovi.app) v1.0 (frozen on 2026-11-23, commit 69f9463). Switch to Latest →

Open Questions [TEAM_WHY_NEEDED] & Tech Debt

Use this board during engineering/product reviews to record the historical “Why?” behind non-obvious rules and track cleanup priorities.

Open [TEAM_WHY_NEEDED] Questions

  1. Dormant db.php (index.php:38, db.php:1-22): Why is the dormant MySQL PDO stub db.php still required in index.php when all persistence uses Supabase REST API? Can it be safely deleted?
  2. Nginx Front-Controller 404 Behavior (index.php:4-31): Should unknown virtual routes reaching index.php return HTTP 404 instead of rendering the landing page with HTTP 200?
  3. TLS Termination & Cookie Secure Flag (i18n.php:11,29): Behind Hostinger VPS Nginx TLS termination, is HTTPS=on passed to PHP-FPM so PHPSESSID and lang cookies receive the Secure attribute?
  4. Incomplete i18n & Polish Leaks (lang/pl.json:105, index.php:362-401, status.php:221-222): Why is pricing.most_popular truncated to "Najczęściej " in pl.json, and why are pricing feature bullets, Bento UI demo labels, contact AJAX JS fallbacks, and status maintenance timestamp labels hardcoded in Polish?
  5. CSS/JS Cache Busting (index.php:142,597-598 et al.): Should ?v=<?= time() ?> be replaced with filemtime() to allow browser/CDN caching?
  6. Placeholder Marketing Content (index.php:173,358,377,395,425-429, lang/*.json:61-66): When will placeholder pricing ("..."), partner icons (Google/AWS/Stripe/Azure/Meta), and testimonials (Jan Kowalski / John Doe) be replaced with real production content?
  7. Waitlist Welcome Email Branding (includes/waitlist.php:279-282): Is the minimal inline <div> welcome email intentional for deliverability, or should it adopt the BRANDING_GUIDE.md Section 5.5 HTML shell with logo-white.png?
  8. Contact Handler Silent Failures (contact-handler.php:177-182): Should contact-handler.php return HTTP 500/502 and log errors when both Supabase insert and Google Chat webhook fail, rather than returning 200 success: true?
  9. Contact Turnstile Parity (contact-handler.php:61-96): Should contact-handler.php enforce Turnstile hostname, action, and token max length like wl_turnstile_verify()?
  10. Blog Mock Fallback on 200 [] (includes/blog-repository.php:161-180): Why does get_blog_post_by_slug() fall back to mock posts even when Supabase responds 200 []? Should mock fallback be controlled by an explicit config flag?
  11. Blog Markdown Support (supabase/website_schema.sql:182, blog-post.php:252): Is a Markdown parser planned for blog_posts.content, or should schema/API docs be corrected to HTML-only?
  12. Status Page Upstream Failure UX (status.php:32-38,79-99): Should status.php show a degraded/unavailable banner (and HTTP 503) when $fetchError === true instead of falsely displaying "All Systems Operational"?
  13. Status Page 90-Day Incident History (status.php:228-234): Should status.php query closed historical maintenance records instead of displaying a hardcoded “no incidents in 90 days” string?
  14. Duplicate Legal Viewer Entrypoints (docs.php vs. documentation.php): Why do both exist? Should docs.php be removed or 301-redirected to /documentation, and should deep-linking (?doc=...) be added?
  15. Legacy deploy.sh & Embedded docs/ Lifecycle (deploy.sh, docs/): Have the hardcoded FTP credentials in deploy.sh been rotated/revoked so deploy.sh can be removed? Will the repo-local docs/ Astro site be retired once planovi-docs takes over?

Verified Security Vulnerabilities, Bugs & Tech Debt Checklist

  • [CRITICAL SECURITY] Hardcoded FTP Credentials in Git (deploy.sh:4-6) + Web Exposure: Plaintext FTP host, username, and password are committed in deploy.sh, and .htaccess:12 does not block HTTP access to .sh files. Rotate credentials immediately, revoke FTP account, purge from repo/history, and deny .sh in web server config.
  • [HIGH SECURITY] Stored-XSS Bypass in sanitize_blog_html() (includes/security.php:72-79,104,123-129): Unwrapping disallowed tags hoists child nodes into $parent after $children was already snapshotted, skipping sanitization on nested malicious elements (e.g., <svg><img src=x onerror=...></svg>). <script> / <style> text contents also leak into HTML instead of deleting the subtree. Fix by deleting <script>/<style>/<iframe>/<object>/<embed> subtrees outright and recursively sanitizing hoisted nodes (or using a battle-tested HTML purifier).
  • [HIGH BUG] Status Page False “All Systems Operational” on API Failure (status.php:32-38,79-99): When Supabase fails ($fetchError = true), $modules stays empty and $allOperational evaluates to true, showing a green operational banner with zero components.
  • [HIGH BUG] Contact Form Silent Lead Loss (contact-handler.php:177-182): Returns HTTP 200 {"success": true} even when both Supabase insert and Google Chat webhook fail, with zero server error logging.
  • [MEDIUM BUG] Trailing-Slash PDF Viewer 404 (documentation.php:131, docs.php:131): Relative iframe path documents/${docsLang}/${select.value}#toolbar=0 breaks with 404 when accessed at /documentation/ or /docs/.
  • [MEDIUM BUG] Missing Mobile Login CTA (components/navbar.php:51-63, css/style.css:280,328-329): .nav-login-desktop hides at <= 768px and no .menu-mobile-login markup exists in #custom-menu.
  • [MEDIUM BUG] Firefox ReferenceError in Blog Category Filter (blog.php:166): setCategory(cat) uses undeclared global event.target.
  • [MEDIUM BUG] Sitemap <lastmod> Never Uses updated_at (includes/blog-repository.php:31, sitemap.php:92,112): get_blog_posts() omits updated_at from select.
  • [MEDIUM BUG] Blog Post Mock Slug Leak (includes/blog-repository.php:121,161-180): Hardcoded mock slugs remain reachable even when Supabase is live and returns 200 [].
  • [MEDIUM BUG] Router vs. Slug Validator Regex Mismatch (.htaccess:29, index.php:12, router.php:21, includes/security.php:172): Routers accept [a-zA-Z0-9_\-]+, while validate_slug() rejects uppercase/underscores with 404.
  • [MEDIUM BUG] Blog Pagination & Category Truncation (blog.php:10,16, includes/blog-repository.php:193, sitemap.php:55-56): Fixed limit=24 with no pagination UI; sitemap.php and get_blog_categories() cap at 50 posts/language.
  • [LOW BUG / TECH DEBT] .htaccess Missing /docs Rewrite & Missing Security Headers on APIs: .htaccess lacks ^docs/?$ rewrite; sitemap.php, waitlist-handler.php, and waitlist-qualify-handler.php skip send_security_headers(); render_blog_media() hardcodes type="video/mp4" for .webm; lang/pl.json:105 has truncated "Najczęściej "; assets/ duplicates 8 brand-kit files from assets/brand/; docs/src/content/docs/ is missing all Blog/HTMX/website-schema documentation; empty .github/ directory remains in repo; db.php and docs.php are dead/duplicate files; js/script.js:5,37 lack null guards on #theme-toggle and #bg-canvas.