[dyad] SchulOS markalama kabul kriterlerini doğrulama

This commit is contained in:
[dyad] committed 2026-08-02 01:55:22 +02:00
1 parent 0b0481a4d0
commit 5e66bae15b
57 files changed
+195 -191

No files matched your search

+2 -2
View File
@@ -1,5 +1,5 @@
================================================================================ ================================================================================
EXAMETRA CODE AUDIT SUMMARY SCHULOS CODE AUDIT SUMMARY
PRD v1 → v2 + Module L Compliance Analysis PRD v1 → v2 + Module L Compliance Analysis
================================================================================ ================================================================================
@@ -357,7 +357,7 @@ AUDIT_SUMMARY.txt (this file)
- Executive summary - Executive summary
- Quick reference - Quick reference
MEMORY (v0_memories/user/exametra-code-review.md) MEMORY (v0_memories/user/schulos-code-review.md)
- Saved for future conversations - Saved for future conversations
═══════════════════════════════════════════════════════════════════════════════ ═══════════════════════════════════════════════════════════════════════════════
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra Code Review & Refactor Analysis # SchulOS Code Review & Refactor Analysis
## PRD v1 → v2 + Module L Compliance ## PRD v1 → v2 + Module L Compliance
**Date:** 2026-07-31 **Date:** 2026-07-31
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra Comprehensive Audit Report # SchulOS Comprehensive Audit Report
## Executive Summary ## Executive Summary
+2 -2
View File
@@ -1,4 +1,4 @@
# ExaMetra Consolidation: Complete Index # SchulOS Consolidation: Complete Index
**Professional Deep Code Review & Consolidation Complete** **Professional Deep Code Review & Consolidation Complete**
@@ -6,7 +6,7 @@
## OVERVIEW ## OVERVIEW
This session completed a **professional, deep investigation** of ExaMetra's codebase, identifying and implementing **enterprise-grade consolidations** that eliminate duplication and add professional features. This session completed a **professional, deep investigation** of SchulOS's codebase, identifying and implementing **enterprise-grade consolidations** that eliminate duplication and add professional features.
--- ---
+2 -2
View File
@@ -1,4 +1,4 @@
# ExaMetra: Deep Consolidation Analysis & Implementation Plan # SchulOS: Deep Consolidation Analysis & Implementation Plan
**Analysis Date:** August 1, 2026 **Analysis Date:** August 1, 2026
**Status:** Professional Consolidation Complete **Status:** Professional Consolidation Complete
@@ -585,7 +585,7 @@ rm src/components/grade-analytics-view.tsx
## CONCLUSION ## CONCLUSION
ExaMetra consolidation is **professional-grade**, following industry best practices. The unified calendar and grading systems provide: SchulOS consolidation is **professional-grade**, following industry best practices. The unified calendar and grading systems provide:
✅ **84% code reduction** in affected areas ✅ **84% code reduction** in affected areas
✅ **Professional UX** with drag-drop and context menus ✅ **Professional UX** with drag-drop and context menus
+4 -4
View File
@@ -1,8 +1,8 @@
# ExaMetra Complete Refactoring & Implementation - FINAL HANDOFF # SchulOS Complete Refactoring & Implementation - FINAL HANDOFF
## Project Status: 100% ARCHITECTURE COMPLETE ## Project Status: 100% ARCHITECTURE COMPLETE
The ExaMetra platform is now architecturally complete and ready for API implementation and deployment. The SchulOS platform is now architecturally complete and ready for API implementation and deployment.
--- ---
@@ -195,7 +195,7 @@ curl -X POST http://localhost:3000/api/v1/notifications/send \
## File Organization Recap ## File Organization Recap
``` ```
ExaMetra/ SchulOS/
├── src/ ├── src/
│ ├── app/ │ ├── app/
│ │ ├── admin/ │ │ ├── admin/
@@ -344,7 +344,7 @@ Once live, measure:
## Final Notes ## Final Notes
This project represents a complete, production-grade refactoring of ExaMetra: This project represents a complete, production-grade refactoring of SchulOS:
1. **Code Quality:** Reduced duplication by 8% immediately, 30% with full migration 1. **Code Quality:** Reduced duplication by 8% immediately, 30% with full migration
2. **Architecture:** Standardized, composable, testable patterns throughout 2. **Architecture:** Standardized, composable, testable patterns throughout
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra: Final Status Report # SchulOS: Final Status Report
**Date:** August 1, 2026 **Date:** August 1, 2026
**Time:** Consolidation & Bug Fixes Complete **Time:** Consolidation & Bug Fixes Complete
+3 -3
View File
@@ -1,4 +1,4 @@
# ExaMetra: Final Status & Production Roadmap # SchulOS: Final Status & Production Roadmap
**Status:** 100% Architecture Ready for Production **Status:** 100% Architecture Ready for Production
**Date:** August 1, 2026 **Date:** August 1, 2026
@@ -8,7 +8,7 @@
## Executive Summary ## Executive Summary
ExaMetra has been comprehensively refactored and is ready for production deployment. All PRD requirements are implemented, infrastructure is production-grade, and 3+ weeks of consolidation work will reduce codebase from 200K to 140K lines. SchulOS has been comprehensively refactored and is ready for production deployment. All PRD requirements are implemented, infrastructure is production-grade, and 3+ weeks of consolidation work will reduce codebase from 200K to 140K lines.
--- ---
@@ -353,7 +353,7 @@ First Contentful Paint: ~0.9s [25% improvement]
## Conclusion ## Conclusion
ExaMetra is **production-ready** with comprehensive documentation, standardized infrastructure, and a clear path to 30% code reduction through planned consolidation. The system is secure, compliant, and performant. SchulOS is **production-ready** with comprehensive documentation, standardized infrastructure, and a clear path to 30% code reduction through planned consolidation. The system is secure, compliant, and performant.
**Deploy with confidence.** 🚀 **Deploy with confidence.** 🚀
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra: Fixes & Improvements Complete # SchulOS: Fixes & Improvements Complete
**Date:** August 1, 2026 **Date:** August 1, 2026
**Status:** All Errors Fixed - Ready for Production **Status:** All Errors Fixed - Ready for Production
+3 -3
View File
@@ -1,5 +1,5 @@
================================================================================ ================================================================================
EXAMETRA REFACTORING - PHASE 1 COMPLETE SCHULOS REFACTORING - PHASE 1 COMPLETE
================================================================================ ================================================================================
PROJECT STATUS: Production-Ready Infrastructure & Module B Foundation PROJECT STATUS: Production-Ready Infrastructure & Module B Foundation
@@ -192,7 +192,7 @@ COMPLETED:
✓ Usage examples provided ✓ Usage examples provided
✓ Error handling implemented ✓ Error handling implemented
✓ Uses shadcn/ui components consistently ✓ Uses shadcn/ui components consistently
✓ Follows ExaMetra naming conventions ✓ Follows SchulOS naming conventions
✓ Database migrations verified ✓ Database migrations verified
✓ No breaking changes to existing features ✓ No breaking changes to existing features
@@ -239,7 +239,7 @@ DOCUMENTATION PROVIDED
SUMMARY SUMMARY
================================================================================ ================================================================================
Phase 1 represents a complete rewrite of ExaMetra's core infrastructure, Phase 1 represents a complete rewrite of SchulOS's core infrastructure,
transforming it from a monolithic codebase with 40% duplication into a transforming it from a monolithic codebase with 40% duplication into a
lean, modular system built on reusable components and standardized patterns. lean, modular system built on reusable components and standardized patterns.
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra Memory Optimization & Menu Consolidation Guide # SchulOS Memory Optimization & Menu Consolidation Guide
## Problem Analysis ## Problem Analysis
+1 -1
View File
@@ -196,5 +196,5 @@ All code:
- ✓ Includes usage examples - ✓ Includes usage examples
- ✓ Handles error cases - ✓ Handles error cases
- ✓ Uses shadcn/ui components - ✓ Uses shadcn/ui components
- ✓ Follows existing ExaMetra patterns - ✓ Follows existing SchulOS patterns
- ✓ Database migrations completed - ✓ Database migrations completed
+2 -2
View File
@@ -1,4 +1,4 @@
# ExaMetra PRD: Nerede Olduğumuz ve Eksiklerimiz # SchulOS PRD: Nerede Olduğumuz ve Eksiklerimiz
**Tarih:** 1 Ağustos 2026 **Tarih:** 1 Ağustos 2026
**Durum:** 30% tamamlanmış, 70% eksik **Durum:** 30% tamamlanmış, 70% eksik
@@ -7,7 +7,7 @@
## Özet ## Özet
ExaMetra PRD'ye göre **12 modül** tanımlanmış. Bugünkü konsolidasyonda **Takvim** ve **Notlandırma** sistemini birleştirdik, ama **10 modül hala yapılacak**. SchulOS PRD'ye göre **12 modül** tanımlanmış. Bugünkü konsolidasyonda **Takvim** ve **Notlandırma** sistemini birleştirdik, ama **10 modül hala yapılacak**.
--- ---
+4 -4
View File
@@ -1,7 +1,7 @@
# ExaMetra PRD Status Report # SchulOS PRD Status Report
**Date:** August 1, 2026 **Date:** August 1, 2026
**PRD Reference:** SchoolOS Consolidated PRD (12 Modules: A-L) **PRD Reference:** SchulOS Consolidated PRD (12 Modules: A-L)
**Current Status:** 25-30% implementation complete **Current Status:** 25-30% implementation complete
--- ---
@@ -457,7 +457,7 @@ AccessLog
## Conclusion ## Conclusion
ExaMetra is **30% complete** against the 12-module PRD. Today's consolidation work (Calendar + Grading) was critical infrastructure. To reach **100% PRD compliance in 8 weeks**, the team must: SchulOS is **30% complete** against the 12-module PRD. Today's consolidation work (Calendar + Grading) was critical infrastructure. To reach **100% PRD compliance in 8 weeks**, the team must:
1. Complete Module A (Academics Core) — foundation for all others 1. Complete Module A (Academics Core) — foundation for all others
2. Build Module L (GDPR compliance) in parallel — non-negotiable 2. Build Module L (GDPR compliance) in parallel — non-negotiable
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra: Professional Consolidation Complete ✨ # SchulOS: Professional Consolidation Complete ✨
**Status:** Production Ready with Enterprise Features **Status:** Production Ready with Enterprise Features
**Date:** August 1, 2026 **Date:** August 1, 2026
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra: Professional Consolidation Complete ✨ # SchulOS: Professional Consolidation Complete ✨
**Status:** Production Ready with Enterprise Features **Status:** Production Ready with Enterprise Features
**Date:** August 1, 2026 **Date:** August 1, 2026
+2 -2
View File
@@ -1,4 +1,4 @@
# ExaMetra Project Status Report # SchulOS Project Status Report
## Executive Summary ## Executive Summary
@@ -217,7 +217,7 @@ All endpoints follow middleware pattern and include:
## Contact & Support ## Contact & Support
- **Architect:** ExaMetra Core Team - **Architect:** SchulOS Core Team
- **Last Updated:** July 31, 2026 - **Last Updated:** July 31, 2026
- **Next Review:** After Phase 2 API implementation - **Next Review:** After Phase 2 API implementation
+7 -7
View File
@@ -1,4 +1,4 @@
# ExaMetra # SchulOS
**Free & open-source competence & grading platform for schools** **Free & open-source competence & grading platform for schools**
@@ -6,9 +6,9 @@ _Kompetenzorientierte Beurteilung fur alle_
--- ---
## What is ExaMetra? ## What is SchulOS?
ExaMetra is a comprehensive, free, and open-source web application designed for schools to track student competencies, manage assessments, compute grades, and generate reports. Built with modern web technologies, it provides a rich, professional interface for teachers, school administrators, students, and parents. SchulOS is a comprehensive, free, and open-source web application designed for schools to track student competencies, manage assessments, compute grades, and generate reports. Built with modern web technologies, it provides a rich, professional interface for teachers, school administrators, students, and parents.
## Features ## Features
@@ -71,8 +71,8 @@ ExaMetra is a comprehensive, free, and open-source web application designed for
```bash ```bash
# Clone the repository # Clone the repository
git clone https://github.com/cetinmustafa83/exametra.git git clone https://github.com/cetinmustafa83/schulos.git
cd exametra cd schulos
# Install dependencies # Install dependencies
npm install npm install
@@ -108,7 +108,7 @@ After seeding, you can log in with these demo accounts:
## Project Structure ## Project Structure
``` ```
exametra/ schulos/
src/ src/
app/ # Next.js App Router pages & API routes app/ # Next.js App Router pages & API routes
api/ # 34+ API endpoint directories api/ # 34+ API endpoint directories
@@ -152,4 +152,4 @@ Contributions are welcome! This is a free and open-source project aimed at makin
--- ---
**ExaMetra** — Kompetenzorientierte Beurteilung fur alle **SchulOS** — Kompetenzorientierte Beurteilung fur alle
+3 -3
View File
@@ -1,4 +1,4 @@
# ExaMetra: READY FOR PRODUCTION # SchulOS: READY FOR PRODUCTION
## Project Completion Status: 100% ## Project Completion Status: 100%
@@ -254,8 +254,8 @@ pnpm run build
vercel deploy --prod vercel deploy --prod
# Or Docker/self-hosted # Or Docker/self-hosted
docker build -t exametra:latest . docker build -t schulos:latest .
docker run -e DATABASE_URL=$DB_URL exametra:latest docker run -e DATABASE_URL=$DB_URL schulos:latest
``` ```
### 4. Verify Deployment ### 4. Verify Deployment
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra Refactor Action Plan # SchulOS Refactor Action Plan
## PRD v1 → v2 → Production Ready ## PRD v1 → v2 → Production Ready
**Current State Analysis:** **Current State Analysis:**
+1 -1
View File
@@ -1,4 +1,4 @@
# ExaMetra PRD Implementation Todo — Visual Roadmap # SchulOS PRD Implementation Todo — Visual Roadmap
## Current Status: 30% Complete (Week 1) ## Current Status: 30% Complete (Week 1)
+2 -2
View File
@@ -32,7 +32,7 @@ The Processor shall process the following personal data on behalf of the Control
- Exam monitoring logs - Exam monitoring logs
- Communication/messaging data - Communication/messaging data
**Purpose**: Operation and maintenance of the ExaMetra school management platform **Purpose**: Operation and maintenance of the SchulOS school management platform
--- ---
@@ -202,6 +202,6 @@ The Processor is authorized to engage the following sub-processors:
--- ---
**Generated**: ISO 8601 timestamp **Generated**: ISO 8601 timestamp
**Source**: ExaMetra Module L - Compliance Framework **Source**: SchulOS Module L - Compliance Framework
**REMINDER**: This is a template. Consult legal counsel to customize for your jurisdiction and service provider. **REMINDER**: This is a template. Consult legal counsel to customize for your jurisdiction and service provider.
+2 -2
View File
@@ -1,5 +1,5 @@
{ {
"name": "exametra", "name": "schulos",
"version": "1.0.0", "version": "1.0.0",
"private": false, "private": false,
"description": "Free & open-source competence & grading platform for schools — Kompetenzorientierte Beurteilung für alle", "description": "Free & open-source competence & grading platform for schools — Kompetenzorientierte Beurteilung für alle",
@@ -7,7 +7,7 @@
"author": "Mustafa Cetin", "author": "Mustafa Cetin",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/cetinmustafa83/exametra" "url": "https://github.com/cetinmustafa83/schulos"
}, },
"keywords": [ "keywords": [
"education", "education",
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Full Database Schema // SchulOS — Full Database Schema
// SQLite via Prisma ORM | UUIDs for portability | UTC timestamps // SQLite via Prisma ORM | UUIDs for portability | UTC timestamps
generator client { generator client {
+2 -2
View File
@@ -1,5 +1,5 @@
/** /**
* CompetenceTrack — Prisma Seed Script * SchulOS — Prisma Seed Script
* Populates the database with realistic demo data for a Berlin elementary school. * Populates the database with realistic demo data for a Berlin elementary school.
* *
* Usage: bun prisma/seed.ts * Usage: bun prisma/seed.ts
@@ -29,7 +29,7 @@ function pick<T>(arr: T[]): T {
} }
async function main() { async function main() {
console.log('🌱 Seeding CompetenceTrack database...\n') console.log('🌱 Seeding SchulOS database...\n')
// Clean up existing data (order matters due to foreign keys) // Clean up existing data (order matters due to foreign keys)
console.log(' 🧹 Cleaning existing data...') console.log(' 🧹 Cleaning existing data...')
+1 -29
View File
@@ -1,29 +1 @@
<?xml version="1.0" encoding="utf-8"?> <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" role="img" aria-labelledby="title"><title>SchulOS</title><rect width="48" height="48" rx="12" fill="#059669"/><path fill="#fff" d="M13 14.5c0-2.5 2-4.5 4.5-4.5h13A4.5 4.5 0 0 1 35 14.5v19c0 2.5-2 4.5-4.5 4.5h-13a4.5 4.5 0 0 1-4.5-4.5v-19Zm5 0v19h12v-19H18Zm3 4h6v3h-6v-3Zm0 6h6v3h-6v-3Z"/></svg>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 30 30" style="enable-background:new 0 0 30 30;" xml:space="preserve">
<defs>
<style type="text/css">
.st194{fill:#2D2D2D;stroke:#FFFFFF;stroke-width:0.6317;stroke-miterlimit:10;}
.st23{fill:#FFFFFF;}
.z-breathe {
animation: breathe 2.5s ease-in-out infinite;
}
@keyframes breathe {
0%, 100% { opacity: 0.7; }
50% { opacity: 1; }
}
</style>
</defs>
<g>
<path class="st194" d="M24.51,28.51H5.49c-2.21,0-4-1.79-4-4V5.49c0-2.21,1.79-4,4-4h19.03c2.21,0,4,1.79,4,4v19.03
C28.51,26.72,26.72,28.51,24.51,28.51z"/>
<g class="z-breathe">
<path class="st23" d="M15.47,7.1l-1.3,1.85c-0.2,0.29-0.54,0.47-0.9,0.47h-7.1V7.09C6.16,7.1,15.47,7.1,15.47,7.1z"/>
<polygon class="st23" points="24.3,7.1 13.14,22.91 5.7,22.91 16.86,7.1"/>
<path class="st23" d="M14.53,22.91l1.31-1.86c0.2-0.29,0.54-0.47,0.9-0.47h7.09v2.33H14.53z"/>
</g>
</g>
</svg>

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 355 B

+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "CompetenceTrack", "name": "SchulOS",
"short_name": "CompTrack", "short_name": "SchulOS",
"description": "Kompetenz- und Benotungsplattform für Schulen", "description": "Kompetenz- und Benotungsplattform für Schulen",
"start_url": "/", "start_url": "/",
"display": "standalone", "display": "standalone",
+64 -32
View File
@@ -1,8 +1,12 @@
// CompetenceTrack — Service Worker for PWA Offline Support // SchulOS — Service Worker for PWA Offline Support
const CACHE_NAME = 'competencetrack-v3'; const CACHE_NAME = 'schulos-v3';
const STATIC_CACHE = 'competencetrack-static-v3'; const STATIC_CACHE = 'schulos-static-v3';
const DATA_CACHE = 'competencetrack-data-v3'; const DATA_CACHE = 'schulos-data-v3';
const OFFLINE_CACHE = 'competencetrack-offline-v3'; const OFFLINE_CACHE = 'schulos-offline-v3';
const SYNC_TAG = 'schulos-sync';
const LEGACY_SYNC_TAG = 'competencetrack-sync';
const SYNC_DB = 'schulos-sync-db';
const LEGACY_SYNC_DB = 'competencetrack-sync-db';
// Static assets to cache on install // Static assets to cache on install
const STATIC_ASSETS = [ const STATIC_ASSETS = [
@@ -33,19 +37,17 @@ self.addEventListener('install', (event) => {
); );
}); });
// Activate event — clean up old caches // Activate event — migrate queued writes before clearing legacy caches.
self.addEventListener('activate', (event) => { self.addEventListener('activate', (event) => {
event.waitUntil( event.waitUntil(
caches.keys().then((keys) => { migrateLegacyPendingRequests()
return Promise.all( .then(() => caches.keys())
.then((keys) => Promise.all(
keys keys
.filter((key) => key !== CACHE_NAME && key !== STATIC_CACHE && key !== DATA_CACHE && key !== OFFLINE_CACHE) .filter((key) => key !== CACHE_NAME && key !== STATIC_CACHE && key !== DATA_CACHE && key !== OFFLINE_CACHE)
.map((key) => caches.delete(key)) .map((key) => caches.delete(key))
); ))
}).then(() => { .then(() => self.clients.claim())
console.log('[SW] Activated and old caches cleaned');
return self.clients.claim();
})
); );
}); });
@@ -191,7 +193,7 @@ async function networkFirstWithOfflineFallback(request) {
// Store failed requests for background sync // Store failed requests for background sync
async function storeRequestForSync(request) { async function storeRequestForSync(request) {
const db = await openIndexedDB(); const db = await openIndexedDB(SYNC_DB);
const tx = db.transaction('pending-requests', 'readwrite'); const tx = db.transaction('pending-requests', 'readwrite');
const store = tx.objectStore('pending-requests'); const store = tx.objectStore('pending-requests');
const requestData = { const requestData = {
@@ -202,16 +204,13 @@ async function storeRequestForSync(request) {
timestamp: Date.now(), timestamp: Date.now(),
}; };
store.add(requestData); store.add(requestData);
await tx.done; await transactionDone(tx);
self.registration.sync.register(SYNC_TAG);
// Register for background sync
self.registration.sync.register('competencetrack-sync');
} }
// Open IndexedDB for storing pending requests function openIndexedDB(name) {
function openIndexedDB() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
const request = indexedDB.open('competencetrack-sync-db', 1); const request = indexedDB.open(name, 1);
request.onupgradeneeded = () => { request.onupgradeneeded = () => {
const db = request.result; const db = request.result;
if (!db.objectStoreNames.contains('pending-requests')) { if (!db.objectStoreNames.contains('pending-requests')) {
@@ -223,18 +222,54 @@ function openIndexedDB() {
}); });
} }
// Background sync event — replay queued requests when back online function transactionDone(tx) {
return new Promise((resolve, reject) => {
tx.oncomplete = () => resolve();
tx.onerror = () => reject(tx.error);
tx.onabort = () => reject(tx.error);
});
}
async function migrateLegacyPendingRequests() {
const legacyDb = await openIndexedDB(LEGACY_SYNC_DB);
const legacyTx = legacyDb.transaction('pending-requests', 'readonly');
const legacyStore = legacyTx.objectStore('pending-requests');
const requests = await new Promise((resolve, reject) => {
const request = legacyStore.getAll();
request.onsuccess = () => resolve(request.result);
request.onerror = () => reject(request.error);
});
await transactionDone(legacyTx);
if (!requests.length) return;
const currentDb = await openIndexedDB(SYNC_DB);
const currentTx = currentDb.transaction('pending-requests', 'readwrite');
const currentStore = currentTx.objectStore('pending-requests');
for (const request of requests) currentStore.put(request);
await transactionDone(currentTx);
const deleteTx = legacyDb.transaction('pending-requests', 'readwrite');
deleteTx.objectStore('pending-requests').clear();
await transactionDone(deleteTx);
}
// Background sync event — replay queues from both brand generations.
self.addEventListener('sync', (event) => { self.addEventListener('sync', (event) => {
if (event.tag === 'competencetrack-sync') { if (event.tag === SYNC_TAG || event.tag === LEGACY_SYNC_TAG) {
event.waitUntil(replayPendingRequests()); event.waitUntil(migrateLegacyPendingRequests().then(replayPendingRequests));
} }
}); });
async function replayPendingRequests() { async function replayPendingRequests() {
const db = await openIndexedDB(); const db = await openIndexedDB(SYNC_DB);
const tx = db.transaction('pending-requests', 'readwrite'); const tx = db.transaction('pending-requests', 'readwrite');
const store = tx.objectStore('pending-requests'); const store = tx.objectStore('pending-requests');
const allRequests = await store.getAll(); const allRequests = await new Promise((resolve, reject) => {
const request = store.getAll();
request.onsuccess = () => resolve(request.result);
request.onerror = () => reject(request.error);
});
for (const reqData of allRequests) { for (const reqData of allRequests) {
try { try {
@@ -244,15 +279,12 @@ async function replayPendingRequests() {
headers, headers,
body: reqData.method !== 'GET' ? reqData.body : undefined, body: reqData.method !== 'GET' ? reqData.body : undefined,
}); });
if (response.ok) { if (response.ok) store.delete(reqData.timestamp);
store.delete(reqData.timestamp);
}
} catch (error) { } catch (error) {
console.warn('[SW] Failed to replay request:', error); console.warn('[SW] Failed to replay request:', error);
// Keep the request in the store for next sync attempt
} }
} }
await tx.done; await transactionDone(tx);
} }
// Push event — show notification (if push notifications are configured) // Push event — show notification (if push notifications are configured)
@@ -269,7 +301,7 @@ self.addEventListener('push', (event) => {
}, },
}; };
event.waitUntil( event.waitUntil(
self.registration.showNotification(data.title || 'CompetenceTrack', options) self.registration.showNotification(data.title || 'SchulOS', options)
); );
}); });
+1 -1
View File
@@ -59,7 +59,7 @@ export default function CompliancePage() {
<Card className="border-emerald-200 bg-emerald-50"> <Card className="border-emerald-200 bg-emerald-50">
<CardContent className="pt-6"> <CardContent className="pt-6">
<p className="text-emerald-800 mb-4"> <p className="text-emerald-800 mb-4">
✓ Compliance onboarding completed successfully! Your school is now ready to use ExaMetra. ✓ Compliance onboarding completed successfully! Your school is now ready to use SchulOS.
</p> </p>
<button <button
onClick={() => router.push("/admin/compliance-overview")} onClick={() => router.push("/admin/compliance-overview")}
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Announcement Read Receipt API // SchulOS — Announcement Read Receipt API
import { NextResponse } from 'next/server'; import { NextResponse } from 'next/server';
import { db } from '@/lib/db'; import { db } from '@/lib/db';
import { getSession } from '@/lib/auth'; import { getSession } from '@/lib/auth';
+1 -1
View File
@@ -51,7 +51,7 @@ export async function POST(request: Request) {
teacherName: `${session.user?.firstName || 'Frau'} ${session.user?.lastName || 'Muster'}`, teacherName: `${session.user?.firstName || 'Frau'} ${session.user?.lastName || 'Muster'}`,
date: new Date().toLocaleDateString('de-DE'), date: new Date().toLocaleDateString('de-DE'),
score: '85%', score: '85%',
schoolName: 'CompetenceTrack Schule', schoolName: 'SchulOS Schule',
subjectName: 'Mathematik', subjectName: 'Mathematik',
behaviorDescription: 'Beschreibung des Vorfalls', behaviorDescription: 'Beschreibung des Vorfalls',
behaviorCategory: 'Störung', behaviorCategory: 'Störung',
+2 -2
View File
@@ -253,7 +253,7 @@ export async function GET() {
const exportData: Record<string, unknown> = { const exportData: Record<string, unknown> = {
exportMetadata: { exportMetadata: {
exportDate: new Date().toISOString(), exportDate: new Date().toISOString(),
platform: 'CompetenceTrack', platform: 'SchulOS',
legalBasis: 'DSGVO Art. 20 - Recht auf Datenübertragbarkeit', legalBasis: 'DSGVO Art. 20 - Recht auf Datenübertragbarkeit',
userId: user.id, userId: user.id,
}, },
@@ -285,7 +285,7 @@ export async function GET() {
return NextResponse.json(exportData, { return NextResponse.json(exportData, {
headers: { headers: {
'Content-Disposition': `attachment; filename="competencetrack-data-export-${new Date().toISOString().split('T')[0]}.json"`, 'Content-Disposition': `attachment; filename="schulos-data-export-${new Date().toISOString().split('T')[0]}.json"`,
}, },
}); });
} catch (error) { } catch (error) {
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Single Notification API // SchulOS — Single Notification API
import { NextResponse } from 'next/server'; import { NextResponse } from 'next/server';
import { db } from '@/lib/db'; import { db } from '@/lib/db';
import { getSession } from '@/lib/auth'; import { getSession } from '@/lib/auth';
@@ -1,4 +1,4 @@
// CompetenceTrack — Notification Preferences API // SchulOS — Notification Preferences API
import { NextResponse } from 'next/server'; import { NextResponse } from 'next/server';
import { db } from '@/lib/db'; import { db } from '@/lib/db';
import { getSession } from '@/lib/auth'; import { getSession } from '@/lib/auth';
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Notifications API (DB-backed, Enhanced) // SchulOS — Notifications API (DB-backed, Enhanced)
import { NextResponse } from 'next/server'; import { NextResponse } from 'next/server';
import { db } from '@/lib/db'; import { db } from '@/lib/db';
import { getSession } from '@/lib/auth'; import { getSession } from '@/lib/auth';
+2 -2
View File
@@ -337,7 +337,7 @@ function generatePrintHtml(report: Record<string, unknown>, template: string): s
</style> </style>
</head> </head>
<body> <body>
<div class="watermark">CompetenceTrack</div> <div class="watermark">SchulOS</div>
<button class="print-btn no-print" onclick="window.print()">Drucken / Print</button> <button class="print-btn no-print" onclick="window.print()">Drucken / Print</button>
<div class="header"> <div class="header">
@@ -364,7 +364,7 @@ function generatePrintHtml(report: Record<string, unknown>, template: string): s
${gradesHtml} ${gradesHtml}
<div class="footer"> <div class="footer">
<p>CompetenceTrack — Kompetenzbericht · ${new Date().toLocaleDateString('de-DE')}</p> <p>SchulOS — Kompetenzbericht · ${new Date().toLocaleDateString('de-DE')}</p>
</div> </div>
<div class="eco-footer"> <div class="eco-footer">
Digital erstellt — Papier sparen, Umwelt schutzen Digital erstellt — Papier sparen, Umwelt schutzen
+2 -2
View File
@@ -126,8 +126,8 @@ export async function POST(request: Request) {
{ {
schoolId: school.id, schoolId: school.id,
name: 'welcome', name: 'welcome',
subject: 'Willkommen bei CompetenceTrack', subject: 'Willkommen bei SchulOS',
body: '<h1>Willkommen bei CompetenceTrack!</h1><p>Hallo {{studentName}},</p><p>du wurdest für die Schule {{schoolName}} registriert.</p><p>Deine Zugangsdaten:</p><p>E-Mail: {{email}}</p><p>Bitte melde dich an und ändere dein Passwort.</p><p>Mit freundlichen Grüßen,<br>{{schoolName}}</p>', body: '<h1>Willkommen bei SchulOS!</h1><p>Hallo {{studentName}},</p><p>du wurdest für die Schule {{schoolName}} registriert.</p><p>Deine Zugangsdaten:</p><p>E-Mail: {{email}}</p><p>Bitte melde dich an und ändere dein Passwort.</p><p>Mit freundlichen Grüßen,<br>{{schoolName}}</p>',
isDefault: true, isDefault: true,
}, },
]; ];
+5 -5
View File
@@ -15,19 +15,19 @@ const geistMono = Geist_Mono({
}); });
export const metadata: Metadata = { export const metadata: Metadata = {
title: "CompetenceTrack — Free Competency & Grading Platform", title: "SchulOS — Free Competency & Grading Platform",
description: "Open-Source School Software for Competency-Based Assessment and Grading. Built with Next.js, TypeScript, and shadcn/ui.", description: "Open-Source School Software for Competency-Based Assessment and Grading. Built with Next.js, TypeScript, and shadcn/ui.",
keywords: ["CompetenceTrack", "competency", "grading", "school", "education", "Next.js", "TypeScript", "shadcn/ui"], keywords: ["SchulOS", "competency", "grading", "school", "education", "Next.js", "TypeScript", "shadcn/ui"],
authors: [{ name: "CompetenceTrack Team" }], authors: [{ name: "SchulOS Team" }],
manifest: "/manifest.json", manifest: "/manifest.json",
icons: { icons: {
icon: "https://z-cdn.chatglm.cn/z-ai/static/logo.svg", icon: "/logo.svg",
apple: "/icon-192.png", apple: "/icon-192.png",
}, },
appleWebApp: { appleWebApp: {
capable: true, capable: true,
statusBarStyle: "default", statusBarStyle: "default",
title: "CompetenceTrack", title: "SchulOS",
}, },
}; };
+3 -3
View File
@@ -975,7 +975,7 @@ export default function AppLayout() {
</div> </div>
)} )}
<div className="group-data-[collapsible=icon]:hidden"> <div className="group-data-[collapsible=icon]:hidden">
<h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 leading-tight">{schoolBranding?.name || 'CompetenceTrack'}</h2> <h2 className="text-lg font-bold text-gray-900 dark:text-gray-100 leading-tight">{schoolBranding?.name || 'SchulOS'}</h2>
<p className="text-[10px] text-emerald-600/70 dark:text-emerald-400/50 leading-tight">{t('app.subtitle')}</p> <p className="text-[10px] text-emerald-600/70 dark:text-emerald-400/50 leading-tight">{t('app.subtitle')}</p>
</div> </div>
</motion.div> </motion.div>
@@ -1409,7 +1409,7 @@ export default function AppLayout() {
<div className="flex items-center justify-between text-xs text-emerald-600/60 dark:text-emerald-400/40"> <div className="flex items-center justify-between text-xs text-emerald-600/60 dark:text-emerald-400/40">
<span className="flex items-center gap-1"> <span className="flex items-center gap-1">
<Leaf className="h-3 w-3 text-emerald-500" /> <Leaf className="h-3 w-3 text-emerald-500" />
CompetenceTrack — {t('footer.copyright')} SchulOS — {t('footer.copyright')}
</span> </span>
<span className="flex items-center gap-2"> <span className="flex items-center gap-2">
<span className="hidden sm:inline">{t('footer.version')} · {t('footer.oss')}</span> <span className="hidden sm:inline">{t('footer.version')} · {t('footer.oss')}</span>
@@ -1609,7 +1609,7 @@ export default function AppLayout() {
{t('polish.help')} {t('polish.help')}
</DialogTitle> </DialogTitle>
<DialogDescription className="text-xs text-gray-500 dark:text-gray-400"> <DialogDescription className="text-xs text-gray-500 dark:text-gray-400">
CompetenceTrack · {t('footer.version')} SchulOS · {t('footer.version')}
</DialogDescription> </DialogDescription>
</DialogHeader> </DialogHeader>
<div className="space-y-2 text-sm"> <div className="space-y-2 text-sm">
+1 -1
View File
@@ -3295,7 +3295,7 @@ export default function DashboardView() {
<div className="hidden sm:flex flex-col items-end gap-1 shrink-0"> <div className="hidden sm:flex flex-col items-end gap-1 shrink-0">
<Badge className="bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300 text-xs"> <Badge className="bg-emerald-100 text-emerald-700 dark:bg-emerald-900/30 dark:text-emerald-300 text-xs">
<GraduationCap className="h-3 w-3 mr-1" /> <GraduationCap className="h-3 w-3 mr-1" />
{currentUser?.schoolId ? t('nav.classes') : 'CompetenceTrack'} {currentUser?.schoolId ? t('nav.classes') : 'SchulOS'}
</Badge> </Badge>
<span className="text-[10px] text-gray-400 dark:text-gray-500"> <span className="text-[10px] text-gray-400 dark:text-gray-500">
{t('dashboard.total_students')}: {data.stats.totalStudents} · {t('dashboard.total_classes')}: {data.stats.totalClasses} {t('dashboard.total_students')}: {data.stats.totalStudents} · {t('dashboard.total_classes')}: {data.stats.totalClasses}
+1 -1
View File
@@ -244,7 +244,7 @@ export default function OnboardingTour({ open, onClose }: OnboardingTourProps) {
{/* Hidden title for accessibility */} {/* Hidden title for accessibility */}
<DialogHeader className="sr-only"> <DialogHeader className="sr-only">
<VisuallyHidden> <VisuallyHidden>
<DialogTitle>CompetenceTrack Onboarding Tour</DialogTitle> <DialogTitle>SchulOS Onboarding Tour</DialogTitle>
</VisuallyHidden> </VisuallyHidden>
</DialogHeader> </DialogHeader>
{/* Close button */} {/* Close button */}
+1 -1
View File
@@ -1762,7 +1762,7 @@ function generatePrintHTML(
return ` return `
<div class="report-card-page"> <div class="report-card-page">
<div class="header"> <div class="header">
<h1>${school?.name ?? 'CompetenceTrack'}</h1> <h1>${school?.name ?? 'SchulOS'}</h1>
${school?.motto ? `<p class="motto">${school.motto}</p>` : ''} ${school?.motto ? `<p class="motto">${school.motto}</p>` : ''}
<h2>Zeugnis / Report Card</h2> <h2>Zeugnis / Report Card</h2>
<p>Schuljahr: ${report.schoolYear.label}</p> <p>Schuljahr: ${report.schoolYear.label}</p>
+1 -1
View File
@@ -534,7 +534,7 @@ export default function SchoolLibraryView() {
<p><strong>${t('library.due_date')}:</strong> ${new Date(checkout.dueDate).toLocaleDateString()}</p> <p><strong>${t('library.due_date')}:</strong> ${new Date(checkout.dueDate).toLocaleDateString()}</p>
<p><strong>${t('library.condition')}:</strong> ${checkout.condition}</p> <p><strong>${t('library.condition')}:</strong> ${checkout.condition}</p>
<hr/> <hr/>
<p style="text-align:center; font-size: 12px;">CompetenceTrack - ${t('library.title')}</p> <p style="text-align:center; font-size: 12px;">SchulOS - ${t('library.title')}</p>
</body></html> </body></html>
`); `);
printWindow.document.close(); printWindow.document.close();
+7 -7
View File
@@ -732,7 +732,7 @@ function PrivacyTab({ currentUser }: { currentUser: { id: string; role: string;
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
const a = document.createElement('a'); const a = document.createElement('a');
a.href = url; a.href = url;
a.download = `competencetrack-data-export-${new Date().toISOString().split('T')[0]}.json`; a.download = `schulos-data-export-${new Date().toISOString().split('T')[0]}.json`;
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
document.body.removeChild(a); document.body.removeChild(a);
@@ -866,7 +866,7 @@ function PrivacyTab({ currentUser }: { currentUser: { id: string; role: string;
<Mail className="h-4 w-4 text-gray-600 dark:text-gray-400" /> <Mail className="h-4 w-4 text-gray-600 dark:text-gray-400" />
<h4 className="text-sm font-semibold text-gray-700 dark:text-gray-300">{t('dsgvo.contact_dpo')}</h4> <h4 className="text-sm font-semibold text-gray-700 dark:text-gray-300">{t('dsgvo.contact_dpo')}</h4>
</div> </div>
<p className="text-sm text-gray-600 dark:text-gray-400">datenschutz@competencetrack.org</p> <p className="text-sm text-gray-600 dark:text-gray-400">datenschutz@schulos.org</p>
</div> </div>
</CardContent> </CardContent>
</Card> </Card>
@@ -1070,12 +1070,12 @@ function PrivacyTab({ currentUser }: { currentUser: { id: string; role: string;
className="min-h-[44px] rounded-xl border-violet-200 dark:border-violet-900/30 text-violet-700 dark:text-violet-300 hover:bg-violet-50 dark:hover:bg-violet-900/20 font-semibold" className="min-h-[44px] rounded-xl border-violet-200 dark:border-violet-900/30 text-violet-700 dark:text-violet-300 hover:bg-violet-50 dark:hover:bg-violet-900/20 font-semibold"
onClick={() => { onClick={() => {
// Generate a simple DPA template as a downloadable text file // Generate a simple DPA template as a downloadable text file
const dpaTemplate = `Auftragsverarbeitungsvertrag (AVV)\ngemäß Art. 28 DSGVO\n\nVerantwortliche Stelle (Schule):\n[Name der Schule]\n[Adresse]\n\nAuftragsverarbeiter:\nCompetenceTrack\n[Adresse]\n\n1. Gegenstand und Dauer der Verarbeitung\nDer Auftragsverarbeiter verarbeitet personenbezogene Daten im Auftrag der verantwortlichen Stelle gemäß den Bestimmungen dieses Vertrages.\n\n2. Art und Zweck der Verarbeitung\n- Bereitstellung und Betrieb der CompetenceTrack-Plattform\n- Verwaltung von Schüler- und Klassendaten\n- Dokumentation von Lernfortschritten\n- Erstellung von Zeugnissen und Berichten\n\n3. Art der personenbezogenen Daten\n- Name, E-Mail-Adresse\n- Schülereinschreibungsdaten\n- Lernfortschrittsdaten\n- Bewertungsdaten\n- Anwesenheitsdaten\n\n4. Betroffene Personenkreise\n- Schülerinnen und Schüler\n- Lehrkräfte\n- Eltern / Erziehungsberechtigte\n\n5. Technisch-organisatorische Maßnahmen\nDer Auftragsverarbeiter implementiert angemessene technisch-organisatorische Maßnahmen gemäß Art. 32 DSGVO.\n\n6. Löschung und Rückgabe von Daten\nNach Beendigung des Auftragsverhältnisses werden alle personenbezogenen Daten gelöscht.\n\n7. Kontrolle durch die verantwortliche Stelle\nDie verantwortliche Stelle hat das Recht, die Einhaltung der Maßnahmen zu kontrollieren.\n\n8. Unterauftragsverhältnisse\nEine Weitergabe an Unterauftragnehmer bedarf der vorherigen Zustimmung der verantwortlichen Stelle.\n\nOrt, Datum: _______________\n\nUnterschrift Verantwortliche Stelle: _______________\nUnterschrift Auftragsverarbeiter: _______________`; const dpaTemplate = `Auftragsverarbeitungsvertrag (AVV)\ngemäß Art. 28 DSGVO\n\nVerantwortliche Stelle (Schule):\n[Name der Schule]\n[Adresse]\n\nAuftragsverarbeiter:\nSchulOS\n[Adresse]\n\n1. Gegenstand und Dauer der Verarbeitung\nDer Auftragsverarbeiter verarbeitet personenbezogene Daten im Auftrag der verantwortlichen Stelle gemäß den Bestimmungen dieses Vertrages.\n\n2. Art und Zweck der Verarbeitung\n- Bereitstellung und Betrieb der SchulOS-Plattform\n- Verwaltung von Schüler- und Klassendaten\n- Dokumentation von Lernfortschritten\n- Erstellung von Zeugnissen und Berichten\n\n3. Art der personenbezogenen Daten\n- Name, E-Mail-Adresse\n- Schülereinschreibungsdaten\n- Lernfortschrittsdaten\n- Bewertungsdaten\n- Anwesenheitsdaten\n\n4. Betroffene Personenkreise\n- Schülerinnen und Schüler\n- Lehrkräfte\n- Eltern / Erziehungsberechtigte\n\n5. Technisch-organisatorische Maßnahmen\nDer Auftragsverarbeiter implementiert angemessene technisch-organisatorische Maßnahmen gemäß Art. 32 DSGVO.\n\n6. Löschung und Rückgabe von Daten\nNach Beendigung des Auftragsverhältnisses werden alle personenbezogenen Daten gelöscht.\n\n7. Kontrolle durch die verantwortliche Stelle\nDie verantwortliche Stelle hat das Recht, die Einhaltung der Maßnahmen zu kontrollieren.\n\n8. Unterauftragsverhältnisse\nEine Weitergabe an Unterauftragnehmer bedarf der vorherigen Zustimmung der verantwortlichen Stelle.\n\nOrt, Datum: _______________\n\nUnterschrift Verantwortliche Stelle: _______________\nUnterschrift Auftragsverarbeiter: _______________`;
const blob = new Blob([dpaTemplate], { type: 'text/plain;charset=utf-8' }); const blob = new Blob([dpaTemplate], { type: 'text/plain;charset=utf-8' });
const url = URL.createObjectURL(blob); const url = URL.createObjectURL(blob);
const a = document.createElement('a'); const a = document.createElement('a');
a.href = url; a.href = url;
a.download = 'AVV_CompetenceTrack_Vorlage.txt'; a.download = 'AVV_SchulOS_Vorlage.txt';
document.body.appendChild(a); document.body.appendChild(a);
a.click(); a.click();
document.body.removeChild(a); document.body.removeChild(a);
@@ -1102,7 +1102,7 @@ function PrivacyTab({ currentUser }: { currentUser: { id: string; role: string;
title: 'Verzeichnis von Verarbeitungstätigkeiten', title: 'Verzeichnis von Verarbeitungstätigkeiten',
legalBasis: 'Art. 30 DSGVO', legalBasis: 'Art. 30 DSGVO',
controller: '[Name der Schule]', controller: '[Name der Schule]',
processor: 'CompetenceTrack', processor: 'SchulOS',
processingActivities: [ processingActivities: [
{ name: 'Benutzerverwaltung', purpose: 'Bereitstellung der Plattform', dataCategories: 'Name, E-Mail, Rolle', retention: 'Dauer der Nutzung + 30 Tage', legalBasis: 'Art. 6 Abs. 1 lit. b DSGVO' }, { name: 'Benutzerverwaltung', purpose: 'Bereitstellung der Plattform', dataCategories: 'Name, E-Mail, Rolle', retention: 'Dauer der Nutzung + 30 Tage', legalBasis: 'Art. 6 Abs. 1 lit. b DSGVO' },
{ name: 'Schülerverwaltung', purpose: 'Verwaltung von Klassen und Schülern', dataCategories: 'Name, Geburtsdatum, Geschlecht', retention: 'Dauer der Nutzung + 30 Tage', legalBasis: 'Art. 6 Abs. 1 lit. b DSGVO' }, { name: 'Schülerverwaltung', purpose: 'Verwaltung von Klassen und Schülern', dataCategories: 'Name, Geburtsdatum, Geschlecht', retention: 'Dauer der Nutzung + 30 Tage', legalBasis: 'Art. 6 Abs. 1 lit. b DSGVO' },
@@ -5085,7 +5085,7 @@ export default function SettingsView() {
</div> </div>
)} )}
<div> <div>
<p className="font-bold text-gray-900 dark:text-gray-100" style={{ color: brandingForm.primaryColor }}>{selectedSchool?.name || 'CompetenceTrack'}</p> <p className="font-bold text-gray-900 dark:text-gray-100" style={{ color: brandingForm.primaryColor }}>{selectedSchool?.name || 'SchulOS'}</p>
<p className="text-xs text-gray-500 dark:text-gray-400">{brandingForm.motto || t('app.subtitle')}</p> <p className="text-xs text-gray-500 dark:text-gray-400">{brandingForm.motto || t('app.subtitle')}</p>
</div> </div>
</div> </div>
@@ -5444,7 +5444,7 @@ export default function SettingsView() {
<div className="p-4 rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900"> <div className="p-4 rounded-xl border border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-900">
<p className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-1">{t('email.template_subject')}: {emailPreviewTemplate.subject}</p> <p className="text-sm font-semibold text-gray-700 dark:text-gray-300 mb-1">{t('email.template_subject')}: {emailPreviewTemplate.subject}</p>
<div className="mt-3 p-3 rounded-xl bg-gray-50 dark:bg-gray-800/50 text-sm max-h-64 overflow-y-auto scrollbar-education"> <div className="mt-3 p-3 rounded-xl bg-gray-50 dark:bg-gray-800/50 text-sm max-h-64 overflow-y-auto scrollbar-education">
{emailPreviewTemplate.body.replace(/\{\{studentName\}\}/g, 'Max Mustermann').replace(/\{\{className\}\}/g, 'Klasse 5a').replace(/\{\{teacherName\}\}/g, 'Frau Muster').replace(/\{\{date\}\}/g, new Date().toLocaleDateString()).replace(/\{\{schoolName\}\}/g, 'CompetenceTrack Schule').replace(/\{\{subjectName\}\}/g, 'Mathematik').replace(/\{\{score\}\}/g, '85%')} {emailPreviewTemplate.body.replace(/\{\{studentName\}\}/g, 'Max Mustermann').replace(/\{\{className\}\}/g, 'Klasse 5a').replace(/\{\{teacherName\}\}/g, 'Frau Muster').replace(/\{\{date\}\}/g, new Date().toLocaleDateString()).replace(/\{\{schoolName\}\}/g, 'SchulOS Schule').replace(/\{\{subjectName\}\}/g, 'Mathematik').replace(/\{\{score\}\}/g, '85%')}
</div> </div>
</div> </div>
<div className="space-y-2"> <div className="space-y-2">
+1 -1
View File
@@ -378,7 +378,7 @@ function exportStudentCsv(data: StudentDetailData) {
const rows: string[] = []; const rows: string[] = [];
// Header section // Header section
rows.push('CompetenceTrack - Student Export'); rows.push('SchulOS - Student Export');
rows.push(`Student,${studentName}`); rows.push(`Student,${studentName}`);
rows.push(`Class,${primaryClass}`); rows.push(`Class,${primaryClass}`);
rows.push(`School,${schoolName}`); rows.push(`School,${schoolName}`);
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — API Client // SchulOS — API Client
// All API calls go through these helpers // All API calls go through these helpers
/* ── Generic helpers ──────────────────────────────────────────────── */ /* ── Generic helpers ──────────────────────────────────────────────── */
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Audit Logging Middleware // SchulOS — Audit Logging Middleware
// Provides logAudit() and withAuditLog() helpers for recording all data modifications // Provides logAudit() and withAuditLog() helpers for recording all data modifications
import { db } from '@/lib/db'; import { db } from '@/lib/db';
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Badge Auto-Award Check Utility // SchulOS — Badge Auto-Award Check Utility
// Checks if a student meets requirements for auto-awarded badges // Checks if a student meets requirements for auto-awarded badges
import { db } from '@/lib/db'; import { db } from '@/lib/db';
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — In-memory API response cache utility // SchulOS — In-memory API response cache utility
// Provides TTL-based caching for API responses to reduce redundant fetches // Provides TTL-based caching for API responses to reduce redundant fetches
interface CacheEntry<T> { interface CacheEntry<T> {
+25 -25
View File
@@ -1,11 +1,11 @@
// CompetenceTrack — i18n (German + English) // SchulOS — i18n (German + English)
// Simple translation system: t(key) returns the string for the current locale // Simple translation system: t(key) returns the string for the current locale
type TranslationDict = Record<string, string>; type TranslationDict = Record<string, string>;
const de: TranslationDict = { const de: TranslationDict = {
// App branding // App branding
'app.name': 'CompetenceTrack', 'app.name': 'SchulOS',
'app.subtitle': 'Freie Kompetenz- & Benotungsplattform für Schulen', 'app.subtitle': 'Freie Kompetenz- & Benotungsplattform für Schulen',
'app.tagline': 'Open-Source Software für kompetenzorientierte Beurteilung', 'app.tagline': 'Open-Source Software für kompetenzorientierte Beurteilung',
@@ -56,7 +56,7 @@ const de: TranslationDict = {
'auth.password': 'Passwort', 'auth.password': 'Passwort',
'auth.firstName': 'Vorname', 'auth.firstName': 'Vorname',
'auth.lastName': 'Nachname', 'auth.lastName': 'Nachname',
'auth.login_title': 'Bei CompetenceTrack anmelden', 'auth.login_title': 'Bei SchulOS anmelden',
'auth.register_title': 'Neues Konto erstellen', 'auth.register_title': 'Neues Konto erstellen',
'auth.login_subtitle': 'Geben Sie Ihre Zugangsdaten ein', 'auth.login_subtitle': 'Geben Sie Ihre Zugangsdaten ein',
'auth.register_subtitle': 'Erstellen Sie ein kostenloses Konto', 'auth.register_subtitle': 'Erstellen Sie ein kostenloses Konto',
@@ -440,7 +440,7 @@ const de: TranslationDict = {
// Onboarding checklist // Onboarding checklist
'onboarding.title': 'Erste Schritte', 'onboarding.title': 'Erste Schritte',
'onboarding.subtitle': 'Follow these steps to set up CompetenceTrack', 'onboarding.subtitle': 'Follow these steps to set up SchulOS',
'onboarding.step_create_class': 'Erstellen Sie Ihre erste Klasse', 'onboarding.step_create_class': 'Erstellen Sie Ihre erste Klasse',
'onboarding.step_assign_grid': 'Weisen Sie ein Kompetenzraster zu', 'onboarding.step_assign_grid': 'Weisen Sie ein Kompetenzraster zu',
'onboarding.step_add_students': 'Fügen Sie Schüler hinzu', 'onboarding.step_add_students': 'Fügen Sie Schüler hinzu',
@@ -478,7 +478,7 @@ const de: TranslationDict = {
'classes.assign_no_templates': 'Keine passenden Raster gefunden.', 'classes.assign_no_templates': 'Keine passenden Raster gefunden.',
// Footer // Footer
'footer.copyright': 'CompetenceTrack — Freie Schulsoftware', 'footer.copyright': 'SchulOS — Freie Schulsoftware',
'footer.version': 'Version 1.0', 'footer.version': 'Version 1.0',
'footer.oss': 'Open Source', 'footer.oss': 'Open Source',
'sidebar.eco_message': 'Papier sparen, Umwelt schutzen', 'sidebar.eco_message': 'Papier sparen, Umwelt schutzen',
@@ -1732,7 +1732,7 @@ const de: TranslationDict = {
'notifications.days_ago': 'vor {days} Tagen', 'notifications.days_ago': 'vor {days} Tagen',
// Onboarding // Onboarding
'onboarding.welcome_title': 'Willkommen bei CompetenceTrack!', 'onboarding.welcome_title': 'Willkommen bei SchulOS!',
'onboarding.welcome_desc': 'Ihre freie Kompetenz- & Benotungsplattform für Schulen. Lassen Sie uns eine kurze Einführung machen.', 'onboarding.welcome_desc': 'Ihre freie Kompetenz- & Benotungsplattform für Schulen. Lassen Sie uns eine kurze Einführung machen.',
'onboarding.dashboard_title': 'Dashboard', 'onboarding.dashboard_title': 'Dashboard',
'onboarding.dashboard_desc': 'Hier sehen Sie einen Überblick über alle Klassen, Schüler und aktuelle Aktivitäten. Nutzen Sie die Schnellaktionen für häufige Aufgaben.', 'onboarding.dashboard_desc': 'Hier sehen Sie einen Überblick über alle Klassen, Schüler und aktuelle Aktivitäten. Nutzen Sie die Schnellaktionen für häufige Aufgaben.',
@@ -1743,7 +1743,7 @@ const de: TranslationDict = {
'onboarding.reports_title': 'Berichte', 'onboarding.reports_title': 'Berichte',
'onboarding.reports_desc': 'Erstellen Sie Zeugnis- und Entwicklungsberichte. Exportieren Sie diese als PDF oder drucken Sie sie direkt.', 'onboarding.reports_desc': 'Erstellen Sie Zeugnis- und Entwicklungsberichte. Exportieren Sie diese als PDF oder drucken Sie sie direkt.',
'onboarding.done_title': 'Fertig!', 'onboarding.done_title': 'Fertig!',
'onboarding.done_desc': 'Sie sind bereit, CompetenceTrack zu nutzen. Bei Fragen klicken Sie auf das Hilfe-Symbol in der Kopfzeile.', 'onboarding.done_desc': 'Sie sind bereit, SchulOS zu nutzen. Bei Fragen klicken Sie auf das Hilfe-Symbol in der Kopfzeile.',
'onboarding.skip': 'Überspringen', 'onboarding.skip': 'Überspringen',
'onboarding.next': 'Weiter', 'onboarding.next': 'Weiter',
'onboarding.back': 'Zurück', 'onboarding.back': 'Zurück',
@@ -1764,7 +1764,7 @@ const de: TranslationDict = {
'onboarding.parents_title': 'Elternkommunikation', 'onboarding.parents_title': 'Elternkommunikation',
'onboarding.parents_desc': 'Kommunizieren Sie mit Eltern über den Lernfortschritt. Senden Sie Berichte und halten Sie den Dialog aufrecht.', 'onboarding.parents_desc': 'Kommunizieren Sie mit Eltern über den Lernfortschritt. Senden Sie Berichte und halten Sie den Dialog aufrecht.',
'onboarding.environmental_title': 'Umweltschutz', 'onboarding.environmental_title': 'Umweltschutz',
'onboarding.environmental_desc': 'CompetenceTrack spart Papier: Jeder digitale Eintrag ersetzt ca. 50 Seiten Papier. Danke für Ihren Beitrag zum Umweltschutz!', 'onboarding.environmental_desc': 'SchulOS spart Papier: Jeder digitale Eintrag ersetzt ca. 50 Seiten Papier. Danke für Ihren Beitrag zum Umweltschutz!',
// Batch deletion (progress entries) // Batch deletion (progress entries)
'progress.batch_select': 'Auswählen', 'progress.batch_select': 'Auswählen',
@@ -2728,10 +2728,10 @@ const de: TranslationDict = {
'pwa.back_online_desc': 'Ihre Verbindung wurde wiederhergestellt.', 'pwa.back_online_desc': 'Ihre Verbindung wurde wiederhergestellt.',
'pwa.cached_data': 'Cache-Daten', 'pwa.cached_data': 'Cache-Daten',
'pwa.install_app': 'App installieren', 'pwa.install_app': 'App installieren',
'pwa.install_app_desc': 'CompetenceTrack als App auf Ihrem Gerät installieren.', 'pwa.install_app_desc': 'SchulOS als App auf Ihrem Gerät installieren.',
'pwa.install': 'Installieren', 'pwa.install': 'Installieren',
'pwa.installed': 'App installiert', 'pwa.installed': 'App installiert',
'pwa.installed_desc': 'CompetenceTrack wurde erfolgreich als App installiert.', 'pwa.installed_desc': 'SchulOS wurde erfolgreich als App installiert.',
'pwa.install_accepted': 'Installation gestartet', 'pwa.install_accepted': 'Installation gestartet',
'pwa.update_available': 'Update verfügbar', 'pwa.update_available': 'Update verfügbar',
'pwa.update_available_desc': 'Eine neue Version ist verfügbar. Laden Sie die Seite neu.', 'pwa.update_available_desc': 'Eine neue Version ist verfügbar. Laden Sie die Seite neu.',
@@ -3300,7 +3300,7 @@ const de: TranslationDict = {
'events.view_all': 'Alle Veranstaltungen', 'events.view_all': 'Alle Veranstaltungen',
// Onboarding Tour (24 steps) - DE // Onboarding Tour (24 steps) - DE
'onboarding.step_1_title': 'Willkommen bei CompetenceTrack!', 'onboarding.step_1_title': 'Willkommen bei SchulOS!',
'onboarding.step_1_desc': 'Ihre freie Kompetenz- & Benotungsplattform für Schulen. Lassen Sie uns eine kurze Einführung machen.', 'onboarding.step_1_desc': 'Ihre freie Kompetenz- & Benotungsplattform für Schulen. Lassen Sie uns eine kurze Einführung machen.',
'onboarding.step_2_title': 'Dashboard', 'onboarding.step_2_title': 'Dashboard',
'onboarding.step_2_desc': 'Hier sehen Sie einen Überblick über alle Klassen, Schüler und aktuelle Aktivitäten. Nutzen Sie die Schnellaktionen und Kennzahlen.', 'onboarding.step_2_desc': 'Hier sehen Sie einen Überblick über alle Klassen, Schüler und aktuelle Aktivitäten. Nutzen Sie die Schnellaktionen und Kennzahlen.',
@@ -3349,7 +3349,7 @@ const de: TranslationDict = {
'onboarding.step_24_title': 'Einstellungen', 'onboarding.step_24_title': 'Einstellungen',
'onboarding.step_24_desc': 'Passen Sie die Plattform an: Schulprofil, Branding, Backup und Datenverwaltung.', 'onboarding.step_24_desc': 'Passen Sie die Plattform an: Schulprofil, Branding, Backup und Datenverwaltung.',
'onboarding.celebration': 'Sie sind bereit!', 'onboarding.celebration': 'Sie sind bereit!',
'onboarding.complete': 'Sie haben die Tour abgeschlossen. Viel Erfolg mit CompetenceTrack!', 'onboarding.complete': 'Sie haben die Tour abgeschlossen. Viel Erfolg mit SchulOS!',
'onboarding.previous': 'Zurück', 'onboarding.previous': 'Zurück',
'onboarding.dont_show_again': 'Nicht mehr anzeigen', 'onboarding.dont_show_again': 'Nicht mehr anzeigen',
'onboarding.restart_tour': 'Tour erneut starten', 'onboarding.restart_tour': 'Tour erneut starten',
@@ -3676,7 +3676,7 @@ const de: TranslationDict = {
'dsgvo.dpa_desc': 'Vertrag zur Auftragsdatenverarbeitung gemäß Art. 28 DSGVO', 'dsgvo.dpa_desc': 'Vertrag zur Auftragsdatenverarbeitung gemäß Art. 28 DSGVO',
'dsgvo.data_register': 'Verzeichnis von Verarbeitungstätigkeiten', 'dsgvo.data_register': 'Verzeichnis von Verarbeitungstätigkeiten',
'dsgvo.data_register_desc': 'Übersicht aller Verarbeitungstätigkeiten gemäß Art. 30 DSGVO', 'dsgvo.data_register_desc': 'Übersicht aller Verarbeitungstätigkeiten gemäß Art. 30 DSGVO',
'dsgvo.privacy_policy_text': 'Die nachfolgende Datenschutzerklärung gilt für die Nutzung der Plattform CompetenceTrack. Verantwortlich für die Datenverarbeitung ist die jeweilige Schule.', 'dsgvo.privacy_policy_text': 'Die nachfolgende Datenschutzerklärung gilt für die Nutzung der Plattform SchulOS. Verantwortlich für die Datenverarbeitung ist die jeweilige Schule.',
'dsgvo.data_collected_list': 'Name, E-Mail-Adresse, Passwort (verschlüsselt), Rollenzuordnung, Klassen- und Fächerverknüpfungen, Lernfortschritte, Bewertungen, Anwesenheitsdaten, Notizen und Zeugnisse.', 'dsgvo.data_collected_list': 'Name, E-Mail-Adresse, Passwort (verschlüsselt), Rollenzuordnung, Klassen- und Fächerverknüpfungen, Lernfortschritte, Bewertungen, Anwesenheitsdaten, Notizen und Zeugnisse.',
'dsgvo.data_purpose_list': 'Bereitstellung und Betrieb der Plattform, Verwaltung von Schülern und Klassen, Dokumentation von Lernfortschritten, Erstellung von Zeugnissen und Berichten, Kommunikation mit Eltern.', 'dsgvo.data_purpose_list': 'Bereitstellung und Betrieb der Plattform, Verwaltung von Schülern und Klassen, Dokumentation von Lernfortschritten, Erstellung von Zeugnissen und Berichten, Kommunikation mit Eltern.',
'dsgvo.data_retention_list': 'Nutzerdaten werden für die Dauer der Nutzung gespeichert. Nach Löschung des Kontos werden die Daten nach Ablauf der 30-tägigen Widerspruchsfrist unwiderruflich gelöscht. Auswertungsdaten werden nach 3 Jahren anonymisiert.', 'dsgvo.data_retention_list': 'Nutzerdaten werden für die Dauer der Nutzung gespeichert. Nach Löschung des Kontos werden die Daten nach Ablauf der 30-tägigen Widerspruchsfrist unwiderruflich gelöscht. Auswertungsdaten werden nach 3 Jahren anonymisiert.',
@@ -6654,7 +6654,7 @@ const de: TranslationDict = {
const en: TranslationDict = { const en: TranslationDict = {
// App branding // App branding
'app.name': 'CompetenceTrack', 'app.name': 'SchulOS',
'app.subtitle': 'Free Competency & Grading Platform for Schools', 'app.subtitle': 'Free Competency & Grading Platform for Schools',
'app.tagline': 'Open-Source Software for Competency-Based Assessment', 'app.tagline': 'Open-Source Software for Competency-Based Assessment',
@@ -6705,7 +6705,7 @@ const en: TranslationDict = {
'auth.password': 'Password', 'auth.password': 'Password',
'auth.firstName': 'First Name', 'auth.firstName': 'First Name',
'auth.lastName': 'Last Name', 'auth.lastName': 'Last Name',
'auth.login_title': 'Sign in to CompetenceTrack', 'auth.login_title': 'Sign in to SchulOS',
'auth.register_title': 'Create a new account', 'auth.register_title': 'Create a new account',
'auth.login_subtitle': 'Enter your credentials', 'auth.login_subtitle': 'Enter your credentials',
'auth.register_subtitle': 'Create a free account', 'auth.register_subtitle': 'Create a free account',
@@ -7089,7 +7089,7 @@ const en: TranslationDict = {
// Onboarding checklist // Onboarding checklist
'onboarding.title': 'Getting Started', 'onboarding.title': 'Getting Started',
'onboarding.subtitle': 'Follow these steps to set up CompetenceTrack', 'onboarding.subtitle': 'Follow these steps to set up SchulOS',
'onboarding.step_create_class': 'Create your first class', 'onboarding.step_create_class': 'Create your first class',
'onboarding.step_assign_grid': 'Assign a competency grid', 'onboarding.step_assign_grid': 'Assign a competency grid',
'onboarding.step_add_students': 'Add students', 'onboarding.step_add_students': 'Add students',
@@ -7127,7 +7127,7 @@ const en: TranslationDict = {
'classes.assign_no_templates': 'No matching templates found.', 'classes.assign_no_templates': 'No matching templates found.',
// Footer // Footer
'footer.copyright': 'CompetenceTrack — Free School Software', 'footer.copyright': 'SchulOS — Free School Software',
'footer.version': 'Version 1.0', 'footer.version': 'Version 1.0',
'footer.oss': 'Open Source', 'footer.oss': 'Open Source',
'sidebar.eco_message': 'Save paper, protect the environment', 'sidebar.eco_message': 'Save paper, protect the environment',
@@ -8381,7 +8381,7 @@ const en: TranslationDict = {
'notifications.days_ago': '{days} days ago', 'notifications.days_ago': '{days} days ago',
// Onboarding // Onboarding
'onboarding.welcome_title': 'Welcome to CompetenceTrack!', 'onboarding.welcome_title': 'Welcome to SchulOS!',
'onboarding.welcome_desc': 'Your free competency & grading platform for schools. Let\'s take a quick tour.', 'onboarding.welcome_desc': 'Your free competency & grading platform for schools. Let\'s take a quick tour.',
'onboarding.dashboard_title': 'Dashboard', 'onboarding.dashboard_title': 'Dashboard',
'onboarding.dashboard_desc': 'Here you see an overview of all classes, students and current activities. Use quick actions for common tasks.', 'onboarding.dashboard_desc': 'Here you see an overview of all classes, students and current activities. Use quick actions for common tasks.',
@@ -8392,7 +8392,7 @@ const en: TranslationDict = {
'onboarding.reports_title': 'Reports', 'onboarding.reports_title': 'Reports',
'onboarding.reports_desc': 'Create report cards and development reports. Export as PDF or print directly.', 'onboarding.reports_desc': 'Create report cards and development reports. Export as PDF or print directly.',
'onboarding.done_title': 'Done!', 'onboarding.done_title': 'Done!',
'onboarding.done_desc': 'You\'re ready to use CompetenceTrack. For questions, click the help icon in the header.', 'onboarding.done_desc': 'You\'re ready to use SchulOS. For questions, click the help icon in the header.',
'onboarding.skip': 'Skip', 'onboarding.skip': 'Skip',
'onboarding.next': 'Next', 'onboarding.next': 'Next',
'onboarding.back': 'Back', 'onboarding.back': 'Back',
@@ -8413,7 +8413,7 @@ const en: TranslationDict = {
'onboarding.parents_title': 'Parent Communication', 'onboarding.parents_title': 'Parent Communication',
'onboarding.parents_desc': 'Communicate with parents about learning progress. Send reports and maintain an ongoing dialogue.', 'onboarding.parents_desc': 'Communicate with parents about learning progress. Send reports and maintain an ongoing dialogue.',
'onboarding.environmental_title': 'Environmental Protection', 'onboarding.environmental_title': 'Environmental Protection',
'onboarding.environmental_desc': 'CompetenceTrack saves paper: Each digital entry replaces ~50 pages of paper. Thank you for contributing to environmental protection!', 'onboarding.environmental_desc': 'SchulOS saves paper: Each digital entry replaces ~50 pages of paper. Thank you for contributing to environmental protection!',
// Batch deletion (progress entries) // Batch deletion (progress entries)
'progress.batch_select': 'Select', 'progress.batch_select': 'Select',
@@ -9376,10 +9376,10 @@ const en: TranslationDict = {
'pwa.back_online_desc': 'Your connection has been restored.', 'pwa.back_online_desc': 'Your connection has been restored.',
'pwa.cached_data': 'Cached data', 'pwa.cached_data': 'Cached data',
'pwa.install_app': 'Install App', 'pwa.install_app': 'Install App',
'pwa.install_app_desc': 'Install CompetenceTrack as an app on your device.', 'pwa.install_app_desc': 'Install SchulOS as an app on your device.',
'pwa.install': 'Install', 'pwa.install': 'Install',
'pwa.installed': 'App installed', 'pwa.installed': 'App installed',
'pwa.installed_desc': 'CompetenceTrack has been successfully installed as an app.', 'pwa.installed_desc': 'SchulOS has been successfully installed as an app.',
'pwa.install_accepted': 'Installation started', 'pwa.install_accepted': 'Installation started',
'pwa.update_available': 'Update available', 'pwa.update_available': 'Update available',
'pwa.update_available_desc': 'A new version is available. Reload the page to update.', 'pwa.update_available_desc': 'A new version is available. Reload the page to update.',
@@ -9948,7 +9948,7 @@ const en: TranslationDict = {
'events.view_all': 'View All Events', 'events.view_all': 'View All Events',
// Onboarding Tour (24 steps) - EN // Onboarding Tour (24 steps) - EN
'onboarding.step_1_title': 'Welcome to CompetenceTrack!', 'onboarding.step_1_title': 'Welcome to SchulOS!',
'onboarding.step_1_desc': 'Your free competency & grading platform for schools. Let\'s take a quick tour.', 'onboarding.step_1_desc': 'Your free competency & grading platform for schools. Let\'s take a quick tour.',
'onboarding.step_2_title': 'Dashboard', 'onboarding.step_2_title': 'Dashboard',
'onboarding.step_2_desc': 'Here you see an overview of all classes, students and current activities. Use quick actions and key metrics.', 'onboarding.step_2_desc': 'Here you see an overview of all classes, students and current activities. Use quick actions and key metrics.',
@@ -9997,7 +9997,7 @@ const en: TranslationDict = {
'onboarding.step_24_title': 'Settings', 'onboarding.step_24_title': 'Settings',
'onboarding.step_24_desc': 'Customize the platform: school profile, branding, backup and data management.', 'onboarding.step_24_desc': 'Customize the platform: school profile, branding, backup and data management.',
'onboarding.celebration': 'You\'re all set!', 'onboarding.celebration': 'You\'re all set!',
'onboarding.complete': 'You\'ve completed the tour. Good luck with CompetenceTrack!', 'onboarding.complete': 'You\'ve completed the tour. Good luck with SchulOS!',
'onboarding.previous': 'Previous', 'onboarding.previous': 'Previous',
'onboarding.dont_show_again': 'Don\'t show again', 'onboarding.dont_show_again': 'Don\'t show again',
'onboarding.restart_tour': 'Restart tour', 'onboarding.restart_tour': 'Restart tour',
@@ -10324,7 +10324,7 @@ const en: TranslationDict = {
'dsgvo.dpa_desc': 'Data processing agreement pursuant to Art. 28 GDPR', 'dsgvo.dpa_desc': 'Data processing agreement pursuant to Art. 28 GDPR',
'dsgvo.data_register': 'Register of Processing Activities', 'dsgvo.data_register': 'Register of Processing Activities',
'dsgvo.data_register_desc': 'Overview of all processing activities pursuant to Art. 30 GDPR', 'dsgvo.data_register_desc': 'Overview of all processing activities pursuant to Art. 30 GDPR',
'dsgvo.privacy_policy_text': 'The following privacy policy applies to the use of the CompetenceTrack platform. The respective school is responsible for data processing.', 'dsgvo.privacy_policy_text': 'The following privacy policy applies to the use of the SchulOS platform. The respective school is responsible for data processing.',
'dsgvo.data_collected_list': 'Name, email address, password (encrypted), role assignment, class and subject associations, learning progress, assessments, attendance data, notes and reports.', 'dsgvo.data_collected_list': 'Name, email address, password (encrypted), role assignment, class and subject associations, learning progress, assessments, attendance data, notes and reports.',
'dsgvo.data_purpose_list': 'Provision and operation of the platform, management of students and classes, documentation of learning progress, creation of reports, communication with parents.', 'dsgvo.data_purpose_list': 'Provision and operation of the platform, management of students and classes, documentation of learning progress, creation of reports, communication with parents.',
'dsgvo.data_retention_list': 'User data is stored for the duration of use. After account deletion, data is permanently deleted after the 30-day objection period. Analytics data is anonymized after 3 years.', 'dsgvo.data_retention_list': 'User data is stored for the duration of use. After account deletion, data is permanently deleted after the 30-day objection period. Analytics data is anonymized after 3 years.',
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Notification Helper // SchulOS — Notification Helper
// Server-side utility for creating notifications in the database // Server-side utility for creating notifications in the database
// Also pushes notifications via WebSocket service // Also pushes notifications via WebSocket service
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Offline Cache for Notebook Data // SchulOS — Offline Cache for Notebook Data
// Stores notebook data in localStorage for offline access // Stores notebook data in localStorage for offline access
const NOTEBOOK_CACHE_KEY = 'ct_notebook_cache'; const NOTEBOOK_CACHE_KEY = 'ct_notebook_cache';
+2 -2
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — QR Code Generation Utility // SchulOS — QR Code Generation Utility
// Generates QR codes as base64 PNG images using canvas // Generates QR codes as base64 PNG images using canvas
export type QRCodeType = 'student' | 'class' | 'attendance' | 'event'; export type QRCodeType = 'student' | 'class' | 'attendance' | 'event';
@@ -17,7 +17,7 @@ export interface QRCodeData {
* Build a URL string from QR code data that can be encoded into a QR code * Build a URL string from QR code data that can be encoded into a QR code
*/ */
export function buildQRCodeUrl(data: QRCodeData): string { export function buildQRCodeUrl(data: QRCodeData): string {
const base = typeof window !== 'undefined' ? window.location.origin : 'https://competencetrack.app'; const base = typeof window !== 'undefined' ? window.location.origin : 'https://schulos.app';
switch (data.type) { switch (data.type) {
case 'student': case 'student':
return `${base}/?student=${data.id}`; return `${base}/?student=${data.id}`;
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — API Rate Limiting Middleware // SchulOS — API Rate Limiting Middleware
// In-memory rate limiting with configurable limits per endpoint // In-memory rate limiting with configurable limits per endpoint
interface RateLimitEntry { interface RateLimitEntry {
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — Zustand Store // SchulOS — Zustand Store
import { create } from 'zustand'; import { create } from 'zustand';
import { setLocale, getLocale } from '@/lib/i18n'; import { setLocale, getLocale } from '@/lib/i18n';
+1 -1
View File
@@ -1,4 +1,4 @@
// CompetenceTrack — WebSocket Hook // SchulOS — WebSocket Hook
// Real-time collaboration and push notifications via Socket.IO // Real-time collaboration and push notifications via Socket.IO
'use client'; 'use client';
+9 -9
View File
@@ -38,7 +38,7 @@ Stage Summary:
### Summary ### Summary
Built the Subject Content Management System for CompetenceTrack - a "Schlaukopf clone" educational content platform. Includes full CRUD API routes, comprehensive frontend component with role-based views, i18n support (90+ keys in DE+EN), and schlaukopf.de-style seed data. Built the Subject Content Management System for SchulOS - a "Schlaukopf clone" educational content platform. Includes full CRUD API routes, comprehensive frontend component with role-based views, i18n support (90+ keys in DE+EN), and schlaukopf.de-style seed data.
### Files Created ### Files Created
@@ -276,7 +276,7 @@ Unresolved issues / Next phase priorities:
### Summary ### Summary
Built the **Illness Reporting with Parent Approval** and **Student-Teacher Communication Rooms** features for CompetenceTrack. These are critical features for a German school platform: illness reports require parent approval before becoming visible to teachers (privacy compliance), and communication rooms provide private student-teacher conversation channels. Built the **Illness Reporting with Parent Approval** and **Student-Teacher Communication Rooms** features for SchulOS. These are critical features for a German school platform: illness reports require parent approval before becoming visible to teachers (privacy compliance), and communication rooms provide private student-teacher conversation channels.
### Files Created ### Files Created
@@ -444,7 +444,7 @@ Added 80+ keys to both DE and EN sections:
### Summary ### Summary
Implemented the Counseling/Guidance System, Disciplinary Committee System, and AI Test Generation features for CompetenceTrack. This includes 12 API route files, 3 view components, 130+ i18n keys, and store/navigation updates. Implemented the Counseling/Guidance System, Disciplinary Committee System, and AI Test Generation features for SchulOS. This includes 12 API route files, 3 view components, 130+ i18n keys, and store/navigation updates.
### Files Created ### Files Created
@@ -533,7 +533,7 @@ Implemented the Counseling/Guidance System, Disciplinary Committee System, and A
### Summary ### Summary
Implemented the complete AI Integration system and Virtual Character/Chatbot system for CompetenceTrack. This includes 6 API routes, 2 major frontend components, 100+ i18n keys, and integration into the app layout. Implemented the complete AI Integration system and Virtual Character/Chatbot system for SchulOS. This includes 6 API routes, 2 major frontend components, 100+ i18n keys, and integration into the app layout.
### Files Created ### Files Created
@@ -673,7 +673,7 @@ Unresolved issues / Next phase priorities:
### Summary ### Summary
Enhanced the visual design and polish of 8 components across CompetenceTrack. Focused on adding gradient headers, animated progress bars, skeleton loading states, empty state illustrations, typing indicators, online/offline status indicators, circular progress visualizations, shimmer effects, and improved message bubbles. All changes are purely visual - no functionality was modified. Enhanced the visual design and polish of 8 components across SchulOS. Focused on adding gradient headers, animated progress bars, skeleton loading states, empty state illustrations, typing indicators, online/offline status indicators, circular progress visualizations, shimmer effects, and improved message bubbles. All changes are purely visual - no functionality was modified.
### Files Modified ### Files Modified
@@ -711,7 +711,7 @@ Enhanced the visual design and polish of 8 components across CompetenceTrack. Fo
### Summary ### Summary
Enhanced the CompetenceTrack platform with teacher grading features (annotation, AI review, bulk grading) and deep styling improvements across all major components. Enhanced the SchulOS platform with teacher grading features (annotation, AI review, bulk grading) and deep styling improvements across all major components.
### Files Created ### Files Created
@@ -840,7 +840,7 @@ Unresolved issues / Next phase priorities:
### Summary ### Summary
Built the Inter-School Competition Federation system and Enhanced Communication System for CompetenceTrack. The federation system allows schools in the same district to compete against each other with school rankings and team scores. The enhanced communication system adds voice chat, note sharing, file sharing, and teacher notes to the existing communication rooms. Built the Inter-School Competition Federation system and Enhanced Communication System for SchulOS. The federation system allows schools in the same district to compete against each other with school rankings and team scores. The enhanced communication system adds voice chat, note sharing, file sharing, and teacher notes to the existing communication rooms.
### Files Created ### Files Created
@@ -972,7 +972,7 @@ Unresolved issues / Next phase priorities:
### Summary ### Summary
Built the Responsible Teacher (Klassenlehrer) management, Vice Principal management, enhanced calendar exam integration, student portal exam/study tips, and dashboard Klassenlehrer section for CompetenceTrack. Includes full API routes, comprehensive frontend components with role-based views, i18n support (90+ keys in DE+EN), and deep styling improvements. Built the Responsible Teacher (Klassenlehrer) management, Vice Principal management, enhanced calendar exam integration, student portal exam/study tips, and dashboard Klassenlehrer section for SchulOS. Includes full API routes, comprehensive frontend components with role-based views, i18n support (90+ keys in DE+EN), and deep styling improvements.
### Files Created ### Files Created
@@ -2091,7 +2091,7 @@ Stage Summary:
## Task ID: 2-a ## Task ID: 2-a
Agent: Grade Analytics & Reporting Builder Agent: Grade Analytics & Reporting Builder
Task: Build Grade Analytics & Reporting View for CompetenceTrack Task: Build Grade Analytics & Reporting View for SchulOS
Work Log: Work Log:
- Added GradeReport model to Prisma schema with fields: schoolId, generatedBy, title, type, dateRange, classIds, subjectIds, metrics, status, fileData, createdAt - Added GradeReport model to Prisma schema with fields: schoolId, generatedBy, title, type, dateRange, classIds, subjectIds, metrics, status, fileData, createdAt