Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion apps/ocp-plugin/src/components/AppContext/AppContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import { getUser } from '@openshift-console/dynamic-plugin-sdk/lib/app/core/redu
import { useSelector } from 'react-redux';
import { useFetch } from '../../hooks/useFetch';
import { apiProxy } from '../../utils/apiCalls';
import QuickStartHost from '@flightctl/ui-components/src/components/QuickStart/QuickStartHost';

import '@flightctl/ui-components/src/styles/global.css';
import './AppContext.css';
Expand Down Expand Up @@ -59,7 +60,11 @@ export const OCPPluginAppContext: React.FC<React.PropsWithChildren<{ value: AppC
children,
value,
}) => {
return <AppContext.Provider value={value}>{children}</AppContext.Provider>;
return (
<AppContext.Provider value={value}>
<QuickStartHost>{children}</QuickStartHost>
</AppContext.Provider>
);
};

const appRoutes = {
Expand Down
2 changes: 1 addition & 1 deletion apps/ocp-plugin/src/components/common/WithPageLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const WithPageLayoutContent = ({ children }: React.PropsWithChildren) => {

return (
<WithPageLayoutRoot>
<PageNavigation showSettings={false} />
<PageNavigation />
{children}
</WithPageLayoutRoot>
);
Expand Down
9 changes: 6 additions & 3 deletions apps/standalone/src/app/components/AppLayout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import PageNavigation from '@flightctl/ui-components/src/components/common/PageN
import { useTranslation } from '@flightctl/ui-components/src/hooks/useTranslation';
import { SystemRestoreProvider } from '@flightctl/ui-components/src/hooks/useSystemRestoreContext';
import { PermissionsContextProvider } from '@flightctl/ui-components/src/components/common/PermissionsContext';
import QuickStartHost from '@flightctl/ui-components/src/components/QuickStart/QuickStartHost';
import { useBrandLogo } from '../../hooks/useBrandLogo';

import AppNavigation from './AppNavigation';
Expand Down Expand Up @@ -118,9 +119,11 @@ const AppLayout = () => {
return (
<OrganizationGuard>
<PermissionsContextProvider>
<SystemRestoreProvider>
<AppLayoutContent />
</SystemRestoreProvider>
<QuickStartHost>
<SystemRestoreProvider>
<AppLayoutContent />
</SystemRestoreProvider>
</QuickStartHost>
</PermissionsContextProvider>
</OrganizationGuard>
);
Expand Down
37 changes: 36 additions & 1 deletion libs/i18n/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -574,8 +574,10 @@
"OS mode: Unknown": "OS mode: Unknown",
"Organization ID": "Organization ID",
"Change Organization": "Change Organization",
"Copy login command": "Copy login command",
"Settings": "Settings",
"Show quick start guide": "Show quick start guide",
"Hide quick start guide": "Hide quick start guide",
"Copy login command": "Copy login command",
"Fleet not found": "Fleet not found",
"We could not find the fleet with id <1>{id}</1>": "We could not find the fleet with id <1>{id}</1>",
"Device not found": "Device not found",
Expand Down Expand Up @@ -1669,6 +1671,39 @@
"All good!": "All good!",
"Tasks": "Tasks",
"View the health of your edge environment and explore details across devices, fleets, and security.": "View the health of your edge environment and explore details across devices, fleets, and security.",
"{{count}} minutes_one": "{{count}} minute",
"{{count}} minutes_other": "{{count}} minutes",
"{{count}} tasks_one": "{{count}} task",
"{{count}} tasks_other": "{{count}} tasks",
"Locked": "Locked",
"Prerequisites": "Prerequisites",
"Complete \"{{prevPhaseTitle}}\"": "Complete \"{{prevPhaseTitle}}\"",
"Prerequisites (1)": "Prerequisites (1)",
"To show it again, open Settings in the toolbar above and choose Show quick start guide.": "To show it again, open Settings in the toolbar above and choose Show quick start guide.",
"Quick start guide": "Quick start guide",
"{{completed}}/{{total}} phases complete": "{{completed}}/{{total}} phases complete",
"Expand guide": "Expand guide",
"Collapse guide": "Collapse guide",
"Follow these phases to get your edge management environment up and running.": "Follow these phases to get your edge management environment up and running.",
"Progress": "Progress",
"{{completed}} of {{total}}": "{{completed}} of {{total}}",
"About {{count}} minutes_one": "About {{count}} minute",
"About {{count}} minutes_other": "About {{count}} minutes",
"Welcome & Orientation": "Welcome & Orientation",
"Get familiar with {{ productName }} and learn how to navigate the console.": "Get familiar with {{ productName }} and learn how to navigate the console.",
"Build an OS Image": "Build an OS Image",
"Create a custom edge OS image so devices auto-register on boot.": "Create a custom edge OS image so devices auto-register on boot.",
"Enroll Your First Device": "Enroll Your First Device",
"Boot a device with your image, then approve it to bring it under management.": "Boot a device with your image, then approve it to bring it under management.",
"Create and Manage Fleets": "Create and Manage Fleets",
"Group devices that share identical or similar configuration and update policy for centralized management.": "Group devices that share identical or similar configuration and update policy for centralized management.",
"Close guide": "Close guide",
"Minimize guide": "Minimize guide",
"Explore the console": "Explore the console",
"Orientation": "Orientation",
"Some description here.": "Some description here.",
"Sections visible to you depend on your permissions.": "Sections visible to you depend on your permissions.",
"Drag guide": "Drag guide",
"Failed to retrieve repository details": "Failed to retrieve repository details",
"Failed to retrieve the resource syncs": "Failed to retrieve the resource syncs",
"The repository cannot be modified at the moment because some of its details could not be obtained.": "The repository cannot be modified at the moment because some of its details could not be obtained.",
Expand Down
3 changes: 3 additions & 0 deletions libs/ui-components/src/components/OverviewPage/Overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { RESOURCE, VERB } from '../../types/rbac';
import PageWithPermissions from '../common/PageWithPermissions';
import { GlobalSystemRestoreBanners } from '../SystemRestore/SystemRestoreBanners';

import QuickStart from '../QuickStart/QuickStart';
import AlertsCard from './Cards/Alerts/AlertsCard';
import StatusCard from './Cards/Status/StatusCard';
import TasksCard from './Cards/Tasks/TasksCard';
Expand All @@ -31,6 +32,8 @@ const Overview = () => {
>
<GlobalSystemRestoreBanners className="pf-v6-u-py-0" />

<QuickStart />

<Grid hasGutter>
<GridItem md={alertsEnabled ? 9 : 12}>
<Grid hasGutter>
Expand Down
7 changes: 7 additions & 0 deletions libs/ui-components/src/components/QuickStart/QuickStart.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.fctl-quickstart-card {
margin-bottom: var(--pf-t--global--spacer--xl);
}

.fctl-quickstart-card__expanded {
border-top: 3px solid var(--pf-t--global--color--brand--default, #06c);
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}
Loading
Loading