Bug: newly added empty files still show a `-0` diff count
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 38/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- typescript
- Ambito
- frontend
Direzione di ricerca
Start with FileDiff#render and the output of parsePatchFiles, using either empty-file patch from the reproduction. Check how the diff count and empty diff body are rendered; the issue also notes deleted empty files as a possible counterpart. Done means the irrelevant -0 is handled and the empty-file diff display is addressed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Prerequisites
- I have searched for duplicate or closed issues
- I have read the contributing guidelines
Describe the issue
A very "aesthetic" "issue" that could also be a feature request, but fits better in the bug category.
Parsing works fine with empty files added in a PR, but:
- the
-0is present despite not being relevant at all. the+0is arguably a bit weird too, but still better than what GitHub does: showing "whitespace-only change" with no diff count. - no diff is shown at all. this is not a real bug as there is actually nothing to show, but having a diff header with nothing inside it looks off. maybe adding a
File added with no contentor similar would help?
Showcase:
[!NOTE]
The counterpart fix(es) could maybe be applied to deleted empty files too
Reproduction
Use FileDiff#render on the output of parsePatchFiles with this data:
--- /dev/null
+++ whatever.js
OR
diff --git a/whatever.js b/whatever.js
new file mode 100644
index 000000000000..e69de29bb2d1
What browser(s) are you seeing the problem on?
Chrome
What version of @pierre/diffs are you using?
1.0.11
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 226
- Merge medio
- 1g 6h
- PR unite (30g)
- 42
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
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 pierrecomputer/pierre
-
Bug: Missing aria fields in the search inputForse già presa @saurav-shakya l’ha presa oggi. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
pierrecomputer/pierre#1242 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Row decorations and git status aren't part of a row's accessible nameForse già presa Una pull request collegata a questa issue è aperta o già unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pierrecomputer/pierre#1187 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
pierrecomputer/pierre#1150 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 30/100
pierrecomputer/pierre#1258 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Bug: Text selection and copy break across the virtualization boundaryForse già presa @Son-Of-Zeus l’ha presa oggi. Apertabug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
pierrecomputer/pierre#1255 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pierrecomputer/pierre
Issue simili
-
[Text] Add Reading Time & Word Count Estimator for Reflection Notes in src/lib/text/reading-time.tsApertaarea:core beginner-friendly community contributions-welcome difficulty:easy enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
[fullsend] E2E: scorecard — filecheck GitLab entity metrics unavailable due to initialDelay timingApertae2e-failure ready-to-code
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
redhat-developer/rhdh-plugin-export-overlays#4698 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
devswha/herdr-web-ui#2884 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
b:minor bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
software-mansion/argent#1771 ·
I maintainer di solito rispondono entro 1 giorno