Skip to content

Commit c45fcd6

Browse files
committed
chore: harden repo governance and fiscal validation
1 parent 3a6b3c4 commit c45fcd6

32 files changed

Lines changed: 1843 additions & 1830 deletions
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Bug report
2+
description: Segnala un comportamento riproducibile dell'app.
3+
title: '[Bug]: '
4+
labels: ['bug', 'triage']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Il repository segue un workflow maintainer-only. Le issue pubbliche sono usate solo per triage strutturato, non come canale di supporto.
10+
- type: textarea
11+
id: summary
12+
attributes:
13+
label: Sintesi
14+
description: Descrivi il problema in modo concreto.
15+
placeholder: 'Esempio: il calcolo del netto mostra...'
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: steps
20+
attributes:
21+
label: Passaggi per riprodurre
22+
description: Elenca i passaggi minimi.
23+
placeholder: |
24+
1. Apri ...
25+
2. Inserisci ...
26+
3. Osserva ...
27+
validations:
28+
required: true
29+
- type: textarea
30+
id: expected
31+
attributes:
32+
label: Comportamento atteso
33+
description: Cosa ti aspettavi succedesse?
34+
validations:
35+
required: true
36+
- type: textarea
37+
id: actual
38+
attributes:
39+
label: Comportamento effettivo
40+
description: Cosa succede invece?
41+
validations:
42+
required: true
43+
- type: input
44+
id: browser
45+
attributes:
46+
label: Browser e versione
47+
placeholder: 'Chrome 147, Edge 147, Firefox ...'
48+
- type: textarea
49+
id: context
50+
attributes:
51+
label: Contesto aggiuntivo
52+
description: Screenshot, log, dati inseriti o note utili. Non includere dati personali reali.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
blank_issues_enabled: false
2+
contact_links:
3+
- name: Security report
4+
url: mailto:info@mikesoft.it?subject=EasyPIVA%20Security%20Report
5+
about: Segnala vulnerabilità o problemi privacy seguendo SECURITY.md.
6+
- name: Contatto operativo
7+
url: mailto:info@mikesoft.it?subject=EasyPIVA%20Repository
8+
about: Usa questo canale per comunicazioni operative non legate alla sicurezza.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Fiscal assumption update
2+
description: Segnala una possibile modifica normativa o assunzione fiscale da verificare.
3+
title: '[Fiscal]: '
4+
labels: ['fiscal-assumption', 'triage']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
EasyPIVA fornisce stime indicative. Questa issue serve a raccogliere riferimenti verificabili, non a fornire consulenza fiscale.
10+
- type: textarea
11+
id: assumption
12+
attributes:
13+
label: Assunzione da verificare
14+
description: Indica soglia, aliquota, scadenza o formula interessata.
15+
placeholder: 'Esempio: aliquota Gestione Separata 2026...'
16+
validations:
17+
required: true
18+
- type: textarea
19+
id: source
20+
attributes:
21+
label: Fonte primaria
22+
description: Link a fonte istituzionale o documento ufficiale.
23+
placeholder: 'Agenzia Entrate, INPS, Gazzetta Ufficiale...'
24+
validations:
25+
required: true
26+
- type: textarea
27+
id: impact
28+
attributes:
29+
label: Impatto atteso
30+
description: Quali pagine, calcoli o documenti dovrebbero cambiare?
31+
validations:
32+
required: true
33+
- type: checkboxes
34+
id: checks
35+
attributes:
36+
label: Conferme
37+
options:
38+
- label: Ho incluso una fonte primaria o istituzionale.
39+
required: true
40+
- label: Capisco che EasyPIVA non fornisce consulenza fiscale.
41+
required: true

.github/dependabot.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
day: monday
8+
time: '08:00'
9+
timezone: Europe/Rome
10+
open-pull-requests-limit: 5
11+
groups:
12+
npm-production-minor-patch:
13+
dependency-type: production
14+
update-types:
15+
- minor
16+
- patch
17+
npm-development-minor-patch:
18+
dependency-type: development
19+
update-types:
20+
- minor
21+
- patch
22+
23+
- package-ecosystem: github-actions
24+
directory: /
25+
schedule:
26+
interval: weekly
27+
day: monday
28+
time: '08:30'
29+
timezone: Europe/Rome
30+
open-pull-requests-limit: 5

.github/pull_request_template.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
## Scopo
2+
3+
Descrivi in poche righe cosa cambia e perché.
4+
5+
## Tipo di modifica
6+
7+
- [ ] Bug fix
8+
- [ ] Miglioramento documentazione/repository
9+
- [ ] Aggiornamento dipendenze
10+
- [ ] Modifica UI
11+
- [ ] Modifica logica fiscale
12+
- [ ] Modifica privacy/storage
13+
14+
## Checklist maintainer
15+
16+
- [ ] Ho mantenuto la modifica piccola e focalizzata.
17+
- [ ] Ho aggiornato test unitari, UI o E2E dove necessario.
18+
- [ ] Ho eseguito `npm run ci`.
19+
- [ ] Ho aggiornato `README.md`, `CHANGELOG.md` o `docs/` se il comportamento pubblico cambia.
20+
- [ ] Se cambia logica fiscale, ho aggiornato anche ADR e copy pubblica.
21+
- [ ] Se cambia storage/privacy, ho aggiornato documentazione privacy, architettura e pagina informativa.
22+
23+
## Verifica
24+
25+
Comandi eseguiti:
26+
27+
```bash
28+
npm run ci
29+
```
30+
31+
Risultato:
32+
33+
```text
34+
Inserire output sintetico, ad esempio: 120 Vitest passati, 5 Playwright passati, build ok.
35+
```

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ on:
55
branches: [main]
66
pull_request:
77

8+
permissions:
9+
contents: read
10+
11+
concurrency:
12+
group: ci-${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
815
jobs:
916
build:
1017
runs-on: ubuntu-latest
@@ -22,5 +29,8 @@ jobs:
2229
- name: Install dependencies
2330
run: npm ci
2431

32+
- name: Install Playwright browsers
33+
run: npx playwright install --with-deps chromium
34+
2535
- name: CI
2636
run: npm run ci
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Dependency Review
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
pull-requests: read
9+
10+
concurrency:
11+
group: dependency-review-${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
dependency-review:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Dependency review
22+
uses: actions/dependency-review-action@v4

0 commit comments

Comments
 (0)