Skip to content

fix(task-detail): always show AI estimate trigger in task sidebar#205

Merged
parth0025 merged 1 commit into
stagingfrom
fix/ai-estimate-button-visibility
Jun 4, 2026
Merged

fix(task-detail): always show AI estimate trigger in task sidebar#205
parth0025 merged 1 commit into
stagingfrom
fix/ai-estimate-button-visibility

Conversation

@parth0025

@parth0025 parth0025 commented Jun 4, 2026

Copy link
Copy Markdown
Collaborator

What

Removes the per-user edit-permission gate on the manual "Generate estimate using AI" button in the task detail sidebar (the AI icon next to the Estimated field).

Why

The button was gated on checkPermission('task.task_estimated_hours') === true (edit permission). Users who could see the estimate row but lacked edit permission never saw the button. It is now shown whenever the Estimated row is visible.

Change

  • frontend/src/components/organisms/TaskDetailRightSide/TaskDetailRightSide.vue — remove the v-if edit-permission gate on the AI estimate trigger button (and update the stale explanatory comment).

Single-file, frontend-only change.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Improvements
    • Enhanced accessibility of the AI estimate feature by refining permission requirements for task estimation.

Remove the per-user edit-permission gate (task_estimated_hours === true)
that hid the manual "Generate estimate using AI" button from users who can
view the estimate but not edit it. The button is now shown whenever the
Estimated row is visible.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: f737d166-2614-4b5c-aa94-26f1cd83b23c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • ✅ Review completed - (🔄 Check again to review again)
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ai-estimate-button-visibility

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

@parth0025 parth0025 self-assigned this Jun 4, 2026
@parth0025 parth0025 merged commit 272b27b into staging Jun 4, 2026
1 of 2 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