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: Add material design icons for applications #902

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

juliushaertl
Copy link
Member

@juliushaertl juliushaertl commented Mar 5, 2024

In preparation for #863 and #896

This PR adds a script that automatically extracts material design icons and metadata based on a jq json filter to tables. For now we can just start with the default google ones stripped down without variants.

We cannot use the npm library as the backend needs to serve the image url for the nativation entries. The json metadata file can be used in the frontend to generate a picker component then.

Signed-off-by: Julius Härtl <jus@bitgrid.net>
@juliushaertl juliushaertl added 3. to review Waiting for reviews enhancement New feature or request labels Mar 5, 2024
cp $CLONE_PATH/LICENSE $TARGET_PATH/LICENSE

cat $CLONE_PATH/meta.json |
jq '.[]|select(.author == "Google" and (.name | contains("-") | not))' > $TARGET_PATH/meta.json
Copy link
Member

Choose a reason for hiding this comment

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

Fine for simplicity, but want to point out that some icons are unique while having a dash, for instance cash-100, air-purifier or contactless-payment-circle.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah we can extend the list later on

@blizzz blizzz merged commit f5670be into feat/contexts Mar 5, 2024
36 checks passed
@blizzz blizzz deleted the feat/applications-material-icons branch March 5, 2024 11:55
@enjeck
Copy link
Contributor

enjeck commented Mar 6, 2024

Part of: #895

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants