Add sync error logging, extend error flash, fix unload saves

- Log workforce sync errors to backend stdout so they appear in docker logs
- Extend error flash from 5s to 15s so errors are readable
- Replace sendBeacon (POST-only) with keepalive fetch (PUT) on unload —
  sendBeacon was hitting 404s on all three unload saves

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
jtricerolph 2026-07-22 14:19:38 +00:00
parent c7066521ff
commit 18e24efbeb
14485 changed files with 1836116 additions and 33 deletions

4
frontend/node_modules/is-regexp/index.js generated vendored Normal file
View file

@ -0,0 +1,4 @@
'use strict';
module.exports = function (re) {
return Object.prototype.toString.call(re) === '[object RegExp]';
};

35
frontend/node_modules/is-regexp/package.json generated vendored Normal file
View file

@ -0,0 +1,35 @@
{
"name": "is-regexp",
"version": "1.0.0",
"description": "Check whether a variable is a regular expression",
"license": "MIT",
"repository": "sindresorhus/is-regexp",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "http://sindresorhus.com"
},
"engines": {
"node": ">=0.10.0"
},
"scripts": {
"test": "mocha"
},
"files": [
"index.js"
],
"keywords": [
"regex",
"regexp",
"regular",
"expression",
"regular expression",
"re",
"check",
"type",
"is"
],
"devDependencies": {
"mocha": "*"
}
}

31
frontend/node_modules/is-regexp/readme.md generated vendored Normal file
View file

@ -0,0 +1,31 @@
# is-regexp [![Build Status](https://travis-ci.org/sindresorhus/is-regexp.svg?branch=master)](https://travis-ci.org/sindresorhus/is-regexp)
> Check whether a variable is a regular expression
## Install
```sh
$ npm install --save is-regexp
```
## Usage
```js
var isRegexp = require('is-regexp');
isRegexp('unicorn');
//=> false
isRegexp(/unicorn/);
//=> true
isRegexp(new RegExp('unicorn'));
//=> true
```
## License
MIT © [Sindre Sorhus](http://sindresorhus.com)