feat(projects): add project status lifecycle states - #329
Open
psalmuel3 wants to merge 1 commit into
Open
Conversation
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
|
@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! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #242 — adds a project status lifecycle:
active,paused,deprecated,archived,flagged, andremoved.Changes
types/project.ts): newProjectStatustype,PROJECT_STATUSES,PROJECT_STATUS_LABELS, and helpersgetProjectStatus(),getProjectStatusLabel(),isProjectActive();Projectgains an optionalstatusfield.data/mockProjects.ts): demo projects get realistic lifecycle statuses; any project without one defaults toactive.services/project/project-status.service.ts, new): localStorage-backed status overrides (dongle_project_status_overrides) applied inproject.service.tsfor bothget*andfetch*paths.ProjectLifecycleStatusBadgecomponent rendered onProjectCardand the project detail page.Fixes included
Two pre-existing issues in
app/projects/[id]/page.tsxblocked the ProjectDetail test suite from loading: a duplicatereview-report.serviceimport and a missingClaimProjectModalimport. Both are fixed.Verification
npx tsc --noEmit: only pre-existingapp/admin/page.tsxerrors remain.