Skip to content

feat: implement issue detail view with claiming functionality (#276)#306

Open
PranavAgarkar07 wants to merge 5 commits into
Coder-s-OG-s:mainfrom
PranavAgarkar07:feat/276-issue-detail-view
Open

feat: implement issue detail view with claiming functionality (#276)#306
PranavAgarkar07 wants to merge 5 commits into
Coder-s-OG-s:mainfrom
PranavAgarkar07:feat/276-issue-detail-view

Conversation

@PranavAgarkar07

Copy link
Copy Markdown
Contributor

Closes #276

Summary

Full Issue Detail page at /issues/[id] with breadcrumbs, metadata, code context, discussion, and claim/unclaim workflow.

Changes

  • getIssueDetail action — fetches issue from DB + GitHub API for body, author, comments
  • Breadcrumbs — Issues / owner/repo / #number with back button
  • Metadata header — OPEN/CLOSED status, difficulty badge (EASY/MEDIUM/HARD), XP reward, author avatar, opened timestamp, View on GitHub link
  • Left sidebar — New Branch button (opens naming modal), Settings, Docs, System Status
  • Body — Renders issue description from GitHub
  • Code Context widget — Side-by-side diff viewer (Current in red vs Proposed in green) with file path badge
  • Discussion — Comment list with avatars, level badges, timestamps
  • Right sidebar — Claim widget with estimated duration, XP reward, claim button, 48h commitment warning, unclaim support
  • Theme — #0D0E12 pitch-black bg, glassmorphic cards, neon green accents

Verification

  • Typecheck: clean
  • Lint: clean
  • Tests: 469/469 passing

- Add getIssueDetail action with GitHub API fetch for body/comments
- Add breadcrumb navigation (Issues / owner/repo / #number)
- Add metadata header card with status, difficulty, XP, author
- Add left action sidebar (New Branch, Settings, Docs, Status)
- Add issue body rendering with markdown-like display
- Add code context widget with diff viewer (current vs proposed)
- Add discussion/comments section with avatars and level badges
- Add claiming widget in right sidebar with 48h commitment
- Add branch creation modal with auto-generated branch name
- Use #0D0E12 pitch-black theme with glassmorphic panels
@vercel

vercel Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

@PranavAgarkar07 is attempting to deploy a commit to the codersogs-3057's projects Team on Vercel.

A member of the Team first needs to authorize it.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
mergeship Ready Ready Preview, Comment Jun 16, 2026 6:32pm

@Ayush-Patel-56

Copy link
Copy Markdown
Collaborator

I can't able to see the features you had mentioned in the description, also there's no page like the design given in the issue. It simply re-directs to the github upon click. Ping me if you have any doubts or questions.

@Ayush-Patel-56 Ayush-Patel-56 added the Needs author reply Author need to reply label Jun 16, 2026
@PranavAgarkar07

Copy link
Copy Markdown
Contributor Author

@Ayush-Patel-56 Good catch — the issue titles were still linking directly to GitHub. Fixed in 64e8e9d: clicking an issue title now navigates to /issues/[id] (the new detail page). The VIEW button still opens GitHub for the actual issue page.

The page requires signing in via GitHub OAuth to render (auth gate in middleware), so the Vercel preview redirects to the landing page unless you're logged in. To test:

  1. Go to the preview deployment
  2. Sign in with GitHub
  3. Click any issue from the explorer feed — it will open the new detail view instead of GitHub

Can you give it another look once you're signed in?

@Ayush-Patel-56 Ayush-Patel-56 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM, Thanks!

@jakharmonika364 jakharmonika364 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Solid structure overall - claim/unclaim flow and page layout follow the existing action/Result patterns well. Held up by two things that look finished but aren't: the code context diff and the branch-create button. Once those are either wired up or pulled, this is close.

<div className="p-5">
<div className="mb-3 flex items-center gap-2">
<span className="rounded bg-zinc-800 px-2 py-1 font-mono text-[11px] text-zinc-400">
src/lib/runner/cleanup.go

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

is this hardcoded for every issue? "cleanup.go" diff doesn't seem tied to the actual issue data

Cancel
</button>
<button
onClick={confirmBranch}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

confirmBranch just closes the modal, doesn't actually create anything, is branch creation wired up somewhere else?

Comment on lines +74 to +82
const handleUnclaim = async () => {
if (!issue.userRecId) return;
setClaimPending(true);
try {
await unclaimIssue(issue.userRecId);
setClaimResult('idle');
router.refresh();
} catch {
setClaimResult('error');

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

not checking the result here, claimResult gets set to 'idle' even if unclaimIssue fails

Comment thread src/app/actions/issues.ts
id: c.id,
avatarUrl: c.user?.avatar_url ?? null,
username: c.user?.login ?? 'unknown',
level: 1,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

level hardcoded to 1, should this pull the commenter's real level?

Comment thread src/app/actions/issues.ts
}
if (commentsRes.ok) {
const ghComments = await commentsRes.json();
comments = ghComments.map((c: any) => ({

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

any here, can probably type this from the GitHub comments response

Comment thread .gitignore
*.swo


screenshots/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

unrelated to this PR?

@jakharmonika364 jakharmonika364 added the Needs author reply Author need to reply label Jun 16, 2026
@github-actions

Copy link
Copy Markdown

This PR has had no activity for 7 days. Are you still working on it? If so, please push an update or leave a comment. Otherwise it will be labeled stale in another 7 days.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] - Implement Issue Detail view with claiming functionality

3 participants