What is a domain?
A domain is a top-level thematic area that groups a set of related sustainability indicators under a common subject. Domains provide the primary navigation structure of the platform — every indicator belongs to exactly one domain. Typical domain themes in a tourism sustainability context include:- Environmental — air quality, water consumption, biodiversity, waste management, energy use
- Economic — tourism revenue, employment, occupancy rates, business activity
- Social — resident wellbeing, housing, infrastructure, community services
- Cultural — cultural heritage preservation, local events, visitor engagement with culture
Domain properties
Each domain object has the following fields:| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the domain |
name | string | Display name shown in cards and navigation |
DomainColor | string | Brand colour used for the domain card and chart accents |
DomainIcon | string | Icon identifier displayed on the domain card |
DomainCarouselImages | string[] | Array of image paths used in the domain’s image carousel |
subdomains | object[] | List of dimension objects, each with a name field |
Subdomains (also called dimensions) are the second level of categorisation within a domain. See the Dimensions page for details.
Domain field reference
Unique identifier for the domain. Used in API routes such as
/api/domains/:id and in URL construction for indicator browsing.Human-readable domain name. The indicator browsing route uses the lowercased name:
/indicators/${domain.name.toLowerCase()}.Hex colour code or named colour applied to the domain card and used to visually distinguish domains in the UI.
Icon identifier (from the platform’s supported icon set) displayed on the domain card.
One or more image paths displayed as a carousel on the domain card or detail view.
Array of dimension objects belonging to this domain. Each object has at minimum a
name field.Domain API endpoints
Browsing domains in the UI
Domain selection page
The/domains route renders a grid of domain cards. Each card shows the domain’s name, icon, colour, and a carousel of images. Clicking a card navigates to the indicator list for that domain.
Indicator list by domain
Clicking a domain card navigates to:Environmental links to /indicators/environmental. This route renders the DomainTemplate component filtered to that domain’s indicators.
All indicators
The/indicators route (without a domain path) shows all indicators across every domain, with an option to filter by domain using the domain selector.
Managing domains (admin)
Administrators manage domains from the/domains-management route. From this page you can:
- View all existing domains with their properties
- Create a new domain at
/new_domain - Edit an existing domain at
/edit_domain/:id - Delete a domain (this also removes its associated indicators and dimensions)
