Commit graph

63 commits

Author SHA1 Message Date
7a066707b3 Tests: route Yavsc.Org test host through Testing environment
TestWebApplicationFactory used ASPNETCORE_ENVIRONMENT=Development, which
caused Program.Main's AddConfiguration("org") to load the tracked
appsettings-org.json (the reference file with the
'*** via dotnet user-secrets ou variable d'environnement ***'
placeholder connection string). Npgsql then failed to parse that
placeholder during host startup, failing six integration tests
(observed 2026-07-11: System.ArgumentException on
NpgsqlConnectionStringBuilder.set_Item).

Switching the test host to a dedicated Testing environment makes
AddConfiguration("org") pick up the new optional
appsettings-org.Testing.json file as the last source in the chain
(JSON → env vars), which overrides YavscConnection with the
InMemory marker and the Smtp section with the test stub values.

The .gitignore exception whitelists this file explicitly: it is a
configuration source for the test host, not a secrets file.

The WebServerFixture path is unchanged — it owns its
WebApplicationBuilder and adds the same in-memory override via its
BuildApp hook.
2026-07-11 20:50:39 +01:00
6aaff74082 fix(client-controller): single constructor with IHtmlLocalizer
The partial class ClientController had two constructors declared
across ClientController.cs and ClientController.Collections.cs.
ASP.NET Core DI failed to pick one at request time with:

  System.InvalidOperationException: Multiple constructors accepting
  all given argument types have been found in type
  'Yavsc.Controllers.ClientController'.

Move IHtmlLocalizer<ClientController> into the primary constructor
in ClientController.cs and drop the duplicate one in
ClientController.Collections.cs. The Collections partial now keeps
only its readonly field and action methods; the constructor and
field assignment are unified on the main file.

Also add the missing 'using Microsoft.AspNetCore.Mvc.Localization;'
to ClientController.cs so IHtmlLocalizer resolves.
2026-06-21 21:14:20 +01:00
2c672b003a publish postit settings 2026-06-20 18:46:05 +01:00
2fd799c09f refactoring the login 2026-06-20 15:01:03 +01:00
148f333b36 do not override appsettings-*.*.json 2026-06-19 16:18:39 +01:00
92461d5f7b make reinstall failed 2026-06-19 02:15:27 +01:00
c1f4d19975 fices the UI 2026-06-15 02:55:22 +01:00
5c6d6ee687 refactoring 2026-06-15 00:33:38 +01:00
cba18df870 Fixes the css 2026-06-14 23:04:24 +01:00
4074c312a4 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 18:58:38 +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
9415521bcb WIP: refactoring pour déploiement
Non testé en conditions réelles. À valider avant de pousser.
2026-06-14 12:17:03 +01:00
07c2b9cbd5 cleanup 2026-06-07 07:32:24 +01:00
070f41ac7e refactoring for integration 2026-06-06 21:10:48 +01:00
a90cdc08b8 docker composes 2026-05-30 15:41:59 +01:00
bdfc8d4671 updated 2026-05-24 06:01:16 +01:00
6cc0c519d2 tests OK 2026-04-20 00:35:51 +01:00
d21337d4a6 about to test remote access 2026-04-19 16:02:50 +01:00
Paul Schneider
d000f77098 cleanup 2026-02-28 14:22:33 +00:00
Paul Schneider
39788f46f9 migration net9.0 2025-06-16 02:30:32 +01:00
Paul Schneider
7a96909bef reop clean up 2025-06-11 16:55:08 +01:00
Paul Schneider
6b599a5990 ignore /out 2025-06-08 14:50:09 +01:00
Paul Schneider
050b8a7aa4 Track vscode setup 2025-03-02 16:53:56 +00:00
Paul Schneider
7353af76c6 repo cleanup 2024-11-23 14:25:41 +00:00
Paul Schneider
ce8f3ebce0 WIP Accesses 2024-03-04 01:02:28 +00:00
Paul Schneider
f66dac31c9 Identity Server reference 2024-02-14 20:35:15 +00:00
Paul Schneider
7cc450a648 Sdk version bump to net8.0 2024-02-14 19:17:17 +00:00
Paul Schneider
60bf0f47fe push 2021-06-28 22:35:47 +01:00
Paul Schneider
fa954c04a2 html 2021-06-06 23:06:24 +01:00
Paul Schneider
a248ab146d ignore test-results 2021-06-06 20:48:55 +01:00
f8fa671a0b gitlab ci
and simpler make all
2021-03-16 01:06:06 +00:00
e289c1bbd9 yavscd in prod 2019-12-11 16:42:07 +00:00
7d2d0eaf65 ignore web log 2019-08-26 15:06:21 +01:00
4b07b0fc43 cli API cx 2019-06-25 01:51:23 +01:00
41704aedc4 implemented some not tested kick 2019-06-14 10:03:51 +01:00
5e4515df58 removes a duplicate entry 2019-06-12 11:16:12 +01:00
f529253ce5 ignore appdata 2019-01-17 11:15:21 +00:00
9817214531 code moved to src 2019-01-05 13:29:09 +00:00
67d2edeaf7 had nothing to do under source control 2019-01-05 02:59:40 +00:00
fa7d5650ff cleanings 2018-12-23 01:57:58 +00:00
e2beae843e ignore 2018-12-19 23:50:12 +00:00
6245ec2709 ignore better 2018-12-19 23:43:54 +00:00
2e378904b2 ignore .gitignore 2016-11-08 14:53:32 +01:00
9ef0e8049d ignore user files 2016-09-18 00:35:40 +02:00
18764d38df ignore build 2016-08-01 00:31:23 +02:00
817c1c151f refabrique 2016-07-20 13:52:38 +02:00
33dbed8b90 ignore packages and components 2016-07-20 13:49:49 +02:00
69c7d5e16a abandon oidc 2016-05-20 14:39:17 +02:00
64d095fb50 igonre 2016-05-20 13:45:20 +02:00
388b004837 Passage à ASP.NET vNext 2016-05-17 18:22:18 +02:00