Closed (fixed)
Project:
Project Browser
Version:
2.1.x-dev
Component:
User experience
Priority:
Normal
Category:
Feature request
Assigned:
Issue tags:
Reporter:
Created:
28 Feb 2025 at 18:23 UTC
Updated:
18 Aug 2025 at 19:09 UTC
Jump to comment: Most recent
Comments
Comment #2
phenaproximaEDIT: Never mind, this idea won't work.
Comment #3
narendrarEarlier all projects were re-rendered on installing project. Adding related issue #3509242: [Svelte] Remove the $updated key
Comment #4
phenaproxima#3 gives me an idea: we could add a new AJAX command that forces all visible instances of Project Browser to reload their data, using the previously known set of query parameters.
Activators which know that dependencies were enabled -- and we could add a trait for activators to easily figure this out -- could return this command, and that would get everything that was installed, to show up as installed.
It's a bit brute force, but I'm not sure there's a cleaner way to do this. I've been puzzling over this one for days and the current (solid) architecture just doesn't allow it to be done using RefreshProjectsCommand, at least not without some very complicated contortions.
Assigning to myself to see if this can work at all.
Comment #5
phenaproximaDiscussed this with @chrisfromredfin in Slack and what we decided is that the smartest way to do this is for the frontend to explicitly request a refresh of all visible projects, since it (and only it) knows what projects are visible to the user.
Basically what I proposed in #3. I'm okay with it.
Comment #7
phenaproximaThe PHP and JavaScript side of this wasn't hard, but this will need an explicit test.
Comment #8
phenaproximaWriting a test was surprisingly quick!
Comment #10
phenaproximaComment #13
chrisfromredfinmerged to 2.1.x
Comment #15
chrisfromredfinbackport complete