Skip to content

48 implement cycle details page#97

Merged
nazarli-shabnam merged 3 commits into
mainfrom
48-implement-cycle-details-page
May 5, 2026
Merged

48 implement cycle details page#97
nazarli-shabnam merged 3 commits into
mainfrom
48-implement-cycle-details-page

Conversation

@nazarli-shabnam
Copy link
Copy Markdown
Member

closes #48

@nazarli-shabnam nazarli-shabnam added this to the Deadline milestone May 5, 2026
@nazarli-shabnam nazarli-shabnam self-assigned this May 5, 2026
Copilot AI review requested due to automatic review settings May 5, 2026 11:10
@nazarli-shabnam nazarli-shabnam added bug Something isn't working enhancement New feature or request labels May 5, 2026
@nazarli-shabnam nazarli-shabnam linked an issue May 5, 2026 that may be closed by this pull request
@nazarli-shabnam nazarli-shabnam requested a review from Javenn0 May 5, 2026 11:10
nazarli-shabnam

This comment was marked as off-topic.

Copy link
Copy Markdown
Member

@Javenn0 Javenn0 left a comment

Choose a reason for hiding this comment

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

Well done

@nazarli-shabnam nazarli-shabnam merged commit afd2e29 into main May 5, 2026
9 checks passed
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Implements a new Cycle details page in the UI and wires up navigation so users can open a cycle from the cycles list and from favorites.

Changes:

  • Added a new CycleDetailPage route under project cycles.
  • Updated cycle links (cycles list + sidebar favorites) to use a name-based path segment helper.
  • Made cycle rows clickable to navigate to the new details page.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
ui/src/routes/index.tsx Adds lazy-loaded route for the new cycle details page.
ui/src/pages/CyclesPage.tsx Updates cycle URL generation and adds row click/keyboard navigation.
ui/src/pages/CycleDetailPage.tsx New page that loads cycle + work items and renders a details table.
ui/src/lib/cycle.ts Introduces helpers for cycle URL segment generation and matching.
ui/src/components/layout/Sidebar.tsx Updates favorite cycle links to use the new cycle URL segment helper.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +713 to +721
role="button"
tabIndex={0}
onClick={() => navigate(path)}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
navigate(path);
}
}}
Comment thread ui/src/lib/cycle.ts
Comment on lines +4 to +15
export function cyclePathSegment(cycle: Pick<CycleApiResponse, 'name'>): string {
const s = slugify(cycle.name);
return s || 'cycle';
}

export function cycleMatchesPathSegment(
cycle: Pick<CycleApiResponse, 'id' | 'name'>,
segment: string,
): boolean {
const key = segment.trim().toLowerCase();
if (!key) return false;
return cycle.id.toLowerCase() === key || cyclePathSegment(cycle) === key;
Comment on lines 1191 to 1194
<Link
key={`${projectId}:${cycle.id}`}
to={`${baseUrl}/projects/${projectId}/cycles/${cycle.id}`}
to={`${baseUrl}/projects/${projectId}/cycles/${cyclePathSegment(cycle)}`}
className="flex w-full items-center gap-2 rounded-(--radius-md) px-2 py-1.5 text-[13px] font-medium text-(--txt-secondary) hover:bg-(--bg-layer-transparent-hover) hover:text-(--txt-primary)"
Comment on lines +56 to +61
Promise.all([
workspaceService.getBySlug(workspaceSlug),
projectService.get(workspaceSlug, projectId),
cycleService.list(workspaceSlug, projectId),
issueService.list(workspaceSlug, projectId, { limit: 500 }),
stateService.list(workspaceSlug, projectId),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Contribution enhancement New feature or request UI UX

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement Cycle details page

3 participants