CareTogether / CareTogetherCMS

An open-source case management system (CMS) for nonprofits connecting families to caring communities.
https://caretogether.io
GNU Affero General Public License v3.0
16 stars 6 forks source link

The latest referral on a family is not always selected when opening the family screen #792

Open LarsKemmann opened 2 weeks ago

LarsKemmann commented 2 weeks ago

The behavior that the family screen should have is to automatically select the radio button for the most recent referral (either the most recent open referral (in rare edge cases there could be more than one open referral, but there should only ever be at most one) or, if there is no open referral, the most recent referral).

I saw a situation today where a user opened a family screen with one referral (I don't remember if it was closed or open) and the referral's radio button wasn't selected -- and as a result none of the referral's data, arrangements, etc. showed up.

I know this design will change with the V2 Family Screen, but for now a fix is needed for this. I think the tricky part may be finding a way to reproduce this consistently in order to actually fix it, but I'm sure it has something to do with the referral selection state.

@Rabi94 I think this would be a good one for you to work on (@PabloDinella FYI, you might need to work with Rabi on reproducing this).