TenantAtlas/apps/platform/.pnpm-store/v10/files/6f/61a7fb892973fa59406cc90a2a18bf36e46858ec684806641ceb2bc5a48896eb8e08a56b26b5eb9450cdc8631659aede2dde9197cc72c58a95863bf17b2f82
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

51 lines
1.9 KiB
Plaintext

import { OperatorFunction, ObservableNotification, ValueFromNotification } from '../types';
/**
* Converts an Observable of {@link ObservableNotification} objects into the emissions
* that they represent.
*
* <span class="informal">Unwraps {@link ObservableNotification} objects as actual `next`,
* `error` and `complete` emissions. The opposite of {@link materialize}.</span>
*
* ![](dematerialize.png)
*
* `dematerialize` is assumed to operate an Observable that only emits
* {@link ObservableNotification} objects as `next` emissions, and does not emit any
* `error`. Such Observable is the output of a `materialize` operation. Those
* notifications are then unwrapped using the metadata they contain, and emitted
* as `next`, `error`, and `complete` on the output Observable.
*
* Use this operator in conjunction with {@link materialize}.
*
* ## Example
*
* Convert an Observable of Notifications to an actual Observable
*
* ```ts
* import { NextNotification, ErrorNotification, of, dematerialize } from 'rxjs';
*
* const notifA: NextNotification<string> = { kind: 'N', value: 'A' };
* const notifB: NextNotification<string> = { kind: 'N', value: 'B' };
* const notifE: ErrorNotification = { kind: 'E', error: new TypeError('x.toUpperCase is not a function') };
*
* const materialized = of(notifA, notifB, notifE);
*
* const upperCase = materialized.pipe(dematerialize());
* upperCase.subscribe({
* next: x => console.log(x),
* error: e => console.error(e)
* });
*
* // Results in:
* // A
* // B
* // TypeError: x.toUpperCase is not a function
* ```
*
* @see {@link materialize}
*
* @return A function that returns an Observable that emits items and
* notifications embedded in Notification objects emitted by the source
* Observable.
*/
export declare function dematerialize<N extends ObservableNotification<any>>(): OperatorFunction<N, ValueFromNotification<N>>;
//# sourceMappingURL=dematerialize.d.ts.map