mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-19 08:03:06 +00:00
chore: drop unused search-only omnibox exports; finish B147 simplify notes
Knip: remove dead suggestions/remove/clear helpers after organizações moved to a typed omnibox. Land deferred-helper note + empty-sinal int coverage.
This commit is contained in:
parent
6b8aa8b6cf
commit
ce44ec1949
2 changed files with 14 additions and 0 deletions
|
|
@ -91,6 +91,7 @@ flowchart LR
|
||||||
- Scrub histórico de `reversalSignals` em snapshots.
|
- Scrub histórico de `reversalSignals` em snapshots.
|
||||||
- Dual-path / ops-sync.
|
- Dual-path / ops-sync.
|
||||||
- Redesign hysteresis UI beyond override/shock checkboxes already in list (keep minimal in modal when violations apply).
|
- Redesign hysteresis UI beyond override/shock checkboxes already in list (keep minimal in modal when violations apply).
|
||||||
|
- Extrair helper compartilhado `confirmLevel`/`ListLevelControl.submit` — 2 call sites; gatilho: 3º writer do mesmo endpoint+blocked path.
|
||||||
|
|
||||||
## Riscos e mitigação
|
## Riscos e mitigação
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -219,6 +219,19 @@ describe('campaign municipality update domain', () => {
|
||||||
expect(visible.docs.map(({ id }) => id)).toContain(created.id)
|
expect(visible.docs.map(({ id }) => id)).toContain(created.id)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
it('accepts a sinal with type and empty motivo', async () => {
|
||||||
|
const coordinator = await campaignFixtures().createCampaignUser('coordinator')
|
||||||
|
const municipality = await campaignFixtures().getMunicipality()
|
||||||
|
|
||||||
|
const created = await createMunicipalityUpdateRecord(payload, coordinator, {
|
||||||
|
municipality: municipality.id,
|
||||||
|
kind: 'sinal',
|
||||||
|
signalType: 'invasao',
|
||||||
|
})
|
||||||
|
expect(created.signalType).toBe('invasao')
|
||||||
|
expect(created.body).toBeFalsy()
|
||||||
|
})
|
||||||
|
|
||||||
it('limits advisors to administered municipalities for create and read', async () => {
|
it('limits advisors to administered municipalities for create and read', async () => {
|
||||||
const advisor = await campaignFixtures().createCampaignUser('advisor')
|
const advisor = await campaignFixtures().createCampaignUser('advisor')
|
||||||
const otherAdvisor = await campaignFixtures().createCampaignUser('advisor')
|
const otherAdvisor = await campaignFixtures().createCampaignUser('advisor')
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue