Skip to content

Commit b4717de

Browse files
KedaeJipegien
authored andcommitted
feat(entitySetting): allow administrators to customize entity display names (#14873)
Add custom_name and custom_name_plural fields to EntitySetting module. This allows platform administrators to define custom display names for any core entity type in Settings > Customization > Entity types. Backend changes: - Add custom_name/custom_name_plural to EntitySetting types, GraphQL schema, and module definition - Fields are nullable strings, stored platform-wide Frontend changes: - Add editable display name fields to EntitySettingSettings component - Add reset-to-default buttons for each field - Add useEntityLabel hook for resolving custom vs default entity labels - Update entitySetting fragment to include new fields - Expose new fields in useEntitySettings hook "Diplay name customization, test coverage, and documentation. add translation keys, fixing error from ci/cd
1 parent 9e189d8 commit b4717de

File tree

217 files changed

+1054
-299
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

217 files changed

+1054
-299
lines changed

.claude/settings.local.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"permissions": {
3+
"allow": [
4+
"WebFetch(domain:docs.opencti.io)",
5+
"WebFetch(domain:raw.githubusercontent.com)"
6+
]
7+
}
8+
}
44.4 KB
Loading

docs/docs/administration/entities.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,27 @@ You can specify which entities to hide on a platform-wide basis from "Settings >
1818
An overview of hidden entity types is available in the "Hidden entity types" field in "Settings > Parameters."
1919

2020

21+
## Custom display name
22+
23+
This configuration allows you to rename any entity type across the platform. When you set a custom display name, it replaces the default label everywhere in the interface: navigation menus, creation buttons and dialogs, list columns, filter dropdowns, knowledge graphs, and search results.
24+
25+
To set a custom display name:
26+
27+
1. Navigate to "Settings > Customization > Entity types" and click on the desired entity type.
28+
2. In the "Custom display name" section, fill in the **Display name (singular)** and/or **Display name (plural)** fields.
29+
3. The change is applied immediately — press Enter or click outside the field to save.
30+
31+
Leave the fields empty to revert to the default name.
32+
33+
![Custom display name](./assets/custom-display-name.png)
34+
35+
!!! example "Example"
36+
37+
Renaming "Report" to "Intelligence Report" (singular) and "Intelligence Reports" (plural) will update every place in the platform where "Report" or "Reports" was previously displayed.
38+
39+
Note that it is a local change. When you export data in STIX from the platform, it keeps the STIX 2.1 name.
40+
41+
2142
## Automatic references at file upload
2243

2344
This configuration enables an entity to automatically construct an external reference from the uploaded file.

opencti-platform/docker

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Subproject commit 796e3dcac78ad79448b50148800c4d5acc20db66

opencti-platform/opencti-front/lang/back/de.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"Current state date": "Aktuelles Statusdatum",
185185
"Current stated date": "Aktuell angegebenes Datum",
186186
"Current_state_hash": "Aktueller_Zustand_Hash",
187+
"Custom display name": "Benutzerdefinierter Anzeigename",
188+
"Custom display name (plural)": "Benutzerdefinierter Anzeigename (Plural)",
187189
"CVSS2 Access Complexity (AC)": "CVSS2 Zugriffskomplexität (AC)",
188190
"CVSS2 Access Vector (AV)": "CVSS2 Zugriffsvektor (AV)",
189191
"CVSS2 Authentication (Au)": "CVSS2 Authentifizierung (Au)",

opencti-platform/opencti-front/lang/back/en.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"Current state date": "Current state date",
185185
"Current stated date": "Current stated date",
186186
"Current_state_hash": "Current_state_hash",
187+
"Custom display name": "Custom display name",
188+
"Custom display name (plural)": "Custom display name (plural)",
187189
"CVSS2 Access Complexity (AC)": "CVSS2 Access Complexity (AC)",
188190
"CVSS2 Access Vector (AV)": "CVSS2 Access Vector (AV)",
189191
"CVSS2 Authentication (Au)": "CVSS2 Authentication (Au)",

opencti-platform/opencti-front/lang/back/es.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"Current state date": "Fecha de estado actual",
185185
"Current stated date": "Fecha actual",
186186
"Current_state_hash": "Estado_actual",
187+
"Custom display name": "Nombre de visualización personalizado",
188+
"Custom display name (plural)": "Nombre de visualización personalizado (plural)",
187189
"CVSS2 Access Complexity (AC)": "Complejidad de acceso CVSS2 (AC)",
188190
"CVSS2 Access Vector (AV)": "Vector de acceso CVSS2 (AV)",
189191
"CVSS2 Authentication (Au)": "Autenticación CVSS2 (Au)",

opencti-platform/opencti-front/lang/back/fr.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"Current state date": "Date de l'état actuel",
185185
"Current stated date": "Current stated date",
186186
"Current_state_hash": "État actuel",
187+
"Custom display name": "Nom d'affichage personnalisé",
188+
"Custom display name (plural)": "Nom d'affichage personnalisé (pluriel)",
187189
"CVSS2 Access Complexity (AC)": "Complexité d'accès CVSS2 (AC)",
188190
"CVSS2 Access Vector (AV)": "Vecteur d'accès CVSS2 (AV)",
189191
"CVSS2 Authentication (Au)": "CVSS2 Authentification (Au)",

opencti-platform/opencti-front/lang/back/it.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"Current state date": "Data dello stato corrente",
185185
"Current stated date": "Data dichiarata corrente",
186186
"Current_state_hash": "Hash dello stato corrente",
187+
"Custom display name": "Nome visualizzato personalizzato",
188+
"Custom display name (plural)": "Nome visualizzato personalizzato (plurale)",
187189
"CVSS2 Access Complexity (AC)": "Complessità di accesso CVSS2 (AC)",
188190
"CVSS2 Access Vector (AV)": "CVSS2 Vettore di accesso (AV)",
189191
"CVSS2 Authentication (Au)": "Autenticazione CVSS2 (Au)",

opencti-platform/opencti-front/lang/back/ja.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,8 @@
184184
"Current state date": "摂取実行",
185185
"Current stated date": "現在の記載日",
186186
"Current_state_hash": "現在の状態_ハッシュ",
187+
"Custom display name": "カスタム表示名",
188+
"Custom display name (plural)": "カスタム表示名(複数形)",
187189
"CVSS2 Access Complexity (AC)": "CVSS2 アクセス複雑度 (AC)",
188190
"CVSS2 Access Vector (AV)": "CVSS2 アクセスベクトル (AV)",
189191
"CVSS2 Authentication (Au)": "CVSS2 認証 (Au)",

0 commit comments

Comments
 (0)