feat(create): show only Fresh Idea and Import Chats project types
Made-with: Cursor
This commit is contained in:
@@ -7,13 +7,14 @@ interface TypeSelectorProps {
|
|||||||
onClose: () => void;
|
onClose: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const FLOW_TYPES: {
|
const ALL_FLOW_TYPES: {
|
||||||
id: CreationMode;
|
id: CreationMode;
|
||||||
icon: string;
|
icon: string;
|
||||||
label: string;
|
label: string;
|
||||||
tagline: string;
|
tagline: string;
|
||||||
desc: string;
|
desc: string;
|
||||||
accent: string;
|
accent: string;
|
||||||
|
hidden?: boolean;
|
||||||
}[] = [
|
}[] = [
|
||||||
{
|
{
|
||||||
id: "fresh",
|
id: "fresh",
|
||||||
@@ -38,6 +39,7 @@ const FLOW_TYPES: {
|
|||||||
tagline: "Already have a repo",
|
tagline: "Already have a repo",
|
||||||
desc: "Point Atlas at your GitHub or Bitbucket repo. We'll map your stack and show what's missing.",
|
desc: "Point Atlas at your GitHub or Bitbucket repo. We'll map your stack and show what's missing.",
|
||||||
accent: "#1a3a5c",
|
accent: "#1a3a5c",
|
||||||
|
hidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: "migration",
|
id: "migration",
|
||||||
@@ -46,9 +48,12 @@ const FLOW_TYPES: {
|
|||||||
tagline: "Move an existing product",
|
tagline: "Move an existing product",
|
||||||
desc: "Bring your live product into the VIBN infrastructure. Atlas builds a safe, phased migration plan.",
|
desc: "Bring your live product into the VIBN infrastructure. Atlas builds a safe, phased migration plan.",
|
||||||
accent: "#4a2a5a",
|
accent: "#4a2a5a",
|
||||||
|
hidden: true,
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const FLOW_TYPES = ALL_FLOW_TYPES.filter(t => !t.hidden);
|
||||||
|
|
||||||
export function TypeSelector({ onSelect, onClose }: TypeSelectorProps) {
|
export function TypeSelector({ onSelect, onClose }: TypeSelectorProps) {
|
||||||
return (
|
return (
|
||||||
<div style={{ padding: "32px 36px 36px" }}>
|
<div style={{ padding: "32px 36px 36px" }}>
|
||||||
@@ -80,7 +85,7 @@ export function TypeSelector({ onSelect, onClose }: TypeSelectorProps) {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
{/* Type cards */}
|
{/* Type cards */}
|
||||||
<div style={{ display: "grid", gridTemplateColumns: "1fr 1fr", gap: 10 }}>
|
<div style={{ display: "grid", gridTemplateColumns: "1fr", gap: 10 }}>
|
||||||
{FLOW_TYPES.map(type => (
|
{FLOW_TYPES.map(type => (
|
||||||
<button
|
<button
|
||||||
key={type.id}
|
key={type.id}
|
||||||
|
|||||||
Reference in New Issue
Block a user