Fix #76: Remove invisible involvement state to prevent rooms from #76 #94
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.
Problem
When clicking the ⭐ icon to unstar a room from the room view, it would incorrectly remove the room from both "My Rooms" AND
"All Rooms". This was caused by a legacy "hide rooms" feature from Campfire that used an 'invisible' involvement state.
Solution
Removed the 'invisible' state from the involvement cycling for shared rooms, making both sidebar and room view use the same
2-state cycle:
mentions↔everythingChanges Made
Code Changes
app/helpers/rooms/involvements_helper.rb- Removedinvisiblefrom involvement cyclingapp/controllers/rooms/involvements_controller.rb- Fixed controller logic that was broadcasting room removal fromsidebar
app/models/rooms/thread.rb- Updated default involvement frominvisibletomentionsapp/assets/images/notification-bell-invisible.svg- Deleted unused iconapp/assets/stylesheets/application/base.css- Removed.membership-item:has(.btn.invisible)CSSapp/assets/stylesheets/application/buttons.css- Removed all.btn.invisibleCSS rulesData Migration
db/migrate/20251106190649_convert_invisible_memberships_to_mentions.rb- Converts all existinginvisiblememberships to
mentionsTest Updates
test/controllers/rooms/involvements_controller_test.rb- Updated to test correct behaviortest/models/room/push_test.rb- Removed tests for invisible featureDocumentation
BUGFIX_SUMMARY.md- Comprehensive fix documentationCOMPARISON_WITH_PR78.md- Comparison with PR Fix: Star icon removes rooms from sidebar when toggled in room view #78Result
✅ Rooms now stay in "All Rooms" when unstarred from any location
✅ Rooms never disappear from the sidebar completely
✅ All tests updated and passing
✅ Existing data migrated cleanly
Addresses Issue Comments
This PR implements @dvassallo's suggestions:
Comparison with PR #78
This PR is more comprehensive than #78:
Fixes #76