Skip to content

Update last_active_at when steps are created, edited, toggled, or del…#2946

Open
Klar wants to merge 3 commits into
basecamp:mainfrom
Klar:main
Open

Update last_active_at when steps are created, edited, toggled, or del…#2946
Klar wants to merge 3 commits into
basecamp:mainfrom
Klar:main

Conversation

@Klar

@Klar Klar commented Jun 21, 2026

Copy link
Copy Markdown

Fixes #2876

Step (checkbox) interactions — creating, editing text, checking/unchecking,
and deleting — now update the card's last_active_at timestamp via
card.touch_last_active_at. Previously only updated_at changed (via
belongs_to :card, touch: true), which meant the entropy/auto-postponement
system was blind to checkbox activity.

Copilot AI review requested due to automatic review settings June 21, 2026 11:36

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

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.

Pull request overview

This PR ensures Step (checkbox) create/update/toggle/destroy activity updates a Card’s last_active_at via card.touch_last_active_at, so the entropy/auto-postponement system recognizes checkbox interactions as meaningful card activity.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Add Step model callbacks to touch the parent card’s activity timestamp on save and destroy.
  • Extend the Steps controller integration tests to assert last_active_at changes for Turbo Stream step interactions.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
test/controllers/cards/steps_controller_test.rb Adds assertions that step interactions update card.last_active_at.
app/models/step.rb Switches from touch: true to explicit card.touch_last_active_at on save/destroy.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/models/step.rb Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 21, 2026 11:54

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread app/models/step.rb Outdated
Comment thread test/controllers/cards/steps_controller_test.rb
2-space indentation style

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 21, 2026 14:08

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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

Comment thread test/controllers/cards/steps_controller_test.rb
Comment thread test/controllers/cards/steps_controller_test.rb
Comment thread test/controllers/cards/steps_controller_test.rb
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