From bd941c3333fc3ed8aeee30bd1df1ca4e6dd65653 Mon Sep 17 00:00:00 2001 From: Ciaran Morinan Date: Fri, 29 May 2026 14:44:24 +0100 Subject: [PATCH] update type icons in migrations, add more icons --- ...d-doc-company-and-person-types.migration.ts | 11 +++++------ .../migrations/024-add-flow-types.migration.ts | 18 +++++++++--------- .../090-add-aviation-types.dev.migration.ts | 16 ++++++++-------- .../public/icons/types/book-open.svg | 1 + .../public/icons/types/bullseye-arrow.svg | 1 + .../public/icons/types/calendar-clock.svg | 1 + .../public/icons/types/circle-play.svg | 1 + .../public/icons/types/comment-quote.svg | 1 + .../public/icons/types/diagram-project.svg | 1 + apps/hash-frontend/public/icons/types/link.svg | 1 + .../public/icons/types/money-bill-transfer.svg | 1 + .../public/icons/types/person.svg | 1 + .../public/icons/types/plane-arrival.svg | 1 + .../public/icons/types/plane-departure.svg | 1 + .../public/icons/types/plane-tail.svg | 1 + .../public/icons/types/plane-up.svg | 1 + .../hash-frontend/public/icons/types/plane.svg | 1 + .../public/icons/types/tower-control.svg | 1 + .../public/icons/types/user-tie.svg | 1 + 19 files changed, 38 insertions(+), 23 deletions(-) create mode 100644 apps/hash-frontend/public/icons/types/book-open.svg create mode 100644 apps/hash-frontend/public/icons/types/bullseye-arrow.svg create mode 100644 apps/hash-frontend/public/icons/types/calendar-clock.svg create mode 100644 apps/hash-frontend/public/icons/types/circle-play.svg create mode 100644 apps/hash-frontend/public/icons/types/comment-quote.svg create mode 100644 apps/hash-frontend/public/icons/types/diagram-project.svg create mode 100644 apps/hash-frontend/public/icons/types/link.svg create mode 100644 apps/hash-frontend/public/icons/types/money-bill-transfer.svg create mode 100644 apps/hash-frontend/public/icons/types/person.svg create mode 100644 apps/hash-frontend/public/icons/types/plane-arrival.svg create mode 100644 apps/hash-frontend/public/icons/types/plane-departure.svg create mode 100644 apps/hash-frontend/public/icons/types/plane-tail.svg create mode 100644 apps/hash-frontend/public/icons/types/plane-up.svg create mode 100644 apps/hash-frontend/public/icons/types/plane.svg create mode 100644 apps/hash-frontend/public/icons/types/tower-control.svg create mode 100644 apps/hash-frontend/public/icons/types/user-tie.svg diff --git a/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/019-add-doc-company-and-person-types.migration.ts b/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/019-add-doc-company-and-person-types.migration.ts index cf2dd480bae..53227dc9cee 100644 --- a/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/019-add-doc-company-and-person-types.migration.ts +++ b/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/019-add-doc-company-and-person-types.migration.ts @@ -357,12 +357,11 @@ const migrate: MigrationFunction = async ({ { entityTypeDefinition: { title: "Person", - /** - * @todo when updating this, add plural title and set SVG icon - */ - icon: "👤", + titlePlural: "People", + icon: "/icons/types/person.svg", /** @todo improve this desc */ - description: "A human being", + description: + "An individual, typically characterized by self-awareness, reasoning, and the capacity for relationships and culture.", labelProperty: blockProtocolPropertyTypes.name.propertyTypeBaseUrl, properties: [ { @@ -418,7 +417,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Doc", description: "A written work, such as a book or article.", - icon: "/types/icons/page-lines.svg", + icon: "/icons/types/book-open.svg", titlePlural: "Docs", labelProperty: systemPropertyTypes.title.propertyTypeBaseUrl, properties: [ diff --git a/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/024-add-flow-types.migration.ts b/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/024-add-flow-types.migration.ts index 53ad176ba9d..80a6fdecd12 100644 --- a/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/024-add-flow-types.migration.ts +++ b/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/024-add-flow-types.migration.ts @@ -42,7 +42,7 @@ const migrate: MigrationFunction = async ({ allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Uses", titlePlural: "Uses", - icon: "🔗", + icon: "/icons/types/link.svg", inverse: { title: "Used By", }, @@ -65,7 +65,7 @@ const migrate: MigrationFunction = async ({ allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Scheduled By", titlePlural: "Scheduled By", - icon: "📅", + icon: "/icons/types/calendar-clock.svg", inverse: { title: "Scheduled", }, @@ -159,7 +159,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Flow Definition", titlePlural: "Flow Definitions", - icon: "📋", + icon: "/icons/types/diagram-project.svg", description: "The definition of a HASH flow.", labelProperty: blockProtocolPropertyTypes.name.propertyTypeBaseUrl, properties: [ @@ -519,7 +519,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Flow Schedule", titlePlural: "Flow Schedules", - icon: "đŸ—“ī¸", + icon: "/icons/types/calendar-clock.svg", description: "A schedule that triggers recurring executions of a flow definition.", labelProperty: blockProtocolPropertyTypes.name.propertyTypeBaseUrl, @@ -596,7 +596,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Flow Run", titlePlural: "Flow Runs", - icon: "â–ļī¸", + icon: "/icons/types/circle-play.svg", description: "An execution run of a flow.", labelProperty: blockProtocolPropertyTypes.name.propertyTypeBaseUrl, properties: [ @@ -684,7 +684,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Has Subject", - /** @todo icon */ + icon: "/icons/types/bullseye-arrow.svg", inverse: { title: "Subject Of", }, @@ -703,7 +703,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Has Object", - /** @todo icon */ + icon: "/icons/types/cube.svg", inverse: { title: "Object Of", }, @@ -722,7 +722,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Claim", titlePlural: "Claims", - icon: "đŸ’Ŧ", + icon: "/icons/types/comment-quote.svg", description: "A claim made about something.", properties: [ { @@ -763,7 +763,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Incurred In", - icon: "💰", + icon: "/icons/types/money-bill-transfer.svg", inverse: { title: "Incurred", }, diff --git a/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/090-add-aviation-types.dev.migration.ts b/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/090-add-aviation-types.dev.migration.ts index c7f729ae636..10753e82ff1 100644 --- a/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/090-add-aviation-types.dev.migration.ts +++ b/apps/hash-api/src/graph/ensure-system-graph-is-initialized/migrate-ontology-types/migrations/090-add-aviation-types.dev.migration.ts @@ -738,7 +738,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Airport", titlePlural: "Airports", - icon: "đŸĸ", + icon: "/icons/types/tower-control.svg", description: "A facility where aircraft take off and land, with infrastructure for passenger and cargo services.", labelProperty: blockProtocolPropertyTypes.name.propertyTypeBaseUrl, @@ -773,7 +773,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Airline", titlePlural: "Airlines", - icon: "đŸĻ", + icon: "/icons/types/plane-tail.svg", description: "A company that provides air transport services for passengers and/or cargo.", labelProperty: blockProtocolPropertyTypes.name.propertyTypeBaseUrl, @@ -802,7 +802,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Aircraft", titlePlural: "Aircraft", - icon: "đŸ›Šī¸", + icon: "/icons/types/plane.svg", description: "A vehicle designed for air travel, such as an airplane or helicopter.", labelProperty: registrationNumberPropertyType.metadata.recordId.baseUrl, @@ -832,7 +832,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Departs From", - icon: "đŸ›Ģ", + icon: "/icons/types/plane-departure.svg", inverse: { title: "Departure For", }, @@ -863,7 +863,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Arrives At", - icon: "đŸ›Ŧ", + icon: "/icons/types/plane-arrival.svg", inverse: { title: "Arrival For", }, @@ -895,7 +895,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Operated By", - icon: "đŸ‘¨â€âœˆī¸", + icon: "/icons/types/user-tie.svg", inverse: { title: "Operates", }, @@ -914,7 +914,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { allOf: [blockProtocolEntityTypes.link.entityTypeId], title: "Uses Aircraft", - icon: "đŸ›Šī¸", + icon: "/icons/types/plane.svg", inverse: { title: "Used For Flight", }, @@ -937,7 +937,7 @@ const migrate: MigrationFunction = async ({ entityTypeDefinition: { title: "Flight", titlePlural: "Flights", - icon: "âœˆī¸", + icon: "/icons/types/plane-up.svg", description: "A scheduled air transport service between two airports.", labelProperty: flightNumberPropertyType.metadata.recordId.baseUrl, properties: [ diff --git a/apps/hash-frontend/public/icons/types/book-open.svg b/apps/hash-frontend/public/icons/types/book-open.svg new file mode 100644 index 00000000000..b7d2af03c6d --- /dev/null +++ b/apps/hash-frontend/public/icons/types/book-open.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/bullseye-arrow.svg b/apps/hash-frontend/public/icons/types/bullseye-arrow.svg new file mode 100644 index 00000000000..2a628d4734b --- /dev/null +++ b/apps/hash-frontend/public/icons/types/bullseye-arrow.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/calendar-clock.svg b/apps/hash-frontend/public/icons/types/calendar-clock.svg new file mode 100644 index 00000000000..9cd7a0c5d75 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/calendar-clock.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/circle-play.svg b/apps/hash-frontend/public/icons/types/circle-play.svg new file mode 100644 index 00000000000..d39e763e3d8 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/circle-play.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/comment-quote.svg b/apps/hash-frontend/public/icons/types/comment-quote.svg new file mode 100644 index 00000000000..e294fe3f7ac --- /dev/null +++ b/apps/hash-frontend/public/icons/types/comment-quote.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/diagram-project.svg b/apps/hash-frontend/public/icons/types/diagram-project.svg new file mode 100644 index 00000000000..7af09d7477d --- /dev/null +++ b/apps/hash-frontend/public/icons/types/diagram-project.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/link.svg b/apps/hash-frontend/public/icons/types/link.svg new file mode 100644 index 00000000000..0646548a93a --- /dev/null +++ b/apps/hash-frontend/public/icons/types/link.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/money-bill-transfer.svg b/apps/hash-frontend/public/icons/types/money-bill-transfer.svg new file mode 100644 index 00000000000..9d9324b56fd --- /dev/null +++ b/apps/hash-frontend/public/icons/types/money-bill-transfer.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/person.svg b/apps/hash-frontend/public/icons/types/person.svg new file mode 100644 index 00000000000..542e0b43c25 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/person.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/plane-arrival.svg b/apps/hash-frontend/public/icons/types/plane-arrival.svg new file mode 100644 index 00000000000..366f6e5327d --- /dev/null +++ b/apps/hash-frontend/public/icons/types/plane-arrival.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/plane-departure.svg b/apps/hash-frontend/public/icons/types/plane-departure.svg new file mode 100644 index 00000000000..736e0818b10 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/plane-departure.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/plane-tail.svg b/apps/hash-frontend/public/icons/types/plane-tail.svg new file mode 100644 index 00000000000..f27008b9b48 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/plane-tail.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/plane-up.svg b/apps/hash-frontend/public/icons/types/plane-up.svg new file mode 100644 index 00000000000..b82f3892fa2 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/plane-up.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/plane.svg b/apps/hash-frontend/public/icons/types/plane.svg new file mode 100644 index 00000000000..5d2f5381e11 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/plane.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/tower-control.svg b/apps/hash-frontend/public/icons/types/tower-control.svg new file mode 100644 index 00000000000..45e5ab4aec1 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/tower-control.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/apps/hash-frontend/public/icons/types/user-tie.svg b/apps/hash-frontend/public/icons/types/user-tie.svg new file mode 100644 index 00000000000..9ba19fb6b49 --- /dev/null +++ b/apps/hash-frontend/public/icons/types/user-tie.svg @@ -0,0 +1 @@ + \ No newline at end of file