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

@uditijmehta uditijmehta force-pushed the eng-5879-hide-categories branch from 337a530 to 2376b42 Compare October 21, 2024 15:00
@uditijmehta uditijmehta force-pushed the eng-5879-hide-categories branch from 2376b42 to b166dc6 Compare October 21, 2024 18:05
@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 category=@node.category}}
{{/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?

@uditijmehta uditijmehta force-pushed the eng-5879-hide-categories branch from a43bf82 to a0b202a Compare October 21, 2024 19:22
@@ -80,7 +80,6 @@
{{/if}}
{{/if}}

{{node-card/node-icon category=@node.category}}
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.

@uditijmehta uditijmehta force-pushed the eng-5879-hide-categories branch from a0b202a to da8f229 Compare October 21, 2024 19:26
@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