Skip to content

Conversation

lukaw3d
Copy link
Member

@lukaw3d lukaw3d commented Jul 28, 2025

Fixes "Warning: Each child in a list should have a unique "key" prop." and fixes displayed duplicates inside filters:
image

Fixes "Warning: Each child in a list should have a unique "key" prop."
and fixes displayed duplicates inside filters:
- Apache License 2.0 (2)
- Apache License 2.0 (23)
- CC-PDDC (1)
- MIT License (1)
- MIT License (3)
@lukaw3d lukaw3d requested review from matevz and ZigaMr July 28, 2025 18:51
Copy link

netlify bot commented Jul 28, 2025

Deploy Preview for oasisprotocol-playground ready!

Name Link
🔨 Latest commit 164aeed
🔍 Latest deploy log https://app.netlify.com/projects/oasisprotocol-playground/deploys/6887c6a4c3757d0008768bb1
😎 Deploy Preview https://deploy-preview-136--oasisprotocol-playground.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment on lines +13 to +20
const formatLicense = (license) => {
if (!license) return 'Unspecified';
if (license.toLowerCase() === 'mit') return 'MIT License';
if (license.toLowerCase() === 'apache-2.0') return 'Apache License 2.0';
if (license.toLowerCase() === 'gpl-3.0') return 'GNU General Public License v3.0';
if (license.toLowerCase() === 'bsd-3-clause') return 'BSD 3-Clause License';
return license;
};
Copy link
Member Author

Choose a reason for hiding this comment

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

Instead of these workarounds can we have good data instead?

Copy link
Member

Choose a reason for hiding this comment

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

Data is fed directly from github.com API and SPDX license IDs are defined here https://spdx.org/licenses/ So the idea is to have the license IDs in projects.json and the UI around it then formats it accordingly. Or was there something else you had in mind?

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.

2 participants