From 49a6081c9282677b9d67d1fb932c8a3fdb139712 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 16 Jul 2026 09:15:36 +0000 Subject: [PATCH] refactor: consolidate to Word templates only - remove A4 designer, visual builder, manual JSON, AI generation --- static/app.js | 2 +- static/carbone.js | 8 ++++---- static/index.html | 23 +++-------------------- 3 files changed, 8 insertions(+), 25 deletions(-) diff --git a/static/app.js b/static/app.js index ba3f3b5..86058df 100644 --- a/static/app.js +++ b/static/app.js @@ -16,7 +16,7 @@ document.querySelectorAll('.nav-link').forEach(link => { // Load data for page if (page === 'dashboard') loadDashboard(); if (page === 'candidates') loadCandidates(); - if (page === 'templates') loadTemplates(); + if (page === 'templates') loadCarboneTemplates(); if (page === 'requirements') loadRequirements(); if (page === 'generated') loadGeneratedCVs(); if (page === 'chat') loadChat(); diff --git a/static/carbone.js b/static/carbone.js index 2602f81..ef1324e 100644 --- a/static/carbone.js +++ b/static/carbone.js @@ -5,15 +5,15 @@ const CARBONE_API = window.location.protocol + '//' + window.location.hostname + // ============================================================ // NAVIGATION // ============================================================ -// Load carbone data when the page is shown via a MutationObserver +// Load carbone templates when the templates page is shown const carboneNavObserver = new MutationObserver(() => { - if (document.getElementById('page-carbone') && document.getElementById('page-carbone').classList.contains('active')) { + if (document.getElementById('page-templates') && document.getElementById('page-templates').classList.contains('active')) { loadCarboneTemplates(); } }); document.addEventListener('DOMContentLoaded', () => { - const carbonePage = document.getElementById('page-carbone'); - if (carbonePage) carboneNavObserver.observe(carbonePage, { attributes: true, attributeFilter: ['class'] }); + const templatesPage = document.getElementById('page-templates'); + if (templatesPage) carboneNavObserver.observe(templatesPage, { attributes: true, attributeFilter: ['class'] }); }); // ============================================================ diff --git a/static/index.html b/static/index.html index c10af1f..f408f1d 100644 --- a/static/index.html +++ b/static/index.html @@ -5,10 +5,7 @@ CV Application - - - - +
@@ -23,7 +20,6 @@
  • Candidates
  • Upload CV
  • Templates
  • -
  • Word Templates
  • Requirements
  • Generated CVs
  • AI Chat
  • @@ -65,21 +61,9 @@
    - +

    CV Templates

    -
    - - - - -
    -
    -
    - - -
    -

    Word Templates (Carbone)

    How It Works
    @@ -109,6 +93,7 @@
    +

    Requirement Requests

    @@ -143,8 +128,6 @@ - - \ No newline at end of file