JACoB PR for Issue Add "Run Build" Option to Todo Details Page in JACoB #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary:
Description
Enhance the Todo Details page in JACoB by allowing users to opt-in to the build process. This feature provides users with the flexibility to choose whether to run the build when starting work on a task.
Features to Implement
Add "Run Build" Checkbox
Update Issue Body on Starting Work
--skip-buildto the issue body.UI/UX Considerations
Conditional Display
Acceptance Criteria
--skip-buildto the issue body correctly.Additional Information
TodoDetailscomponent in the repository for context on existing functionality.@jacob-ai-bot
Plan:
Step 1: Edit
/src/app/dashboard/[org]/[repo]/todos/components/TodoDetails.tsxTask: Enhance TodoDetails component with 'Run Build' option
Instructions:
In
/src/app/dashboard/[org]/[repo]/todos/components/TodoDetails.tsx:Add a checkbox labeled 'Run Build' next to the 'Start Work' button:
useStatefrom React to manage the checkbox state.const [runBuild, setRunBuild] = useState(false);with the default valuefalse(unchecked).selectedTodo.status !== TodoStatus.IN_PROGRESS.runBuildstate on change.Modify the
handleStartWorkfunction to incorporate the checkbox state:runBuildstate.runBuildisfalse(checkbox is unchecked), append the flag--skip-buildwith a preceding space to theupdatedBodyvariable.runBuildistrue(checkbox is checked), leaveupdatedBodyunmodified.Ensure Design Consistency:
Exit Criteria:
• The 'Run Build' checkbox is present next to the 'Start Work' button when the issue status is not 'In Progress', and it is unchecked by default.
• The checkbox is hidden when the issue status is 'In Progress'.
• The checkbox visually matches the existing styling and is responsive across different screen sizes.
• Clicking 'Start Work' with the checkbox unchecked appends
--skip-buildto the issue body.• Clicking 'Start Work' with the checkbox checked leaves the issue body unmodified.
• All functionality works correctly without introducing any layout issues or breaking existing features.