Skip to content

Commit b29f73b

Browse files
committed
Fixes from SGSIP-371
1 parent 9b6edd8 commit b29f73b

File tree

3 files changed

+65
-53
lines changed

3 files changed

+65
-53
lines changed

src/components/Navigation.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,20 @@ const Navigation = ({ currentPath }) => {
1414
return (
1515
<nav className="ds_site-navigation">
1616
<ul className="ds_site-navigation__list">
17-
{navItems.map((item, index) => (
18-
<li key={index} className="ds_site-navigation__item">
19-
<a
20-
href={item.href}
21-
className={`ds_site-navigation__link ${currentPath === item.href ? 'ds_current' : ''}`}
22-
aria-current={currentPath === item.href ? 'true' : 'false'}
23-
>
24-
<span className="label-nav">{item.label}</span>
25-
</a>
26-
</li>
27-
))}
17+
{navItems.map((item, index) => {
18+
const isActive = currentPath === item.href || (item.href === '/datasets' && currentPath.startsWith('/dataset'));
19+
return (
20+
<li key={index} className="ds_site-navigation__item">
21+
<a
22+
href={item.href}
23+
className={`ds_site-navigation__link ${isActive ? 'ds_current' : ''}`}
24+
aria-current={isActive ? 'true' : 'false'}
25+
>
26+
<span className="label-nav">{item.label}</span>
27+
</a>
28+
</li>
29+
);
30+
})}
2831
</ul>
2932
</nav>
3033
);

src/pages/About.js

Lines changed: 50 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,48 @@
1-
import React from 'react';
1+
import React, { useEffect } from 'react';
22
import '@scottish-government/design-system/dist/css/design-system.min.css';
3-
import { Link } from 'react-router-dom'; // Import Link for routing
3+
import { Link } from 'react-router-dom';
44
import BackToTop from '../components/BackToTop';
5-
import { useEffect } from 'react';
6-
75

86
const About = () => {
97
useEffect(() => {
10-
// Dynamically set the page title
118
document.title = "Cobalt | About";
12-
}, []);
9+
}, []);
1310

14-
1511
return (
1612
<div className="ds_page__middle">
1713
<div className="ds_wrapper">
1814
<main id="main-content">
19-
{/* Page Header */}
2015
<header className="ds_page-header">
2116
<h1 className="ds_page-header__title">About</h1>
22-
2317
</header>
18+
<p className="ds_h3">Cobalt Open Data Portal</p>
19+
<p>
20+
The Scottish Government’s Open Data team is running an{' '}
21+
<a href="https://servicemanual.gov.scot/alpha" className="ds_link">
22+
Agile alpha
23+
</a>{' '}
24+
to build prototypes to test different ideas and explore new approaches for{' '}
25+
<a href="https://statistics.gov.scot" className="ds_link">
26+
statistics.gov.scot
27+
</a>. Prototypes will be focused on addressing the high priority user needs identified during discovery, as well as addressing the key problems and challenges our users face. This Cobalt Open Data Portal is one of those prototypes.
28+
</p>
2429

25-
<p className="ds_h3">
26-
Cobalt Open Data Portal
27-
</p>
28-
<p>The Scottish Government’s Open Data team are running an Agile alpha to build prototypes to test different ideas and explore new approaches for statistics.gov.scot. Prototypes will be focused on addressing the high priority user needs that were identified during discovery, as well as addressing the key problems and challenges our users face. This Cobalt Open Data Portal is one of those prototypes.
29-
</p>
30-
{/* Introduction Section */}
3130
<section className="ds_layout ds_layout--article">
3231
<div className="ds_layout__content">
3332
<h2 className="ds_h3">Our Mission</h2>
3433
<ul>
35-
<li>
36-
To support and enable Data Publishers in publishing and updating data and metadata easily.
37-
</li>
38-
<li>
39-
To support and enable Users to easily discover, find, access, and use the data and metadata they need.
40-
</li>
41-
<li>
42-
To provide a data service that is accessible, usable, well-maintained, and trusted.
43-
</li>
44-
45-
</ul>
34+
<li>To support and enable Data Publishers in publishing and updating data and metadata easily.</li>
35+
<li>To support and enable Users to easily discover, find, access, and use the data and metadata they need.</li>
36+
<li>To provide a data service that is accessible, usable, well-maintained, and trusted.</li>
37+
</ul>
4638
</div>
4739
</section>
4840

4941
<section className="ds_layout ds_layout--article">
5042
<div className="ds_layout__content">
5143
<h2 className="ds_h3">Vision</h2>
5244
<p>
53-
We believe everyone has the right to share, access, and use data. We aim to bring you a wide and comprehensive range of open government data and statistics in one place to support openness, transparency and empowerment.
45+
We believe everyone has the right to share, access, and use data. We aim to bring you a wide and comprehensive range of open government data and statistics in one place to support openness, transparency, and empowerment.
5446
</p>
5547
</div>
5648
</section>
@@ -59,32 +51,49 @@ const About = () => {
5951
<div className="ds_layout__content">
6052
<h2 className="ds_h3">History</h2>
6153
<p>
62-
In 2015, the Scottish Government published an Open Data Strategy to help achieve its data vision – a Scotland which recognises the value of data and responsibly make use of data to improve public services and deliver wider societal and economic benefits for all. A key National Action to emerge from the strategy was the scoping and establishment of a Scottish Data Discovery Site to be in place for early 2016.
63-
64-
In February 2016, the Scottish Government launched Statistics.gov.scot, a new site for publishing the Official Statistics of Scotland and the data behind them. The site is actively managed by the Scottish Government’s Open Data Team that sits within the Digital Directorate’s Data Division.
65-
66-
The Scottish Government made a commitment to review the site as part of Scotland’s Open Government Action Plan 2021-25 to ensure the site is meeting user needs. In 2024, the Open Data team completed a discovery aimed better understanding statistics.gov.scot. In 2025, we published a blog updating you on our progress as well as the full report on the programme of user research completed as part of the 2024 discovery.
54+
In 2015, the Scottish Government published an{' '}
55+
<a href="https://www.gov.scot/publications/open-data-strategy/" className="ds_link">
56+
Open Data Strategy
57+
</a>{' '}
58+
to help achieve its data vision – a Scotland which recognizes the value of data and responsibly makes use of data to improve public services and deliver wider societal and economic benefits for all. A key National Action to emerge from the strategy was the scoping and establishment of a{' '}
59+
<a href="https://www.gov.scot/publications/open-data-strategy/pages/5" className="ds_link">
60+
Scottish Data Discovery Site
61+
</a>{' '}
62+
to be in place for early 2016. In February 2016, the Scottish Government launched{' '}
63+
<a href="https://statistics.gov.scot" className="ds_link">
64+
Statistics.gov.scot
65+
</a>, a new site for publishing the Official Statistics of Scotland and the data behind them. The site is actively managed by the Scottish Government’s Open Data Team that sits within the Digital Directorate’s Data Division.
66+
</p>
67+
<p>
68+
The Scottish Government made a{' '}
69+
<a href="https://www.gov.scot/publications/open-government-action-plan-2021-to-2025-commitment-3-data-and-digital-commitment/" className="ds_link">
70+
commitment
71+
</a>{' '}
72+
to review the site as part of Scotland’s Open Government Action Plan 2021-25 to ensure the site is meeting user needs. In 2024, the Open Data team completed a discovery aimed at better understanding statistics.gov.scot. In 2025, we published a{' '}
73+
<a href="https://blogs.gov.scot/digital/2025/01/23/statistics-gov-scot-improvement-project-discovery/" className="ds_link">
74+
blog
75+
</a>{' '}
76+
updating you on our progress as well as the{' '}
77+
<a href="https://www.gov.scot/publications/statistics-gov-scot-improvement-project-report-discovery-user-research/" className="ds_link">
78+
full report
79+
</a>{' '}
80+
on the program of user research completed as part of the 2024 discovery.
6781
</p>
6882
</div>
6983
</section>
7084

71-
72-
7385
<section className="ds_layout ds_layout--article">
7486
<div className="ds_layout__content">
75-
<h2 className="ds_h3 ">Contact Us</h2>
76-
<p>
77-
If you'd like to get in contact, please reach out through the contact form below.
78-
</p>
87+
<h2 className="ds_h3">Contact Us</h2>
88+
<p>If you'd like to get in contact, please reach out through the contact form below.</p>
7989
<Link to="/contact" className="ds_button ds_button--primary">
80-
Contact us
81-
</Link>
90+
Contact us
91+
</Link>
8292
</div>
8393
</section>
8494
</main>
8595
</div>
8696
<BackToTop />
87-
8897
</div>
8998
);
9099
};

src/pages/Dataset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const Dataset = () => {
171171
<dd className="ds_metadata__value"> {format(new Date(dataset.metadata_created), 'dd MMMM yyyy')}</dd>
172172
</div>
173173
<div className="ds_metadata__item">
174-
<dt className="ds_metadata__key">Last Modified</dt>
174+
<dt className="ds_metadata__key">Last Updated</dt>
175175
<dd className="ds_metadata__value"> {format(new Date(dataset.metadata_modified), 'dd MMMM yyyy')}</dd>
176176
</div>
177177
<div className="ds_metadata__item">

0 commit comments

Comments
 (0)