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

feat: make valid org filter field a dropdown #10524

Conversation

TheSussex
Copy link
Collaborator

@TheSussex TheSussex commented Jul 8, 2024

What

Made the verified status filter on organisation table a dropdown

Screenshot

Screenshot 2024-07-08 at 3 45 10 PM

Related issue(s) and discussion

@TheSussex TheSussex requested a review from a team as a code owner July 8, 2024 15:03
@github-actions github-actions bot added the Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes. label Jul 8, 2024
@TheSussex TheSussex changed the title make valid org filter field a dropdown feat: make valid org filter field a dropdown Jul 8, 2024
@codecov-commenter
Copy link

codecov-commenter commented Jul 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 49.27%. Comparing base (dc04d18) to head (47ab7c2).
Report is 471 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10524      +/-   ##
==========================================
- Coverage   49.54%   49.27%   -0.28%     
==========================================
  Files          67       76       +9     
  Lines       20650    21863    +1213     
  Branches     4980     5235     +255     
==========================================
+ Hits        10231    10772     +541     
- Misses       9131     9769     +638     
- Partials     1288     1322      +34     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@TheSussex TheSussex requested a review from alexgarel July 8, 2024 17:25
Copy link
Member

@alexgarel alexgarel left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM apart a small proposal.

<label for="valid_org">[% lang("verified_status") %]:</label>
<input type="text" id="valid_org" name="valid_org" value="[% valid_org | html %]">
<select id="valid_org" name="valid_org">
<option value="unreviewed" [% IF valid_org == 'unreviewed' %]selected[% END %]>Unreviewed</option>
Copy link
Member

Choose a reason for hiding this comment

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

We should add an option for the case of no selection:

Suggested change
<option value="unreviewed" [% IF valid_org == 'unreviewed' %]selected[% END %]>Unreviewed</option>
<option value="" [% IF !(valid_org) %]selected[% END %]></option>
<option value="unreviewed" [% IF valid_org == 'unreviewed' %]selected[% END %]>Unreviewed</option>

@TheSussex TheSussex merged commit b38e62c into openfoodfacts:main Jul 9, 2024
11 checks passed
stephanegigandet pushed a commit that referenced this pull request Jul 23, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.38.0](v2.37.0...v2.38.0)
(2024-07-23)


### Features

* add new product event types for redis queue
([#10530](#10530))
([339dbc4](339dbc4))
* add product data to org table
([#10534](#10534))
([dce0518](dce0518))
* added a drag and drop zone in pro platform
([#10569](#10569))
([ce60b8f](ce60b8f))
* allow orgs to not have a main contact if imported from an aggregator
([#10531](#10531))
([ead1b0c](ead1b0c))
* launch the exports for all organizations that have the checkbox…
([#10561](#10561))
([c3aa2d1](c3aa2d1))
* Lint spaces in taxonomies
([#10563](#10563))
([c01cf91](c01cf91))
* make valid org filter field a dropdown
([#10524](#10524))
([b38e62c](b38e62c))
* measure and log duration of request and mongodb / off-query que…
([#10557](#10557))
([2cb1b1e](2cb1b1e))
* packaging add Ireland
([#10533](#10533))
([3f3196e](3f3196e)),
closes
[#1572](#1572)


### Bug Fixes

* add product_type to redis events
([#10550](#10550))
([6bd1c0e](6bd1c0e))
* added barcode-svg
([#10242](#10242))
([8da89da](8da89da))
* broken user space on pro platform
([#10541](#10541))
([b6e3017](b6e3017))
* change_main_contact.pl
([#10548](#10548))
([b2f90ea](b2f90ea))
* disable caching on pro platform
([#10516](#10516))
([4ccd714](4ccd714))
* GDSN import from Alnatura
([#10556](#10556))
([6e2673a](6e2673a))
* improve generated data for a .pl script
([#10532](#10532))
([1cab04c](1cab04c))
* pro_moderator_owner not stored for the admin/moderator user through
org/[orgid] facet
([#10560](#10560))
([e0441c6](e0441c6))
* rate limiter log config
([#10535](#10535))
([9a5168d](9a5168d))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Template::Toolkit The templating toolkit used by product opener. The starting point for HTML/JS/CSS fixes.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants