Skip to content

Commit 7b9739a

Browse files
more renamings
1 parent de3ef4d commit 7b9739a

File tree

11 files changed

+47
-47
lines changed

11 files changed

+47
-47
lines changed

packages/app-builder/src/components/Scenario/Sanction/FieldSkipIfUnder.tsx

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,17 @@ export const FieldSkipIfUnder = ({
4040
t={t}
4141
i18nKey="scenarios:edit_sanction.ignore_check_if_under"
4242
components={{
43-
NbNumbers: <Input
44-
type="number"
45-
name={name}
46-
className="z-0 h-6 w-14 py-0"
47-
value={inputValue}
48-
min={0}
49-
onChange={handleInputChange}
50-
disabled={editor === 'view' || value === null}
51-
/>
43+
NbNumbers: (
44+
<Input
45+
type="number"
46+
name={name}
47+
className="z-0 h-6 w-14 py-0"
48+
value={inputValue}
49+
min={0}
50+
onChange={handleInputChange}
51+
disabled={editor === 'view' || value === null}
52+
/>
53+
),
5254
}}
5355
/>
5456
</div>

packages/app-builder/src/components/Scenario/Sanction/ScreeningTermIgnoreList.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,7 @@ export const ScreeningTermIgnoreList = ({
4747
disabled={editor === 'view'}
4848
/>
4949
<span className="text-s">{t('scenarios:edit_sanction.remove_terms_from_list')}</span>
50-
<FieldToolTip>
51-
{t('scenarios:edit_sanction.remove_terms_from_list.tooltip')}
52-
</FieldToolTip>
50+
<FieldToolTip>{t('scenarios:edit_sanction.remove_terms_from_list.tooltip')}</FieldToolTip>
5351
</div>
5452
{value ? (
5553
<div className="flex flex-col gap-1">

packages/app-builder/src/locales/ar/scenarios.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@
213213
"edit_sanction.entity_type.thing": "شيء",
214214
"edit_sanction.entity_type.tooltip": "يستخدم هذا لتحديد نوع الكيان الذي تقوم بفحصه.",
215215
"edit_sanction.entity_type.vehicle": "عربة",
216-
"edit_sanction.global_settings": "الإعدادات العالمية",
217-
"edit_sanction.ignore_check_if_under": "لا تقوم بفحص إذا كان النص يحتوي على أقل من <NbNumbers /> أحرف:",
218216
"edit_sanction.exclude_numbers": "تجاهل الأرقام",
219217
"edit_sanction.exclude_numbers.tooltip": "عند التمكين ، ستتم إزالة جميع الأحرف الرقمية من النص قبل المطابقة. \nيمكن أن يساعد ذلك في تقليل الإيجابيات الخاطئة الناجمة عن الأرقام في الأسماء أو العناوين أو المعرفات.",
218+
"edit_sanction.global_settings": "الإعدادات العالمية",
219+
"edit_sanction.ignore_check_if_under": "لا تقوم بفحص إذا كان النص يحتوي على أقل من <NbNumbers /> أحرف:",
220220
"edit_sanction.nationality": "الجنسية",
221221
"edit_sanction.nationality_placeholder": "رمز الدولة",
222222
"edit_sanction.passport_number": "رقم جواز السفر",

packages/app-builder/src/locales/en/scenarios.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@
213213
"edit_sanction.entity_type.thing": "Any type",
214214
"edit_sanction.entity_type.tooltip": "Screening against a specific type of entity will allow you to use more precise search terms, and will result in fewer false positives.",
215215
"edit_sanction.entity_type.vehicle": "Vehicle",
216-
"edit_sanction.global_settings": "Global Settings",
217-
"edit_sanction.ignore_check_if_under": "Do not screen if the text contains less than <NbNumbers/> characters",
218216
"edit_sanction.exclude_numbers": "Exclude numbers",
219217
"edit_sanction.exclude_numbers.tooltip": "When enabled, all numeric characters will be removed from the text before matching. This can help reduce false positives caused by numbers in names, addresses, or identifiers.",
218+
"edit_sanction.global_settings": "Global Settings",
219+
"edit_sanction.ignore_check_if_under": "Do not screen if the text contains less than <NbNumbers/> characters",
220220
"edit_sanction.nationality": "Nationality",
221221
"edit_sanction.nationality_placeholder": "Country code",
222222
"edit_sanction.passport_number": "Passport number",

packages/app-builder/src/locales/fr/scenarios.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,10 @@
213213
"edit_sanction.entity_type.thing": "Toutes",
214214
"edit_sanction.entity_type.tooltip": "Choisir un type d'entité autre que 'Toutes' vous permet d'utiliser des filtres de recherche plus détaillés, et réduit les faux positifs.",
215215
"edit_sanction.entity_type.vehicle": "Véhicule",
216-
"edit_sanction.global_settings": "Paramètres globaux",
217-
"edit_sanction.ignore_check_if_under": "Ne pas lancer le filtrage si le texte reçu contient moins de <NbNumbers /> lettres",
218216
"edit_sanction.exclude_numbers": "Exclure les nombres",
219217
"edit_sanction.exclude_numbers.tooltip": "Tous les nombres seront supprimés du texte reçu avant de faire la recherche. Cela peut aider à réduire les faux positifs lors du filtrage, causés par des nombres dans les noms, les adresses ou les identifiants.",
218+
"edit_sanction.global_settings": "Paramètres globaux",
219+
"edit_sanction.ignore_check_if_under": "Ne pas lancer le filtrage si le texte reçu contient moins de <NbNumbers /> lettres",
220220
"edit_sanction.nationality": "Nationalité",
221221
"edit_sanction.nationality_placeholder": "Code pays",
222222
"edit_sanction.passport_number": "Numéro de passeport",

packages/app-builder/src/routes/_builder+/scenarios+/$scenarioId+/i+/$iterationId+/sanctions.$sanctionId.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import { FormErrorOrDescription } from '@app-builder/components/Form/Tanstack/Fo
1010
import { FormInput } from '@app-builder/components/Form/Tanstack/FormInput';
1111
import { setToastMessage } from '@app-builder/components/MarbleToaster';
1212
import { FieldAstFormula } from '@app-builder/components/Scenario/Sanction/FieldAstFormula';
13-
import { ScreeningTermIgnoreList } from '@app-builder/components/Scenario/Sanction/ScreeningTermIgnoreList';
1413
import { FieldDataset } from '@app-builder/components/Scenario/Sanction/FieldDataset';
1514
import { FieldEntityType } from '@app-builder/components/Scenario/Sanction/FieldEntityType';
1615
import { FieldNode } from '@app-builder/components/Scenario/Sanction/FieldNode';
@@ -19,6 +18,7 @@ import { FieldOutcomes } from '@app-builder/components/Scenario/Sanction/FieldOu
1918
import { FieldRuleGroup } from '@app-builder/components/Scenario/Sanction/FieldRuleGroup';
2019
import { FieldSkipIfUnder } from '@app-builder/components/Scenario/Sanction/FieldSkipIfUnder';
2120
import { FieldToolTip } from '@app-builder/components/Scenario/Sanction/FieldToolTip';
21+
import { ScreeningTermIgnoreList } from '@app-builder/components/Scenario/Sanction/ScreeningTermIgnoreList';
2222
import { SEARCH_ENTITIES } from '@app-builder/constants/sanction-check-entity';
2323
import useIntersection from '@app-builder/hooks/useIntersection';
2424
import { type AstNode, NewUndefinedAstNode } from '@app-builder/models';
@@ -219,9 +219,9 @@ export default function SanctionDetail() {
219219
const { submit, data } = useFetcher<typeof action>();
220220
const lastData = data as
221221
| {
222-
status: 'error' | 'success';
223-
errors?: z.typeToFlattenedError<EditSanctionForm>;
224-
}
222+
status: 'error' | 'success';
223+
errors?: z.typeToFlattenedError<EditSanctionForm>;
224+
}
225225
| undefined;
226226
const scenario = useCurrentScenario();
227227
const ruleGroups = useRuleGroups();

packages/app-builder/src/routes/ressources+/scenarios+/$scenarioId+/$iterationId+/rules+/create.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,10 @@ export function CreateRule({
7474
>
7575
<Icon icon="plus" className="text-grey-00 size-5" />
7676
<div className="flex w-full flex-col items-start">
77-
<span className="text-grey-00 font-normal">
78-
{t('scenarios:create_rule.title')}
77+
<span className="text-grey-00 font-normal">{t('scenarios:create_rule.title')}</span>
78+
<span className="text-s text-grey-50 font-normal">
79+
{t('scenarios:create_rule.description')}
7980
</span>
80-
<span className="text-s text-grey-50 font-normal">{t('scenarios:create_rule.description')}</span>
8181
</div>
8282
</Button>
8383
</fetcher.Form>

packages/marble-api/openapis/marblecore-api.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,14 @@ paths:
175175
/scenario-iterations/{scenarioIterationId}/sanction-check/{sanctionCheckConfigId}:
176176
$ref: ./marblecore-api/scenario-iterations.yml#/~1scenario-iterations~1{scenarioIterationId}~1sanction-check~1{sanctionCheckConfigId}
177177

178-
# SANCTION CHECKS
178+
# SCREENINGS
179179

180180
/sanction-checks:
181181
$ref: ./marblecore-api/sanction-checks.yml#/~1sanction-checks
182182
/sanction-checks/datasets:
183183
$ref: ./marblecore-api/sanction-checks.yml#/~1sanction-checks~1datasets
184-
/sanction-checks/{sanctionCheckId}/files:
185-
$ref: ./marblecore-api/sanction-checks.yml#/~1sanction-checks~1{sanctionCheckId}~1files
184+
/sanction-checks/{screeningId}/files:
185+
$ref: ./marblecore-api/sanction-checks.yml#/~1sanction-checks~1{screeningId}~1files
186186
/sanction-checks/matches/{matchId}:
187187
$ref: ./marblecore-api/sanction-checks.yml#/~1sanction-checks~1matches~1{matchId}
188188
/sanction-checks/matches/{matchId}/enrich:

packages/marble-api/openapis/marblecore-api/_schemas.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ ScenarioIterationRuleDto:
230230
ScenarioValidationDto:
231231
$ref: scenario-iterations.yml#/components/schemas/ScenarioValidationDto
232232

233-
# SANCTION CHECKS
233+
# SCREENINGS
234234

235235
OpenSanctionsCatalogDataset:
236236
$ref: sanction-checks.yml#/components/schemas/OpenSanctionsCatalogDataset

packages/marble-api/openapis/marblecore-api/sanction-checks.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/sanction-checks:
22
get:
33
tags:
4-
- Sanction Check
4+
- Screening
55
summary: List screenings for a decision
66
operationId: listSanctionChecks
77
parameters:
@@ -24,7 +24,7 @@
2424
/sanction-checks/datasets:
2525
get:
2626
tags:
27-
- Sanction Check
27+
- Screening
2828
summary: List Open Sanction Dataset
2929
operationId: listOpenSanctionDatasets
3030
responses:
@@ -37,7 +37,7 @@
3737
/sanction-checks/freshness:
3838
get:
3939
tags:
40-
- Sanction Check
40+
- Screening
4141
summary: Retrieve the freshness of sanction datasets
4242
operationId: getDatasetsFreshness
4343
responses:
@@ -50,7 +50,7 @@
5050
/sanction-checks/{screeningId}/files:
5151
get:
5252
tags:
53-
- Sanction Check
53+
- Screening
5454
summary: List files for screening
5555
operationId: listSanctionCheckFiles
5656
parameters:
@@ -73,7 +73,7 @@
7373
/sanction-checks/matches/{matchId}:
7474
patch:
7575
tags:
76-
- Sanction Check
76+
- Screening
7777
summary: Update the status of a screening match
7878
operationId: updateSanctionCheckMatch
7979
parameters:
@@ -101,7 +101,7 @@
101101
/sanction-checks/matches/{matchId}/enrich:
102102
post:
103103
tags:
104-
- Sanction Check
104+
- Screening
105105
summary: Enrich the match payload with complete data
106106
operationId: enrichSanctionCheckMatch
107107
parameters:
@@ -126,7 +126,7 @@
126126
/sanction-checks/search:
127127
post:
128128
tags:
129-
- Sanction Check
129+
- Screening
130130
summary: Search possible matches
131131
operationId: searchSanctionCheckMatches
132132
requestBody:
@@ -147,7 +147,7 @@
147147
/sanction-checks/refine:
148148
post:
149149
tags:
150-
- Sanction Check
150+
- Screening
151151
summary: Try refine the search
152152
operationId: refineSanctionCheck
153153
requestBody:

0 commit comments

Comments
 (0)