Commit graph

2,773 commits

Author SHA1 Message Date
348e22f1c9 build 2026-06-14 20:59:24 +01:00
f750cf75a2 docs: correct CA3 tool from Playwright to Selenium 2026-06-14 18:58:02 +01:00
d454d4a513 An UI test 2026-06-14 18:53:14 +01:00
d0e594c359 synchro with main 2026-06-14 18:30:15 +01:00
26d36dee71 synchro w\ main 2026-06-14 18:26:40 +01:00
debb3231d3 fix(test): resolve ContentRoot path in WebServerFixture
The previous code computed the path as
  Path.Combine(BaseDir, "../../src/Yavsc.Org")
which from `bin/Debug/net10.0/` resolved to a non-existent
`test/yavscTests/src/Yavsc.Org` (two levels up, not four).
Kestrel logged:
  "The WebRootPath was not found: ... /wwwroot. Static files
   may be unavailable."

The fix walks up the directory tree from BaseDir until it
finds a directory that contains `src/Yavsc.Org`. This is
robust against the test runner changing the current working
directory (which it does: it runs from
`test/yavscTests/bin/Debug/net10.0`, not the repo root).

After this fix, UseStaticFiles correctly resolves the
wwwroot, so static assets under `wwwroot/` are served.

Note: this does NOT make the in-memory WebServerFixture
fully functional. Two pre-existing issues remain:
1. _Layout.cshtml references `~/css/site.css` but the
   actual file is now at `~/css/main/site.css` (moved by
   commit 31906a78). The .cshtml was not updated.
2. HomeController.Index() throws NullReferenceException
   on an empty EF Core InMemory database (no Activities
   seeded). UseDeveloperExceptionPage returns a 500 page
   that gets caught and re-rendered as 404 by the test
   client.
Both will be addressed in follow-up commits.

Tested: dotnet test 11/11 green (existing tests use
Services DI, not HTTP). UI tests not added yet (blocked by
the issues above).
2026-06-14 18:04:34 +01:00
b18e60979a docs: add trunk-cleanup challenge brief
Énoncé du défi : aligner main sur l'intention trunk qui a
déjà opéré sur themeok, libérer le dépôt du code inutile,
bien nettoyer CSS/JS, sans casser le JS et le CSS de
_Layout.cshtml. Introduire immédiatement des tests d'UI
automatisés comme garde-fou.

Le document contient :
- Énoncé du défi
- État actuel des 3 branches (themeok, main, refac/js-bundle)
- Résultats du diagnostic de main (cause racine : contenu
  vide + erreur JS sur carousel vide, pas un problème de
  fichiers servis)
- 6 critères d'acceptation vérifiables
- Stratégie de tests UI automatisés (Playwright C#)
- Plan d'attaque en 6 étapes
- 5 risques identifiés (cache navigateur, double binding
  Kestrel, .env non versionné, ports utilisés, quiproquos
  de branches)
- Todo court/moyen/long terme
- Annexes : environnement d'exécution, procédure make reinstall

Le diagnostic a été reproduit en worktree diag/main sur
ports 5060/5061, en surchargeant la config Kestrel via
variables d'environnement pour ne pas écraser le service
systemd yavscOrg sur port 3002.
2026-06-14 17:22:50 +01:00
ec5c1b6a95 fix(cookies): set Identity cookies to SameSite=Lax in dev (avoid Chromium rejection on http://localhost)
Chromium rejects cookies that have SameSite=None but no
Secure flag. The default Identity cookie policy uses
SameSite=None, which is invalid on http://localhost (no
TLS, no Secure). Result on http://localhost:5000:

  Cookie '.AspNetCore.Identity.Application' rejected
  because it has the 'SameSite=None' attribute but is
  missing the 'secure' attribute.

Fix: in Development environment, configure
ConfigureApplicationCookie and ConfigureExternalCookie
to use SameSite=Lax and SameAsRequest SecurePolicy.
Lax is permissive enough for OAuth callbacks (top-level
GET navigations) and avoids the rejection.

Production (https://) is untouched — the default
SameSite=None is correct when Secure is set.

Note on the sameSiteMode reference: SameSiteMode is
defined in two namespaces
(Microsoft.AspNetCore.Http and Microsoft.Net.Http.Headers).
The file already uses 'using Microsoft.Net.Http.Headers;'
so a bare 'SameSiteMode' is ambiguous. Using the
fully-qualified name 'Microsoft.AspNetCore.Http.SameSiteMode'
to disambiguate, no new using needed.

Tested: dotnet build OK, dotnet test 11/11 green.
2026-06-14 16:27:54 +01:00
aeccffebaa chore: remove Quill (out of scope for PostIt-driven editor)
Quill was never wired up on themeok (no .cshtml reference,
no @addTagHelper, no C# binding). It lived only as static
CSS/JS in wwwroot/ — dead weight in the repo.

The rich text editor for blog posts is PostIt (XPlat), not
the browser. Quill is no longer needed.

Removes:
- src/Yavsc.Org/wwwroot/css/main/quill.snow.css
- src/Yavsc.Org/wwwroot/css/main/quill.snow.min.css
- src/Yavsc.Org/wwwroot/js/quill.js
- src/Yavsc.Org/wwwroot/js/quill.min.js
- (also removed from disk, was untracked: quill.bundle.min.js)

Tested: dotnet test 11/11 green (no C# touched, but rule is rule).
2026-06-14 16:25:13 +01:00
b5fe6918a8 chore: snapshot of themeok branch as visual reference
This commit marks the current state of themeok as the
canonical visual reference for the upcoming theme
refactoring.

What this point of the branch represents:
- Bootstrap 5 (quartz theme) loaded via wwwroot/lib/bootstrap.quartz.min.css
- jQuery 3 + jQuery UI 1.14 + Bootstrap 5 JS bundle loaded from wwwroot/lib/
- New navbar partial src/Yavsc.Org/Views/Shared/_Nav.cshtml
  (Bootstrap 5 navbar-dark bg-dark with dropdowns)
- _Layout.cshtml loading the new navbar via <partial name="_Nav" />
- The WIP 'Js and css cleanup' (31906a78) — CSS vendor files
  dropped from wwwroot/css/ and moved to wwwroot/css/main/
  where appropriate
- The gitignore cleanup (ebfc3d77) — vendor lib files no
  longer tracked in the repo, restored via npm at build time

Out of scope for this snapshot:
- Home/Index.cshtml content (still empty container)
- Other view migrations to Bootstrap 5
- Quill removal
- Cookie SameSite=None fix in Program.cs
- jQuery-as-global-script refac (lives on refac/js-bundle
  branch, will be merged later)

Tested: dotnet test 11/11 green.
2026-06-14 16:15:19 +01:00
ebfc3d772d chore: stop tracking vendor lib files (now restored via npm + esbuild)
Drops 1038 files from src/Yavsc.Org/wwwroot/lib/ — they remain
on disk and are now restored via 'npm install' at build time
(see package.json and esbuild.config.mjs).

Exception: jonthornton-Datepair is not on npm, the bundled
files are kept in wwwroot/lib/jonthornton-Datepair/ as static
assets.

Also extends .gitignore to ignore:
- node_modules/, build/, package-lock.json (esbuild toolchain)
- wwwroot/js/*.min.js (regenerated by 'npm run build:js')
- .Production.env (added explicitly, not matched by '.*.env'
  glob in some git versions)

This aligns themeok with the architecture already in place
on refac/js-bundle (commits ed7522c5, 196f4b0b, 292c0a2f on
that branch). The build artifacts were already present in
node_modules/ and build/ on disk; this commit only stops
tracking them.

Tested: dotnet test 11/11 green (no C# code touched).
2026-06-14 16:14:47 +01:00
2564d9938e Merge pull request #58 from pazof/dependabot/npm_and_yarn/src/Yavsc.Web/wwwroot/lib/jquery-validation-unobtrusive/decode-uri-component-0.2.2
Bump decode-uri-component from 0.2.0 to 0.2.2 in /src/Yavsc.Web/wwwroot/lib/jquery-validation-unobtrusive
2026-06-13 21:04:44 +01:00
root
198d5bc202 cd contrib; make reinstall 2026-06-13 20:57:30 +01:00
bdc974b29b érrance 2026-06-12 12:47:04 +01:00
bba719c8c1 doc : Architecute 2026-06-12 12:34:30 +01:00
dependabot[bot]
96dafaeb62 Bump decode-uri-component
Bumps [decode-uri-component](https://github.com/SamVerschueren/decode-uri-component) from 0.2.0 to 0.2.2.
- [Release notes](https://github.com/SamVerschueren/decode-uri-component/releases)
- [Commits](https://github.com/SamVerschueren/decode-uri-component/compare/v0.2.0...v0.2.2)

---
updated-dependencies:
- dependency-name: decode-uri-component
  dependency-version: 0.2.2
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-11 20:01:35 +00:00
b3444ac4e2 Merge pull request #56 from pazof/dependabot/github_actions/all-actions-64c84cc25d
Bump the all-actions group with 4 updates
2026-06-11 20:53:33 +01:00
dependabot[bot]
6b43e74454 Bump the all-actions group with 4 updates
Bumps the all-actions group with 4 updates: [actions/checkout](https://github.com/actions/checkout), [actions/upload-artifact](https://github.com/actions/upload-artifact), [docker/login-action](https://github.com/docker/login-action) and [docker/build-push-action](https://github.com/docker/build-push-action).


Updates `actions/checkout` from 4 to 6
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v4...v6)

Updates `actions/upload-artifact` from 4 to 7
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v4...v7)

Updates `docker/login-action` from 3 to 4
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/v3...v4)

Updates `docker/build-push-action` from 6 to 7
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-actions
- dependency-name: actions/upload-artifact
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-actions
- dependency-name: docker/login-action
  dependency-version: '4'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-actions
- dependency-name: docker/build-push-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
  dependency-group: all-actions
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-06-11 19:22:08 +00:00
d822ca3d1b Update Dependabot configuration for multiple ecosystems 2026-06-11 20:21:12 +01:00
c3941a5158 Badges 2026-06-11 20:14:32 +01:00
e98bba4247 refacts and PostIt Nav 2026-06-11 20:02:32 +01:00
1a0556695c Login settings 2026-06-10 16:59:23 +01:00
164bd928aa logo + oidc client PostIt 2026-06-10 11:10:15 +01:00
fa7d6242f1 postit and them also 2026-06-10 00:23:17 +01:00
de616809ae Téléverser l'APK 2026-06-07 13:39:47 +01:00
c5ecfced06 Bad try to apk path 2026-06-07 13:24:04 +01:00
5abaf0e027 extract the apk 2026-06-07 13:08:23 +01:00
ed0f89ab12 Re ARG fix* 2026-06-07 12:57:41 +01:00
eb5f0eb2cd use -r only for android build 2026-06-07 12:41:59 +01:00
addf24a8f1 user -r only for android build 2026-06-07 12:34:44 +01:00
6ceec55ed9 build --build-arg TARGET_RID=android-arm64 2026-06-07 12:19:18 +01:00
1b24b75984 typo 2026-06-07 12:06:17 +01:00
3d8908b782 main action header 2026-06-07 12:03:40 +01:00
64fa3afe31 main.yml 2026-06-07 11:58:42 +01:00
4899a251e0 FIXME build the signed apk using a dedicated GitHub action 2026-06-07 11:48:42 +01:00
4b9bf57a51 trying the target plan 2026-06-07 11:42:08 +01:00
f6de24865a cleanup 2026-06-07 11:33:44 +01:00
fc3826eb16 .prod (=.yavsc-backend build) 2026-06-07 11:17:07 +01:00
04a60f104e docker build . <<< Ok 2026-06-07 11:11:15 +01:00
786b727504 Anti-Corruption Layer (ACL) 2026-06-07 09:11:40 +01:00
ed09085e60 (Correction de l'organisation) 2026-06-07 09:05:28 +01:00
de88b22303 Dockerfiles ... 2026-06-07 09:01:21 +01:00
b8ba7cc511 build split 2026-06-07 08:33:58 +01:00
a04e855c2d force 2026-06-07 08:19:58 +01:00
78b01d794e -clp:ErrorsOnly 2026-06-07 08:12:54 +01:00
fa2b7eed96 repo cleanup 2026-06-07 07:57:11 +01:00
15e63af8f1 docker build 2026-06-07 07:50:44 +01:00
52329feade isn already added 2026-06-07 07:36:58 +01:00
16e6c56d6c copie de tout le code source 2026-06-07 07:35:42 +01:00
07c2b9cbd5 cleanup 2026-06-07 07:32:24 +01:00