Prettier enhancements: feedback/state & options
@kiraarghy ci sta già lavorando.
Dal 13/1/2020.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
I think it would be useful to have some discussion about the prettier functionality on runpkg. Some points to start with:
- Button press feedback
- Undo option
- Basic config options
1: button press feedback and state
Currently it can be hard to tell that any formatting has taken place. Although this function (prettier.format) isn't async, I think some state handling (including start & finish state) in the UI would be helpful. In my mind, possible states to alert the user to are:
- start format
- finish/successful format
- finished format with no change (
prettier.format(fileData.code, opts) === fileData.code) - error
- format reverted (see point number 2)
These states could be signified with text, icons and/or toast messages. Preferences? I would lean towards (accessibly) icons possibly enhanced with toast messages.
2: undo format
I think it would be useful to be able to revert the code formatting without having to refresh the page. I'm happy to implement it in a PR. Any objections? Any opinions on how to represent this has successfully run in the context of point number 1 (above)?
3: basic config
This is a trickier and more subjective feature IMO: one one hand, prettier is supposed to be opinionated, but - on the other - it does provide certain config options (quotes, semi...) for a reason. Do we want to allow users to select basic config options? E.g. currently we use the default options which include singleQuote: false which means that something like lodash-es/add only changes on format due to single -> double quotes rather than any major formatting issues.
- Lingua principale
- JavaScript
- Stelle
- 307
- Fork
- 9
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di FormidableLabs/runpkg
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
FormidableLabs/runpkg#209 · 4 commenti ·
-
bug improvement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 28/100
FormidableLabs/runpkg#183 ·
-
improvement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
FormidableLabs/runpkg#181 ·
-
"Contributing" docForse di nuovo libera @kiraarghy l’ha presa 2471 giorni fa e non c’è nessuna pull request aperta. Aperta
FormidableLabs/runpkg#174 · 1 commento · 2 assegnatari ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
FormidableLabs/runpkg#172 · 1 commento ·
Tutte le issue di FormidableLabs/runpkg
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100
SACGF/variantgrid#2341 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Unsampled pageload span is profiled when profileLifecycle is 'trace' (browser UI profiling)Forse già presa @Jxxunnn l’ha presa oggi. ApertaBrowser Waiting for: Product Owner
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
getsentry/sentry-javascript#25497 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[External Plugin]: rostrumApertaexternal-plugin needs-review:HIGH ready-for-review
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
github/awesome-copilot#5162 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno