TenantAtlas/apps/platform/.pnpm-store/v10/files/57/813bd167caaf75e9086ef41ccf80110b56d91654ad890cd5c0a222a705b9a8ade439b31b41c778bf65e658e759d6c5061eae8ddf929347ee524f6967030f3a
ahmido 1fec9c6f9d
Some checks failed
Main Confidence / confidence (push) Failing after 45s
feat: compress governance operator outcomes (#253)
## Summary
- introduce surface-aware compressed governance outcomes and reuse the shared truth/explanation seams for operator-first summaries
- apply the compressed outcome hierarchy across baseline, evidence, review, review-pack, canonical review/evidence, and artifact-oriented operation-run surfaces
- expand spec 214 fixtures and Pest coverage, and fix tenant-panel route assertions by generating explicit tenant-panel URLs in the affected Filament tests

## Validation
- `cd apps/platform && ./vendor/bin/sail bin pint --dirty --format agent`
- focused governance compression suite from `specs/214-governance-outcome-compression/quickstart.md` passed (`68` tests, `445` assertions)
- `cd apps/platform && ./vendor/bin/sail artisan test --compact tests/Feature/Filament/InventoryItemResourceTest.php tests/Feature/Filament/BackupSetUiEnforcementTest.php tests/Feature/Filament/RestoreRunUiEnforcementTest.php` passed (`18` tests, `81` assertions)

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #253
2026-04-19 12:30:36 +00:00

50 lines
1.5 KiB
Plaintext

import { ObservableInputTuple, OperatorFunction } from '../types';
import { merge } from './merge';
/**
* Merge the values from all observables to a single observable result.
*
* Creates an observable, that when subscribed to, subscribes to the source
* observable, and all other sources provided as arguments. All values from
* every source are emitted from the resulting subscription.
*
* When all sources complete, the resulting observable will complete.
*
* When any source errors, the resulting observable will error.
*
* ## Example
*
* Joining all outputs from multiple user input event streams
*
* ```ts
* import { fromEvent, map, mergeWith } from 'rxjs';
*
* const clicks$ = fromEvent(document, 'click').pipe(map(() => 'click'));
* const mousemoves$ = fromEvent(document, 'mousemove').pipe(map(() => 'mousemove'));
* const dblclicks$ = fromEvent(document, 'dblclick').pipe(map(() => 'dblclick'));
*
* mousemoves$
* .pipe(mergeWith(clicks$, dblclicks$))
* .subscribe(x => console.log(x));
*
* // result (assuming user interactions)
* // 'mousemove'
* // 'mousemove'
* // 'mousemove'
* // 'click'
* // 'click'
* // 'dblclick'
* ```
*
* @see {@link merge}
*
* @param otherSources the sources to combine the current source with.
* @return A function that returns an Observable that merges the values from
* all given Observables.
*/
export function mergeWith<T, A extends readonly unknown[]>(
...otherSources: [...ObservableInputTuple<A>]
): OperatorFunction<T, T | A[number]> {
return merge(...otherSources);
}