Skip to content

Commit

Permalink
update snapshot wordings
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscox committed Nov 5, 2024
1 parent 828a81b commit ef70d75
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 5 deletions.
7 changes: 4 additions & 3 deletions src/intl/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -1712,8 +1712,8 @@
}
},
"volumeSnapshots": {
"documentTitle": "Volume snapshots",
"title": "Volume snapshots",
"documentTitle": "Snapshots",
"title": "Snapshots",
"list": {
"name": "Name",
"volumeName": "Parent volume",
Expand All @@ -1734,7 +1734,8 @@
"delete": "Delete"
},
"noSnapshots": {
"title": "You don't have any volume snapshots yet"
"title": "You don't have any volume snapshots yet",
"description": "Snapshots are point-in-time copies of your volumes, allowing you to restore or create new volumes from previous states"
}
},
"createVolume": {
Expand Down
11 changes: 10 additions & 1 deletion src/modules/deployment/deployment-logs/replicas.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
import { Meta } from '@storybook/react';

import { ApiMock } from 'src/api/mock/mock-api';
import { create } from 'src/utils/factories';

import { Replicas } from './replicas';

export default {
title: 'Modules/ServiceOverview/Replicas',
parameters: { className: 'max-w-main' },
parameters: { mockApi, className: 'max-w-main' },
} satisfies Meta;

function mockApi() {
const api = new ApiMock();

api.mockEndpoint('getServiceMetrics', () => ({
metrics: [],
}));
}

const instances = [
create.deploymentInstance({
status: 'healthy',
Expand Down
8 changes: 7 additions & 1 deletion src/pages/volumes/volume-snapshots/volume-snapshots-list.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@ export function VolumeSnapshotsList({ snapshots }: { snapshots: VolumeSnapshot[]
const volumes = useVolumes();

if (snapshots.length === 0) {
return <NoResource title={<T id="noSnapshots.title" />} description={null} cta={null} />;
return (
<NoResource
title={<T id="noSnapshots.title" />}
description={<T id="noSnapshots.description" />}
cta={null}
/>
);
}

return (
Expand Down

0 comments on commit ef70d75

Please sign in to comment.