Skip to content

fix(desktop): simplify task detail activity and comments#2953

Merged
saddlepaddle merged 1 commit into
superset-sh:mainfrom
saddlepaddle:saddlepaddle/likeable-epoxy
Mar 29, 2026
Merged

fix(desktop): simplify task detail activity and comments#2953
saddlepaddle merged 1 commit into
superset-sh:mainfrom
saddlepaddle:saddlepaddle/likeable-epoxy

Conversation

@saddlepaddle
Copy link
Copy Markdown
Collaborator

@saddlepaddle saddlepaddle commented Mar 27, 2026

Summary

  • show task activity only when we have real creator info instead of falling back to a fake actor
  • remove the task detail comment section from the desktop task page
  • delete the now-unused CommentInput component and the low-value page source test

Validation

  • bun run lint
  • bun run typecheck
  • bun test ⚠️ fails in unrelated existing tests
    • packages/trpc/src/router/task/task.test.ts: Export named dbWs not found
    • apps/desktop/src/renderer/stores/editor-state/editorCoordinator.test.ts: missing electronTRPC global
    • apps/desktop/src/renderer/screens/main/components/WorkspaceView/ContentView/TabsContent/Terminal/hooks/workspaceRun.test.ts: existing assertion failure in preserves the stored run command when updating workspace-run state
    • External worktree detection and import > listExternalWorktrees detects external worktree also fails repo-wide

Summary by cubic

Only show the Activity section on the desktop task detail page when a real creator exists, and remove the comments UI. This avoids a fake actor, simplifies the UI, and removes unused code.

  • Bug Fixes

    • Gate Activity on a real creator; no fallback to assignee or "Someone".
    • Use the creator’s name and avatar in ActivitySection.
  • Refactors

    • Join and select creator in the task query and update the task detail type.
    • Remove the comments block and delete the unused CommentInput and a brittle page source test.

Written for commit 7a8bf8f. Summary will update on new commits.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 27, 2026

📝 Walkthrough

Walkthrough

Deleted the CommentInput component and its barrel export, then refactored the task detail page to use creator user fields instead of assignee fields for the activity section, and removed the comment input rendering entirely.

Changes

Cohort / File(s) Summary
CommentInput component removal
apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/components/CommentInput/CommentInput.tsx, index.ts
Deleted CommentInput component implementation and its barrel export.
Task detail page refactoring
apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/page.tsx, page.test.tsx
Updated page to join creator user table, expand TaskDetailRecord type to include creator fields, conditionally render activity section based on creator name, pass creator info to ActivitySection, and remove comment input rendering. Deleted corresponding test file.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 wiggles nose with delight
The comment box has hopped along,
Creator now belongs where it's strong,
With avatar and trimmed name so neat,
The activity section's now quite sweet! ✨

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately summarizes the main changes: simplifying task detail activity section and removing comment-related code.
Description check ✅ Passed The pull request description clearly outlines the objectives and includes validation results, though it lacks full template sections like Type of Change and Testing details.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ 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 and usage tips.

Copy link
Copy Markdown
Contributor

@cubic-dev-ai cubic-dev-ai Bot left a comment

Choose a reason for hiding this comment

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

No issues found across 4 files

Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot left a comment

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 the current code and only fix it if needed.

Inline comments:
In
`@apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/`$taskId/page.tsx:
- Line 126: The variable creatorName currently checks
task?.creator?.name?.trim() but returns the original untrimmed string; change
the assignment for creatorName to use the trimmed value (e.g., compute const
trimmed = task?.creator?.name?.trim(); and set creatorName = trimmed ? trimmed :
null) so downstream avatar/initial logic receives the trimmed name; update the
expression that defines creatorName accordingly (reference: creatorName and
task?.creator?.name).
🪄 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

Run ID: 82a6bb6d-8b92-4493-9635-2357d780c9a7

📥 Commits

Reviewing files that changed from the base of the PR and between 653cb3a and 7a8bf8f.

📒 Files selected for processing (4)
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/components/CommentInput/CommentInput.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/components/CommentInput/index.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/page.test.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/page.tsx
💤 Files with no reviewable changes (3)
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/components/CommentInput/index.ts
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/components/CommentInput/CommentInput.tsx
  • apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/$taskId/page.test.tsx

const handleDelete = () => {
navigate({ to: "/tasks", search: backSearch });
};
const creatorName = task?.creator?.name?.trim() ? task.creator.name : null;
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.

⚠️ Potential issue | 🟡 Minor

Use the trimmed creator name value, not the raw one.

Line 126 validates trim() but still returns the untrimmed name. This can produce whitespace actor names and a blank avatar fallback initial downstream.

💡 Proposed fix
-	const creatorName = task?.creator?.name?.trim() ? task.creator.name : null;
+	const creatorName = task?.creator?.name?.trim() || null;
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const creatorName = task?.creator?.name?.trim() ? task.creator.name : null;
const creatorName = task?.creator?.name?.trim() || null;
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks/`$taskId/page.tsx
at line 126, The variable creatorName currently checks
task?.creator?.name?.trim() but returns the original untrimmed string; change
the assignment for creatorName to use the trimmed value (e.g., compute const
trimmed = task?.creator?.name?.trim(); and set creatorName = trimmed ? trimmed :
null) so downstream avatar/initial logic receives the trimmed name; update the
expression that defines creatorName accordingly (reference: creatorName and
task?.creator?.name).

@saddlepaddle saddlepaddle merged commit e8bb360 into superset-sh:main Mar 29, 2026
7 checks passed
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.

1 participant