TenantAtlas/apps/platform/.pnpm-store/v10/files/dc/fef4270802e64dd1732e29c760b026b34778d427bad7705da169d88a7a9728a5fddc0483a73ef79d3e76ceccb8790bcd2e16d271a687a196a67efc22ede577
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

62 lines
2.3 KiB
Plaintext

import { OperatorFunction, ObservableInput, ObservedValueOf } from '../types';
/**
* Converts a higher-order Observable into a first-order Observable which
* concurrently delivers all values that are emitted on the inner Observables.
*
* <span class="informal">Flattens an Observable-of-Observables.</span>
*
* ![](mergeAll.png)
*
* `mergeAll` subscribes to an Observable that emits Observables, also known as
* a higher-order Observable. Each time it observes one of these emitted inner
* Observables, it subscribes to that and delivers all the values from the
* inner Observable on the output Observable. The output Observable only
* completes once all inner Observables have completed. Any error delivered by
* a inner Observable will be immediately emitted on the output Observable.
*
* ## Examples
*
* Spawn a new interval Observable for each click event, and blend their outputs as one Observable
*
* ```ts
* import { fromEvent, map, interval, mergeAll } from 'rxjs';
*
* const clicks = fromEvent(document, 'click');
* const higherOrder = clicks.pipe(map(() => interval(1000)));
* const firstOrder = higherOrder.pipe(mergeAll());
*
* firstOrder.subscribe(x => console.log(x));
* ```
*
* Count from 0 to 9 every second for each click, but only allow 2 concurrent timers
*
* ```ts
* import { fromEvent, map, interval, take, mergeAll } from 'rxjs';
*
* const clicks = fromEvent(document, 'click');
* const higherOrder = clicks.pipe(
* map(() => interval(1000).pipe(take(10)))
* );
* const firstOrder = higherOrder.pipe(mergeAll(2));
*
* firstOrder.subscribe(x => console.log(x));
* ```
*
* @see {@link combineLatestAll}
* @see {@link concatAll}
* @see {@link exhaustAll}
* @see {@link merge}
* @see {@link mergeMap}
* @see {@link mergeMapTo}
* @see {@link mergeScan}
* @see {@link switchAll}
* @see {@link switchMap}
* @see {@link zipAll}
*
* @param concurrent Maximum number of inner Observables being subscribed to
* concurrently.
* @return A function that returns an Observable that emits values coming from
* all the inner Observables emitted by the source Observable.
*/
export declare function mergeAll<O extends ObservableInput<any>>(concurrent?: number): OperatorFunction<O, ObservedValueOf<O>>;
//# sourceMappingURL=mergeAll.d.ts.map