8000 UX Use add-file icon for adding files instead of add by ChristopherHX · Pull Request #160 · SanjulaGanepola/github-local-actions · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

UX Use add-file icon for adding files instead of add #160

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

Merged

Conversation

ChristopherHX
Copy link
Contributor

I'm not a UX expert, but this confused me a bit

✍ Changes

Don't require to hover the + icon to realize this creates a file and instead of allowing to add an entry
image

Free the place to add a new $(add) that adds custom var/secret names.

📋 Checklist

  • I tested my changes
  • I updated relevant documentation
  • I added myself to the contributors' list

* free the place to add a new `$(add)` that adds custom var/secret names
@ChristopherHX
Copy link
Contributor Author

The doc screenshots icons might be required to be altered, but I would hold eventually for adding add back to create an item?

What do you think?

@SanjulaGanepola
Copy link
Owner

The doc screenshots icons might be required to be altered, but I would hold eventually for adding add back to create an item?

Yes the doc screenshots will need to be updated, but I can take a look at doing that after I make a couple more updates to a few things. As for adding a + button to add items, when initially designing this view I decided not to do this as I think it makes sense that only stuff parsed from the workflow file should appear here. Thus, there should not be any reason to manually add an item.

@SanjulaGanepola SanjulaGanepola merged commit 83c186c into SanjulaGanepola:main Feb 9, 2025
1 check passed
@ChristopherHX
Copy link
Contributor Author

Thus, there should not be any reason to manually add an item.

if your detection could would be bullet proof maybe yes.

GitHub has a js lib on npm to parse workflows and do it better

Just one single example

${{ format('text: {0}', vars.test) }}

There are billions

@ChristopherHX ChristopherHX deleted the ux-use-add-file-icon branch February 9, 2025 17:13
@ChristopherHX
Copy link
Contributor Author

e.g.

runs-on: ${{ matrix.os }}

How would you add the possible runners?

It's complex, yes actrc is always possible

@SanjulaGanepola
Copy link
Owner
SanjulaGanepola commented Feb 9, 2025

if your detection could would be bullet proof maybe yes.

Yes, the simple regex I have definitely needs improvements to better extract vars, secrets, etc. I already know of two issues with the current regex (#66, #58). I am hoping tho to better improve this parsing rather than having to rely on the user to manually add items.

GitHub has a js lib on npm to parse workflows and do it better

Can you share what the library is for this? Can it be used to easily extract out the vars, secrets, inputs, etc?

How would you add the possible runners?

For matrices, I agree the support is not perfect right now. I am even thinking if it would be a good idea to add a Matrix heading to the Settings view. What do you think about this? At the moment though, users should be able to add them using the Options heading, but I did just notice that the matrix option for some reason is not included in our hardcoded list of options in the extension which should be fixed.

@ChristopherHX
Copy link
Contributor Author

Can you share what the library is for this? Can it be used to easily extract out the vars, secrets, inputs, etc?

Yes should help for all expression named values

Those packages are somewhat weird if it comes to imports, e.g. a bundler is required or they throw weird stuff as node doesn't accept them as they are published.

At the moment though, users should be able to add them using the Options

Didn't check this

@SanjulaGanepola
Copy link
Owner
7A54 SanjulaGanepola commented Feb 9, 2025

Yes should help for all expression named values

Thanks for the suggestions. Opened #163 to track looking into this

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
0