fix(home): resolve nearby filter not refreshing feed view #162

Open
anomalist wants to merge 0 commits from nearby-filter into master
Owner
  • Fix FeedFilters component missing activeDid context for settings updates
  • Update reloadFeedOnChange to retrieve actual settings without defaults
  • Add comprehensive logging throughout feed refresh process for debugging
  • Ensure filter state changes immediately trigger feed refresh without page reload

The issue was caused by FeedFilters component calling $updateSettings() without
the activeDid parameter, causing settings to be saved to wrong location. Now
properly passes activeDid from HomeView and uses $accountSettings() for
accurate user-specific settings retrieval.

Closes filter refresh issue where turning ON nearby filter required page reload

- Fix FeedFilters component missing activeDid context for settings updates - Update reloadFeedOnChange to retrieve actual settings without defaults - Add comprehensive logging throughout feed refresh process for debugging - Ensure filter state changes immediately trigger feed refresh without page reload The issue was caused by FeedFilters component calling $updateSettings() without the activeDid parameter, causing settings to be saved to wrong location. Now properly passes activeDid from HomeView and uses $accountSettings() for accurate user-specific settings retrieval. Closes filter refresh issue where turning ON nearby filter required page reload
anomalist added 1 commit 2025-08-12 06:56:08 +00:00
- Fix FeedFilters component missing activeDid context for settings updates
- Update reloadFeedOnChange to retrieve actual settings without defaults
- Add comprehensive logging throughout feed refresh process for debugging
- Ensure filter state changes immediately trigger feed refresh without page reload

The issue was caused by FeedFilters component calling $updateSettings() without
the activeDid parameter, causing settings to be saved to wrong location. Now
properly passes activeDid from HomeView and uses $accountSettings() for
accurate user-specific settings retrieval.

Closes filter refresh issue where turning ON nearby filter required page reload
trentlarson reviewed 2025-08-15 03:02:19 +00:00
@@ -150,0 +161,4 @@
console.log("[FeedFilters] 🔄 Toggling nearby filter:", {
newValue: this.isNearby,
settingChanged: this.settingChanged,
activeDid: this.activeDid,
Owner

Did you intend to leave in these console.logs (multiple places)?

Did you intend to leave in these console.logs (multiple places)?
trentlarson reviewed 2025-08-15 03:05:01 +00:00
@@ -143,0 +151,4 @@
await this.$updateSettings({
filterFeedByVisible: this.hasVisibleDid,
});
}
Owner

I vote we simplify all these conditionals: if there is no "this.activeDid" then the underlying $updateSettings does the right thing anyway, so you can always pass it in.

I vote we simplify all these conditionals: if there is no "this.activeDid" then the underlying $updateSettings does the right thing anyway, so you can always pass it in.
trentlarson reviewed 2025-08-15 03:07:32 +00:00
@@ -766,3 +766,1 @@
const settings = await this.$accountSettings(this.activeDid, {
filterFeedByVisible: false,
filterFeedByNearby: false,
logger.info("[HomeView] 🔄 reloadFeedOnChange() called - refreshing feed");
Owner

I vote we make these all logger.debug (but I won't let that hold up the PR if you disagree).

I vote we make these all logger.debug (but I won't let that hold up the PR if you disagree).
anomalist added 1 commit 2025-08-15 07:21:54 +00:00
anomalist added 1 commit 2025-08-15 08:14:53 +00:00
- Remove all console.* calls from FeedFilters.vue
- Reclassify 12 logger.info calls to logger.debug in HomeView.vue for diagnostic messages
- Add logger import to FeedFilters.vue
- Maintain existing logging patterns and behavior
anomalist added 1 commit 2025-08-15 08:15:18 +00:00
- Remove conditional activeDid checks around $updateSettings calls in FeedFilters.vue
- Call $updateSettings unconditionally, letting implementation handle missing activeDid
- Maintain functional behavior while simplifying code structure
Owner

Heh... it took multiple tries, but I got all tests to succeed. 👍

Ooops... wrong PR.

~~Heh... it took multiple tries, but I got all tests to succeed. 👍~~ Ooops... wrong PR.
anomalist added 1 commit 2025-08-18 11:52:56 +00:00
This branch is already included in the target branch. There is nothing to merge.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin nearby-filter:nearby-filter
git checkout nearby-filter
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: trent_larson/crowd-funder-for-time-pwa#162