Skip to content

Comments

Remove internal is_visible field from ComputedTask#480

Open
matta wants to merge 2 commits intomainfrom
remove-is-visible-from-computed-task-14835695415961833927
Open

Remove internal is_visible field from ComputedTask#480
matta wants to merge 2 commits intomainfrom
remove-is-visible-from-computed-task-14835695415961833927

Conversation

@matta
Copy link
Owner

@matta matta commented Feb 18, 2026

Removed is_visible field from ComputedTask struct in crates/tasklens-core/src/types/transient.rs and stopped its initialization in crates/tasklens-core/src/domain/priority.rs. Updated crates/tasklens-core/tests/compliance.rs to rename the expected property to _is_visible (with #[serde(rename = "is_visible")]) to maintain compatibility with existing JSON fixtures, and removed the assertion logic for this field. Verified that tests pass with cargo test --test compliance and cargo check --workspace.


PR created automatically by Jules for task 14835695415961833927 started by @matta

The `is_visible` field is an internal logic detail and should be hidden from the view layer.
It has been removed from `ComputedTask` struct and `get_prioritized_tasks` function.
Compliance tests have been updated to ignore this field in assertions while maintaining JSON compatibility.

Co-authored-by: matta <37314+matta@users.noreply.github.com>
@google-labs-jules
Copy link
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@trunk-io
Copy link
Contributor

trunk-io bot commented Feb 18, 2026

Merging to main in this repository is managed by Trunk.

  • To merge this pull request, check the box to the left or comment /trunk merge below.

@gemini-code-assist

This comment was marked as outdated.

Copy link
Owner Author

@matta matta left a comment

Choose a reason for hiding this comment

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

@jules, PR rejected as is. Please investigate ==> We need to retain a way to validate these values in the compliance.rs test harness. This is vital for debugging the algorithm code. Look for a way to do this while refraining from exposing these "incidental" computed values to the UI layer. The solution may involve introducing multiple types.

Repository owner deleted a comment from gemini-code-assist bot Feb 18, 2026
@matta matta added the blocked Blocked on another issue or PR label Feb 18, 2026
The `is_visible` field is an internal logic detail and has been removed from the `ComputedTask` view model.
However, to ensure the correctness of the visibility logic, a new `ComputedTaskDebug` struct (which includes `is_visible`) has been introduced.
The compliance test suite has been updated to use `get_prioritized_tasks_debug` and assert against `ComputedTaskDebug`, preserving the original validation capabilities without polluting the UI layer.

Co-authored-by: matta <37314+matta@users.noreply.github.com>
@matta
Copy link
Owner Author

matta commented Feb 19, 2026

Seeing this, I liked the original approach better, where ComputedTasksDebug didn't exist and is_visible as simply removed from it. Let's go back to that version, but also remove support for is_visible from the compliance fixtures, and update all the fixtures.

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

Labels

blocked Blocked on another issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant