Skip to content

fix(web): link active cycle progress empty state to cycle work items - #9527

Open
reyrey112 wants to merge 1 commit into
makeplane:previewfrom
reyrey112:fix/cycle-progress-empty-state-link
Open

fix(web): link active cycle progress empty state to cycle work items#9527
reyrey112 wants to merge 1 commit into
makeplane:previewfrom
reyrey112:fix/cycle-progress-empty-state-link

Conversation

@reyrey112

@reyrey112 reyrey112 commented Aug 2, 2026

Copy link
Copy Markdown

Description

Updated apps/web/core/components/cycles/active-cycle/progress.tsx to make the cycle progress chart empty state link to the work items of that cycle.
Wrapped h3 tag containing "Progress" chart title and div tag containing "SimpleEmptyState" with Link tag to cycle page.
Matches the current behavior of work item burndown chart in apps/web/core/components/cycles/active-cycle/productivity.tsx

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Files Changed

apps/web/core/components/cycles/active-cycle/progress.tsx

Summary by CodeRabbit

  • New Features
    • Added navigation from the active cycle progress card to the associated project.
    • Progress headings and empty states now link directly to the relevant cycle.

@CLAassistant

CLAassistant commented Aug 2, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

The active cycle progress card now links its heading and empty-state view to the active cycle’s project route. The route uses workspaceSlug, projectId, and the cycle ID.

Changes

Active cycle navigation

Layer / File(s) Summary
Progress card route links
apps/web/core/components/cycles/active-cycle/progress.tsx
The component imports Next.js Link, reads workspaceSlug and projectId, and applies the cycle project route to the progress heading and empty-state view.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: sriramveeraghanta

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the bug fix that links the active cycle progress empty state to cycle work items.
Description check ✅ Passed The description explains the change and marks it as a bug fix, but it omits test scenarios and references.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@apps/web/core/components/cycles/active-cycle/progress.tsx`:
- Around line 110-114: Add a single accessible name to the Link wrapping
SimpleEmptyState in the active-cycle progress empty state by applying the
translated title via aria-label, or mark the rendered image decorative with
alt="" for this linked context; ensure assistive technology does not announce
the title twice.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: d3ca0f86-a880-46ab-b17d-c3604aa539a5

📥 Commits

Reviewing files that changed from the base of the PR and between 1ed664e and a7fa302.

📒 Files selected for processing (1)
  • apps/web/core/components/cycles/active-cycle/progress.tsx

Comment on lines +110 to +114
<Link href={`/${workspaceSlug}/projects/${projectId}/cycles/${cycle?.id}`}>
<div className="flex h-full w-full items-center justify-center">
<SimpleEmptyState title={t("active_cycle.empty_state.progress.title")} assetPath={resolvedPath} />
</div>
</Link>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Give the empty-state link one accessible name.

SimpleEmptyState renders img alt={title} and <h3>{title}</h3>. Wrapping both in Link can cause assistive technology to announce the title twice. Add one translated aria-label to the link, or use alt="" for the decorative image in this linked state.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@apps/web/core/components/cycles/active-cycle/progress.tsx` around lines 110 -
114, Add a single accessible name to the Link wrapping SimpleEmptyState in the
active-cycle progress empty state by applying the translated title via
aria-label, or mark the rendered image decorative with alt="" for this linked
context; ensure assistive technology does not announce the title twice.

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.

2 participants