refactor(flows): reverse the order of flows to display the latest ones first

refactor(MainPage): comment out code that adds "From Store" sidebar navigation item
feat(flow): add date_created property to FlowType to track the creation date of flows
This commit is contained in:
cristhianzl 2023-11-13 19:25:56 -03:00
commit 75e144dd26
3 changed files with 8 additions and 6 deletions

View file

@ -32,6 +32,7 @@ export default function FlowsComponent() {
>
{flows
.filter((flow) => !flow.is_component)
.reverse()
.map((flow, idx) => (
<CardComponent
key={idx}

View file

@ -33,12 +33,12 @@ export default function HomePage(): JSX.Element {
},
];
if (hasStore) {
sidebarNavItems.push({
title: "From Store",
href: "/from-store",
});
}
// if (hasStore) {
// sidebarNavItems.push({
// title: "From Store",
// href: "/from-store",
// });
// }
// Set a null id
useEffect(() => {

View file

@ -9,6 +9,7 @@ export type FlowType = {
style?: FlowStyleType;
is_component?: boolean;
parent?: string;
date_created?: string;
};
export type NodeType = {
id: string;