Skip to content

UI bug fixes - #60

Open
iamrajeshk wants to merge 3 commits into
aviv-dev-latestfrom
ui-bug-fixes
Open

iamrajeshk wants to merge 3 commits into
aviv-dev-latestfrom
ui-bug-fixes

Conversation

@iamrajeshk

Copy link
Copy Markdown
Collaborator

This pull request improves the visibility logic for the "Show Quest Forms" action in the user profile screen by ensuring it only appears when relevant quest forms are available (i.e., after a workspace is loaded). It also adds tests for this behavior and makes a minor UI improvement in the workspace activity.

Quest Forms Action Visibility Logic:

  • Added a new function showQuestFormsActionOrNull in UserActivity.kt to conditionally show the "Show Quest Forms" action only when the QuestTypeRegistry is not empty, reflecting the loaded state of a workspace.
  • Updated the UserProfileScreen composable and its usage to accept a nullable onClickShowQuestForms callback, hiding the entry when there are no quest forms to show. [1] [2] [3]

Testing:

  • Added a new unit test file ShowQuestFormsActionTest.kt to verify that the "Show Quest Forms" action is shown or hidden appropriately based on the state of the QuestTypeRegistry.

UI Improvements:

  • Updated the workspace location prompt text color to use MaterialTheme.colorScheme.onSurfaceVariant for better visual consistency. [1] [2]

…nd MainActivity; implement cache clearing for quest types
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant