- contracts.js: built-in install chain fallback when no Flow Template matches on_contract_signed — every accepted contract now creates a master Issue + chained Dispatch Jobs (fiber_install template) so we never lose a signed contract to a missing flow config. - acceptance.js: export createDeferredJobs + propagate assigned_group into Dispatch Job payload (was only in notes, not queryable). - dispatch.js: chain-walk helpers (unblockDependents, _isChainTerminal, setJobStatusWithChain) + terminal-node detection that activates pending Service Subscriptions (En attente → Actif, start_date=tomorrow) and emits a prorated Sales Invoice covering tomorrow → EOM. Courtesy-day billing convention: activation day is free, first period starts next day. - dispatch.js: fix Sales Invoice 417 by resolving company default income account (Ventes - T) and passing company + income_account on each item. - dispatch.js: GET /dispatch/group-jobs + POST /dispatch/claim-job for tech self-assignment from the group queue; enriches with customer_name / service_location via per-job fetches since those fetch_from fields aren't queryable in list API. - TechTasksPage.vue: redesigned mobile-first UI with progress arc, status chips, and new "Tâches du groupe" section showing claimable unassigned jobs with a "Prendre" CTA. Live updates via SSE job-claimed / job-unblocked. - NetworkPage.vue + poller-control.js: poller toggle semantics flipped — green when enabled, red/gray when paused; explicit status chips for clarity. E2E verified end-to-end: CTR-00007 → 4 chained jobs → claim → In Progress → Completed walks chain → SUB-0000100002 activated (start=2026-04-24) → SINV-2026-700012 prorata $9.32 (= 39.95 × 7/30). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
72 lines
1.7 KiB
JavaScript
72 lines
1.7 KiB
JavaScript
/* eslint-env node */
|
|
const { configure } = require('quasar/wrappers')
|
|
|
|
module.exports = configure(function () {
|
|
return {
|
|
boot: ['pinia'],
|
|
|
|
css: ['app.scss', 'tech.scss'],
|
|
|
|
extras: ['material-icons'],
|
|
|
|
build: {
|
|
target: {
|
|
browser: ['es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1'],
|
|
node: 'node20',
|
|
},
|
|
vueRouterMode: 'hash',
|
|
extendViteConf (viteConf) {
|
|
viteConf.base = process.env.DEPLOY_BASE || '/ops/'
|
|
},
|
|
},
|
|
|
|
devServer: {
|
|
open: false,
|
|
host: '0.0.0.0',
|
|
port: 9001,
|
|
proxy: {
|
|
'/ops/api': {
|
|
target: 'https://erp.gigafibre.ca',
|
|
changeOrigin: true,
|
|
rewrite: (path) => path.replace(/^\/ops/, ''),
|
|
},
|
|
'/api': {
|
|
target: 'https://erp.gigafibre.ca',
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
|
|
framework: {
|
|
config: {},
|
|
plugins: ['Notify', 'Loading', 'LocalStorage', 'Dialog'],
|
|
},
|
|
|
|
animations: [],
|
|
|
|
pwa: {
|
|
workboxMode: 'generateSW',
|
|
injectPwaMetaTags: true,
|
|
swFilename: 'sw.js',
|
|
manifestFilename: 'manifest.json',
|
|
useCredentialForManifestTag: false,
|
|
workboxOptions: {
|
|
skipWaiting: true,
|
|
clientsClaim: true,
|
|
cleanupOutdatedCaches: true,
|
|
navigateFallback: 'index.html',
|
|
navigateFallbackDenylist: [/^\/api\//],
|
|
},
|
|
extendManifestJson (json) {
|
|
json.name = 'Targo Ops'
|
|
json.short_name = 'Ops'
|
|
json.description = 'Targo Operations Platform'
|
|
json.display = 'standalone'
|
|
json.background_color = '#ffffff'
|
|
json.theme_color = '#1e293b'
|
|
json.start_url = '.'
|
|
},
|
|
},
|
|
}
|
|
})
|