Skip to content

feat(projects): add project status lifecycle states - #329

Open
psalmuel3 wants to merge 1 commit into
HubDApp:mainfrom
psalmuel3:feat/242-project-status-lifecycle
Open

feat(projects): add project status lifecycle states#329
psalmuel3 wants to merge 1 commit into
HubDApp:mainfrom
psalmuel3:feat/242-project-status-lifecycle

Conversation

@psalmuel3

Copy link
Copy Markdown

Summary

Closes #242 — adds a project status lifecycle: active, paused, deprecated, archived, flagged, and removed.

Changes

  • Status model (types/project.ts): new ProjectStatus type, PROJECT_STATUSES, PROJECT_STATUS_LABELS, and helpers getProjectStatus(), getProjectStatusLabel(), isProjectActive(); Project gains an optional status field.
  • Seed data (data/mockProjects.ts): demo projects get realistic lifecycle statuses; any project without one defaults to active.
  • Status overrides (services/project/project-status.service.ts, new): localStorage-backed status overrides (dongle_project_status_overrides) applied in project.service.ts for both get* and fetch* paths.
  • UI:
    • New ProjectLifecycleStatusBadge component rendered on ProjectCard and the project detail page.
    • Project detail page shows the current status in Quick Stats and lets the owner (or admin) update it via a "Lifecycle Status" select.
    • Discover page gains a lifecycle-status filter alongside the existing verification filter.
  • Tests: new service/badge tests and status updater coverage on the detail page; Discover/ProjectDetail suites updated for the new feature.

Fixes included

Two pre-existing issues in app/projects/[id]/page.tsx blocked the ProjectDetail test suite from loading: a duplicate review-report.service import and a missing ClaimProjectModal import. Both are fixed.

Verification

  • npx tsc --noEmit: only pre-existing app/admin/page.tsx errors remain.
  • Affected test suites (Discover, ProjectDetail, project.service, project-status.service, badge) all pass.

Implements the project status lifecycle (active, paused, deprecated,
archived, flagged, removed) with a status model, localStorage-backed
status overrides, a lifecycle status badge, an owner/admin status
updater on the project detail page, and a lifecycle-status filter on
the Discover page.

Also fixes two pre-existing issues in app/projects/[id]/page.tsx that
blocked the ProjectDetail test suite from loading: a duplicate
review-report.service import and a missing ClaimProjectModal import.

Closes HubDApp#242
@drips-wave

drips-wave Bot commented Aug 3, 2026

Copy link
Copy Markdown

@psalmuel3 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add project status lifecycle states

1 participant