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

[ENG-5879] Hide Categories Section for Draft Registrations #2360

Merged

Conversation

uditijmehta
Copy link
Contributor

  • Ticket: [https://openscience.atlassian.net/browse/ENG-5879]
  • Feature flag: n/a

Purpose

Hide Categories Section for Draft Registrations

Summary of Changes

  • Added hideCategories Flag
  • Added Conditional Category Display for draft registrations

@coveralls
Copy link

coveralls commented Oct 21, 2024

Pull Request Test Coverage Report for Build 11447201243

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.002%) to 63.576%

Totals Coverage Status
Change from base Build 11370539620: 0.002%
Covered Lines: 6461
Relevant Lines: 9798

💛 - Coveralls

Copy link
Contributor

@brianjgeiger brianjgeiger left a comment

Choose a reason for hiding this comment

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

One thing on the node cards for registrations.

Comment on lines 83 to 85
{{#if @node.category}}
{{node-card/node-icon [email protected]}}
{{/if}}
Copy link
Contributor

Choose a reason for hiding this comment

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

This doesn't look right. Don't we want to hide the category always for registrations, not just when there's no category set?

@@ -80,7 +80,6 @@
{{/if}}
{{/if}}

{{node-card/node-icon [email protected]}}
Copy link
Contributor

Choose a reason for hiding this comment

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

This will remove it from regular nodes whiiiiich we may not be using anymore but I can't recall for sure. Maybe check @node.is_registration or similar and hide it if it's a registration.

@brianjgeiger brianjgeiger merged commit c3aa8c2 into CenterForOpenScience:develop Oct 21, 2024
9 checks passed
cslzchen added a commit that referenced this pull request Oct 30, 2024
[ENG-5879] Hide Categories Section for Draft Registrations #2360
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.

3 participants