Quansight / Quansight-website

💻 Source code for Quansight Labs website
https://labs.quansight.org
21 stars 50 forks source link

[ENH] - Make categories case insensitive #634

Open gabalafou opened 1 year ago

gabalafou commented 1 year ago

What site is this for?

Quansight Consulting, Quansight Labs

Expected behavior

No response

Actual behavior

This is our current list of categories:

[
  "Access-centered",
  "Array API",
  "Beyond PyData",
  "Community",
  "Developer workflows",
  "Funding",
  "IDEs",
  "Machine Learning",
  "OSS Experience",
  "Packaging",
  "PyData ecosystem"
]

Capitalization is not consistent. For example, why are both words in Machine Learning capitalized by not both words in PyData ecosystem?

However, the categories are case sensitive. So, for example, if a blog author puts "PyData Ecosystem" (instead of "PyData ecosystem") in the metadata of their blog post, it will not get appropriately categorized on the site.

I think that our website should treat the categories as case-insensitive.

How to Reproduce the problem?

No response

Anything else?

No response

gabalafou commented 1 year ago

See for example:

bskinn commented 1 year ago

Makes sense to me.

The drop-down on the Consulting site renders the category names in all-uppercase anyways, and best-practice for the slugs for Consulting is probably all-lowercase.