Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Disallow user to check NCA / Outputs tabs without mapping data #152

Merged
merged 7 commits into from
Jan 9, 2025

Conversation

js3110
Copy link
Collaborator

@js3110 js3110 commented Jan 3, 2025

Issue

Closes #143

Description

When user has not mapped the data (define column names and accepted) it should not be able to go through other tabs (NCA or Outputs) as it can be confusing for them to see errror messages afterwards. Instead, those tabs should remain disable and perhpaps even show a notification

Definition of Done

  • User cannot use other tabs until data is mapped
  • Once data is mapped, other tabs are enables

@js3110 js3110 linked an issue Jan 3, 2025 that may be closed by this pull request
Copy link
Collaborator

@m-kolomanski m-kolomanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thank you! I have added two nitpicks/suggestions to consider, but the change is fine as is.

inst/shiny/ui.R Outdated Show resolved Hide resolved
inst/shiny/modules/column_mapping.R Outdated Show resolved Hide resolved
Copy link
Collaborator

@Gero1999 Gero1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey good job! I think this solution is clean and simple 👌🏽

In terms of feature I will also add a nitpick request! Could you also include a message in Review Data that until the dataframe is uploaded says something like: "Please, remember to submit your variables mapping in Mapping and Filters"

@js3110 js3110 requested a review from Gero1999 January 7, 2025 12:43
Copy link
Collaborator

@Gero1999 Gero1999 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm good job!

@js3110 js3110 merged commit ff787f9 into main Jan 9, 2025
9 checks passed
@js3110 js3110 deleted the bug/no-data-mapped branch January 9, 2025 13:52
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.

Bug: Disallow user to check NCA / Outputs tabs without mapping data
3 participants