diff --git a/assets/js/components/DocumentUpload.vue b/assets/js/components/DocumentUpload.vue index 2f32c22..09bf237 100644 --- a/assets/js/components/DocumentUpload.vue +++ b/assets/js/components/DocumentUpload.vue @@ -8,6 +8,7 @@ icon="pi pi-upload" @click="showUploadDialog = true" severity="success" + class="ml-auto" outlined /> diff --git a/assets/js/components/GitContributionChart.vue b/assets/js/components/GitContributionChart.vue index a1854e2..4f927d7 100644 --- a/assets/js/components/GitContributionChart.vue +++ b/assets/js/components/GitContributionChart.vue @@ -124,10 +124,13 @@ const contributionGrid = computed(() => { firstSunday.setDate(firstSunday.getDate() - 1) } - // Create a map of dates to contribution counts + // Backend already provides weekday values (0=Sun, 6=Sat), use them directly const contributionMap = {} contributionData.value.forEach(day => { - contributionMap[day.date] = day.count + contributionMap[day.date] = { + count: day.count, + weekday: day.weekday // Use weekday from backend + } }) let col = 1 @@ -136,12 +139,15 @@ const contributionGrid = computed(() => { while (currentDate <= lastDay || currentDate.getDay() !== 0) { const dateStr = currentDate.toISOString().split('T')[0] - const weekday = currentDate.getDay() // 0 = Sunday, 6 = Saturday + const contributionInfo = contributionMap[dateStr] + + // Use weekday from backend if available, otherwise calculate it + const weekday = contributionInfo ? contributionInfo.weekday : currentDate.getDay() const row = weekday + 1 // Grid row: 1-7 (Sunday-Saturday) // Only add cells for the current year if (currentDate.getFullYear() === currentYear.value) { - const count = contributionMap[dateStr] || 0 + const count = contributionInfo ? contributionInfo.count : 0 const date = new Date(currentDate) grid.push({ @@ -301,6 +307,10 @@ async function loadContributions() { const data = await response.json() contributionData.value = data.contributions || [] + + // Debug: Log first few contributions to check weekday values + console.log('Loaded contributions sample:', contributionData.value.slice(0, 5)) + console.log('Total contributions:', contributionData.value.length) } catch (err) { console.error('Error loading contributions:', err) error.value = err.message @@ -438,7 +448,11 @@ defineExpose({ } .intensity-0 { - background-color: var(--surface-200); + background-color: #ebedf0; +} + +:global(.dark) .intensity-0 { + background-color: #161b22; } .intensity-1 { @@ -457,10 +471,6 @@ defineExpose({ background-color: #216e39; } -:global(.dark) .intensity-0 { - background-color: var(--surface-700); -} - .legend { display: flex; align-items: center; diff --git a/assets/js/views/ProjectManagement.vue b/assets/js/views/ProjectManagement.vue index e386aff..743ed47 100644 --- a/assets/js/views/ProjectManagement.vue +++ b/assets/js/views/ProjectManagement.vue @@ -563,13 +563,18 @@ :modal="true" :style="{ width: '1400px' }" > - - - -
- -
-
Grunddaten
+ + + Projektdaten + Git Repositories + + + + +
+ +
+
Grunddaten
@@ -677,7 +682,7 @@ - +

Keine Git-Repositories verknüpft

@@ -742,7 +747,8 @@
- + +