Add runtime support for service sets, release management enhancements, and new unit tests

- Extend `releaseTimeline.js` and related modules for runtime-aware service sets and URLs.
- Update the release session builder to include `service_set` handling.
- Introduce release service definitions, status tones, and enhanced runtime display text.
- Add new dataset mode options, preview rows, and warnings for release configurations in `ConfigurationReleaseManager.vue`.
- Implement extensive utility methods for data service handling, target context, and deployment endpoints.
- Add `vite-api-proxy.spec.js` and extend `release-bootstrap.spec.js` to ensure coverage for new functionality.
This commit is contained in:
Jeppe Bundgaard
2026-05-21 11:41:50 +02:00
parent 6ba1c754a1
commit eaf4b965d5
16 changed files with 2622 additions and 220 deletions
+18
View File
@@ -94,6 +94,21 @@ function releaseEntryManifest() {
}
}
export function createApiProxyOptions(env = process.env) {
const stripPrefix = env.VITE_API_PROXY_STRIP_PREFIX !== 'false'
return {
target: env.VITE_API_PROXY_TARGET || 'https://api.truckwash.io:4433',
changeOrigin: true,
secure: false,
...(stripPrefix
? {
rewrite: (requestPath) => requestPath.replace(/^\/api(?=\/|$)/, '') || '/'
}
: {})
}
}
export default defineConfig(({ mode }) => {
const isProd = mode === 'production'
const isPlaywrightRuntime = process.env.PLAYWRIGHT === '1'
@@ -259,6 +274,9 @@ export default defineConfig(({ mode }) => {
isolate: true
},
server: {
proxy: {
'/api': createApiProxyOptions()
},
watch: {
ignored: ['**/output/playwright/**', '**/node_modules.codex-backup/**']
}