-
-
Notifications
You must be signed in to change notification settings - Fork 629
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
Added github comment icon workflow #946
Added github comment icon workflow #946
Conversation
This looks pretty neat, although useful as it is, I think we'll still have to do some validations manually. |
@jguddas Nice work, looks really cool! I noticed that the builds are failing for site and the github action. Can you check what is going on? |
@jguddas: do you think it could be possible to different shapes for points within a path and endpoints of paths? |
Great idea. There are 3 things:
I would like to highlight move commands by adding the big start/end circle. I don't know how to best highlight the path elements.
|
Nice, the one on the right seems much more legible to me apart from colours that are a bit too close in hue.
|
@ericfennis I don't have access to the build, but I can tell you why the action is failing. The action fails due to being run from a fork, I will see if I can find a quick fix. |
It's due to being a circle element instead of a path, what do you think of only showing control points for path elements?
Good idea, I think it would definitely be nice to only show the start/end node for open paths. |
|
That should be everything. |
485923d
to
99a4b82
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jguddas Nice this looks event better!
Nice work. Good to go for me
@jguddas: Really nice, I love the latest changes (dark mode support + extra 1px outline to check for gaps). :) |
@jguddas: I think this is almost good to go, but I still strongly believe CSS classes should be used to style the paths, since there are a looooot of repeating attribute values, and dark mode support should be handled not by using a |
It would be nice to not have to use the picture tag, but I'm not sure how I would go about cleanly integrating style tags. What about getting rid of the duplications by using groups like this? - <p d="…" strokeWidth={5} />
- <p d="…" strokeWidth={5} />
+ <g id="grid" strokeWidth={5} >
+ <p d="…" />
+ <p d="…" />
+ </g> |
Yeah, grouping is also a good idea, although I'd probably still go for BEM style CSS classes instead of using the |
@jguddas: any chance of also adding a curvature preview in v2.0? 😅🤪
|
An edit page that makes it easy for people to contribute by showing them errors and a preview of their icon would be super nice IMO. |
Okay @karsa-mistmere, @ericfennis lets merge this! |
This automatically creates and updates a comment in PRs that shows a preview of all icons that have been changed or updated.
Example
Performance
The action itself is quick due to not running any calculations or even starting up Node.
The API route is cashed and takes less than 200ms to return the rendered svg.
Permission problems
This workflow only runs for PRs that are created from inside this repository.
https://securitylab.github.com/research/github-actions-preventing-pwn-requests/