TenantAtlas/apps/platform/.pnpm-store/v10/files/5a/21d4ec57cba4d85d7636f5c641a7bd83155dbe1cfdf9cef63ed84504e025895c5cdf6877df49bdc1fb197a27531f99961d19ecbbed2a94c244ef0a4357bb09
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

64 lines
1.7 KiB
Plaintext

import { OperatorFunction } from '../types';
/**
* Emits `false` if the input Observable emits any values, or emits `true` if the
* input Observable completes without emitting any values.
*
* <span class="informal">Tells whether any values are emitted by an Observable.</span>
*
* ![](isEmpty.png)
*
* `isEmpty` transforms an Observable that emits values into an Observable that
* emits a single boolean value representing whether or not any values were
* emitted by the source Observable. As soon as the source Observable emits a
* value, `isEmpty` will emit a `false` and complete. If the source Observable
* completes having not emitted anything, `isEmpty` will emit a `true` and
* complete.
*
* A similar effect could be achieved with {@link count}, but `isEmpty` can emit
* a `false` value sooner.
*
* ## Examples
*
* Emit `false` for a non-empty Observable
*
* ```ts
* import { Subject, isEmpty } from 'rxjs';
*
* const source = new Subject<string>();
* const result = source.pipe(isEmpty());
*
* source.subscribe(x => console.log(x));
* result.subscribe(x => console.log(x));
*
* source.next('a');
* source.next('b');
* source.next('c');
* source.complete();
*
* // Outputs
* // 'a'
* // false
* // 'b'
* // 'c'
* ```
*
* Emit `true` for an empty Observable
*
* ```ts
* import { EMPTY, isEmpty } from 'rxjs';
*
* const result = EMPTY.pipe(isEmpty());
* result.subscribe(x => console.log(x));
*
* // Outputs
* // true
* ```
*
* @see {@link count}
* @see {@link EMPTY}
*
* @return A function that returns an Observable that emits boolean value
* indicating whether the source Observable was empty or not.
*/
export declare function isEmpty<T>(): OperatorFunction<T, boolean>;
//# sourceMappingURL=isEmpty.d.ts.map