aau-giraf / weekplanner

Main repository of the Weekplanner tablet application
GNU General Public License v3.0
15 stars 3 forks source link

Feature/948 #961

Closed Thuyhaile closed 12 months ago

Thuyhaile commented 1 year ago

Description

When the user selects a specific activity in the 'Ugeplan' user interface, it leads them to the 'Aktivitet' user interface, where there are two buttons: 'Afslut' and 'Aflys' (Figure a). If the user presses 'Afslut,' the 'Aflys' button becomes disabled (Figure b). Conversely, if the user presses 'Aflys,' the 'Afslut' button will be disabled (Figure c). image

The problem is that the buttons' states aren't updated immediately. The Users have to reload the 'Aktivitet' user interface to see the changes take effect. For example, when the user selects the 'Afslut' button, the 'Aflys' button's state doesn't change right away (Figure d). To observe the correct state as shown in Figure e, the user needs to return to the 'Ugeplan' screen and then select the activity again. After reloading the 'Aktivitet' UI, if the user presses 'Fortryd' (as in Figure e), the 'Aflys' button still displays the incorrect state (Figure f) instead of the expected state (Figure g). image

Fixes #\<948> Possible suggested solution: When one button is pressed, the other gray button becomes hidden, and if the user presses 'Fortryd,' both buttons reappear in their normal state (as shown in the figure below). This eliminates the need to reload the 'Aktivitet' user interface every time, ensuring that both buttons are always in a usable state. image

Type of change

How Has This Been Tested?

Android Platform: emulation is carried out using Android Studio on Windows computer iOS Platform: emulation is carried out using Xcode on MacBook

Development Configuration

Checklist: