chore(dashboard): text changes and fixes (#7925)

- Improvements to existing texts
- Add subtitles to sections where useful.
- Added the ability to edit the message shown in a list when no records are found + change the message where necessary
- Change documentation link to `https://docs.medusajs.com/v2`.
This commit is contained in:
Shahed Nasser
2024-07-05 12:14:10 +00:00
committed by GitHub
parent f4dd390ab1
commit eafa3560ae
41 changed files with 377 additions and 149 deletions
@@ -1,4 +1,4 @@
import { Container, Heading } from "@medusajs/ui"
import { Container, Heading, Text } from "@medusajs/ui"
import { keepPreviousData } from "@tanstack/react-query"
import { useTranslation } from "react-i18next"
import { DataTable } from "../../../../../components/table/data-table"
@@ -55,7 +55,12 @@ export const WorkflowExecutionListTable = () => {
return (
<Container className="divide-y p-0">
<div className="flex items-center justify-between px-6 py-4">
<Heading>{t("workflowExecutions.domain")}</Heading>
<div>
<Heading>{t("workflowExecutions.domain")}</Heading>
<Text className="text-ui-fg-subtle" size="small">
{t(`workflowExecutions.subtitle`)}
</Text>
</div>
</div>
<DataTable
table={table}
@@ -67,6 +72,9 @@ export const WorkflowExecutionListTable = () => {
search
pagination
queryObject={raw}
noRecords={{
message: t("workflowExecutions.list.noRecordsMessage"),
}}
/>
</Container>
)