-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/shared/components/cards/ProjectKanban.astro b/shared/components/cards/ProjectKanban.astro
index c19da1945..b3b8103c0 100644
--- a/shared/components/cards/ProjectKanban.astro
+++ b/shared/components/cards/ProjectKanban.astro
@@ -1,5 +1,4 @@
---
-// NOTE: widgets page passes `value=` but only `percentage` (default 20) drives the bar — `value` is accepted but ignored.
import Progress from '@ui/Progress.astro'
import AvatarList from '@ui/AvatarList.astro'
import Icon from '@ui/Icon.astro'
@@ -13,15 +12,14 @@ interface Props {
percentage?: number | string
percentageColor?: string
due?: string
- /** unused — see note above */
value?: number | string
}
-const { title = 'Task Title', badge, offset = 40, limit = 7, percentage = 20, percentageColor = 'green', due = '2 days' } = Astro.props
+const { title = 'Task Title', badge, offset = 40, limit = 7, percentage, percentageColor = 'green', due = '2 days', value = 20 } = Astro.props
---
-
+
{title}
diff --git a/shared/components/cards/ProjectProgress.astro b/shared/components/cards/ProjectProgress.astro
index 7acb10ff3..021aa0c23 100644
--- a/shared/components/cards/ProjectProgress.astro
+++ b/shared/components/cards/ProjectProgress.astro
@@ -1,5 +1,4 @@
---
-// NOTE: `days-ago` param accepted but unused ("Updated 2 hours ago" is hardcoded).
import Progress from '@ui/Progress.astro'
import CardDropdown from '@ui/CardDropdown.astro'
import projects from '@data/projects.json'
@@ -16,7 +15,7 @@ interface Props {
daysAgo?: number
}
-const { projectId = 0, progress = 25 } = Astro.props
+const { projectId = 0, progress = 25, daysAgo = 2 } = Astro.props
const project = (projects as Project[])[projectId]
---
@@ -30,7 +29,7 @@ const project = (projects as Project[])[projectId]
- Updated 2 hours ago
+ Updated {daysAgo} days ago