Skip to content

chore(web): use console.error in work item error handlers - #10188

Open
Krish6115 wants to merge 1 commit into
makeplane:previewfrom
Krish6115:chore/web-console-error-in-error-handlers
Open

Krish6115 wants to merge 1 commit into
makeplane:previewfrom
Krish6115:chore/web-console-error-in-error-handlers

Conversation

@Krish6115

@Krish6115 Krish6115 commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Description

Error handlers in the work item detail and intake work item views logged failures with console.log("Error in ..."). Switches those to console.error so they show up as errors in the browser console and in error-level filters. Message text and handling are unchanged.

Type of Change

  • Code refactoring

Test Scenarios

String-level change only; type-check not run locally.

Summary by CodeRabbit

  • Chores
    • Failures during issue and work-item actions are now recorded as errors rather than general log messages. This applies to updates, deletions, archiving, and removals from cycles or modules.
    • Existing notifications and action behavior remain unchanged. There are no changes to the user interface or to how these actions work.

Copilot AI balanced review requested due to automatic review settings November 3, 2026 14:25

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@coderabbitai

coderabbitai Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Walkthrough

Failure handlers for work-item actions now send caught errors to console.error instead of console.log. Existing toast behavior remains unchanged.

Changes: Work-item error logging

Layer / File(s) Summary
Error handler logging
apps/web/components/inbox/content/issue-root.tsx, apps/web/components/issues/issue-detail/root.tsx
The inbox delete handler and issue update, deletion, archive, cycle-removal, and module-removal handlers now log caught errors with console.error. Existing toast handling remains unchanged where specified.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Refactor

Possibly related PRs

Suggested reviewers: sriramveeraghanta

Merge Risk: Minimal · up to f2028

The changes improve error-log classification without changing failure handling or notifications. No merge-blocking issue is identified.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title names the main change: work item error handlers switch from console.log to console.error. The changeset matches this. The title follows a conventional commit format and is specific enough fo…
Description check Passed The description states the change, the affected views, and the reason (errors show as errors in the browser console and in error-level filters). It also states that message text and handling are uncha…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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.
Full details: Title check

Explanation

The title names the main change: work item error handlers switch from console.log to console.error. The changeset matches this. The title follows a conventional commit format and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description states the change, the affected views, and the reason (errors show as errors in the browser console and in error-level filters). It also states that message text and handling are unchanged. The Type of Change section is filled in. The Screenshots, Test Scenarios, and References sections are missing or incomplete. The Test Scenarios section states that type-checking was not run and does not list any test steps.

Resolution

Add the missing References section, or state that no related issues exist. Add a Screenshots and Media entry, or mark it not applicable. In Test Scenarios, state whether the change was tested in the browser, and run or describe a type-check of the change before merge.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 2 files.

Finishing Touches
Generate unit tests (beta)
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

CodeRabbit Verify

  • Run CodeRabbit Verify to test the changes in this pull request.
Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1a4bc738-f37c-4938-bd3d-317e6ca6b2d6
Commits

Reviewing files that changed from the base of the PR and between bc65a78 and f202821.

Files selected for processing: 2
  • apps/web/components/inbox/content/issue-root.tsx
  • apps/web/components/issues/issue-detail/root.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.

@Krish6115

Copy link
Copy Markdown
Contributor Author

Hi @Rahulcheryala, whenever you have some free time, could you please review this PR? It's a small change. Happy to make any adjustments needed. Thanks!

@Krish6115

Copy link
Copy Markdown
Contributor Author

Hi @prateekshourya29, thanks for merging my earlier PRs. Whenever you get a chance, could you take a look at this one too? Happy to make any changes needed.

This branch has not been deployed

No deployments
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