Skip to content

Commit 818d9f3

Browse files
author
catlog22
committed
Add enhanced styles for the review tab, including layout, buttons, and responsive design
1 parent 1c3c070 commit 818d9f3

19 files changed

+8259
-9261
lines changed

ccw/src/core/dashboard-generator.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@ const __dirname = dirname(__filename);
88
// Bundled template paths
99
const UNIFIED_TEMPLATE = join(__dirname, '../templates/dashboard.html');
1010
const JS_FILE = join(__dirname, '../templates/dashboard.js');
11-
const CSS_FILE = join(__dirname, '../templates/dashboard.css');
11+
const MODULE_CSS_DIR = join(__dirname, '../templates/dashboard-css');
1212
const WORKFLOW_TEMPLATE = join(__dirname, '../templates/workflow-dashboard.html');
1313
const REVIEW_TEMPLATE = join(__dirname, '../templates/review-cycle-dashboard.html');
1414

15+
// Modular CSS files in load order
16+
const MODULE_CSS_FILES = [
17+
'01-base.css',
18+
'02-session.css',
19+
'03-tasks.css',
20+
'04-lite-tasks.css',
21+
'05-context.css',
22+
'06-cards.css',
23+
'07-managers.css',
24+
'08-review.css'
25+
];
26+
1527
const MODULE_FILES = [
1628
'utils.js',
1729
'state.js',
@@ -63,8 +75,11 @@ export async function generateDashboard(data) {
6375
function generateFromUnifiedTemplate(data) {
6476
let html = readFileSync(UNIFIED_TEMPLATE, 'utf8');
6577

66-
// Read CSS file
67-
let cssContent = existsSync(CSS_FILE) ? readFileSync(CSS_FILE, 'utf8') : '';
78+
// Read and concatenate modular CSS files in load order
79+
let cssContent = MODULE_CSS_FILES.map(file => {
80+
const filePath = join(MODULE_CSS_DIR, file);
81+
return existsSync(filePath) ? readFileSync(filePath, 'utf8') : '';
82+
}).join('\n\n');
6883

6984
// Read JS content
7085
let jsContent = '';

ccw/src/core/server.js

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,22 @@ function getEnterpriseMcpPath() {
3131
const wsClients = new Set();
3232

3333
const TEMPLATE_PATH = join(import.meta.dirname, '../templates/dashboard.html');
34-
const CSS_FILE = join(import.meta.dirname, '../templates/dashboard.css');
34+
const MODULE_CSS_DIR = join(import.meta.dirname, '../templates/dashboard-css');
3535
const JS_FILE = join(import.meta.dirname, '../templates/dashboard.js');
3636
const MODULE_JS_DIR = join(import.meta.dirname, '../templates/dashboard-js');
3737

38+
// Modular CSS files in load order
39+
const MODULE_CSS_FILES = [
40+
'01-base.css',
41+
'02-session.css',
42+
'03-tasks.css',
43+
'04-lite-tasks.css',
44+
'05-context.css',
45+
'06-cards.css',
46+
'07-managers.css',
47+
'08-review.css'
48+
];
49+
3850
/**
3951
* Handle POST request with JSON body
4052
*/
@@ -965,8 +977,11 @@ async function updateTaskStatus(sessionPath, taskId, newStatus) {
965977
function generateServerDashboard(initialPath) {
966978
let html = readFileSync(TEMPLATE_PATH, 'utf8');
967979

968-
// Read CSS file
969-
const cssContent = existsSync(CSS_FILE) ? readFileSync(CSS_FILE, 'utf8') : '';
980+
// Read and concatenate modular CSS files in load order
981+
const cssContent = MODULE_CSS_FILES.map(file => {
982+
const filePath = join(MODULE_CSS_DIR, file);
983+
return existsSync(filePath) ? readFileSync(filePath, 'utf8') : '';
984+
}).join('\n\n');
970985

971986
// Read and concatenate modular JS files in dependency order
972987
let jsContent = MODULE_FILES.map(file => {

0 commit comments

Comments
 (0)