// UI scaffolding only — no fake records. Backend (window.API) supplies all
// real conversation/review/cost/recommendation data; mock arrays were removed when
// the prototype was wired to the live API.

// Step metadata for the live pipeline UI in the chat.
const PIPELINE_STEPS = [
  { key: 'parse',   title: 'Parse input',              description: 'Tokenize, extract resources, infer relationships' },
  { key: 'diagram', title: 'Generate diagram',         description: 'Layout nodes, route edges, render SVG + PNG' },
  { key: 'waf',     title: 'Well-Architected review',  description: '6 pillars · rule engine + AI remediations' },
  { key: 'cost',    title: 'Cost estimate',            description: 'Pricing API · regional quotes · hidden cost detection' },
];

// Starter content the user can click to populate the input.
const SAMPLE_TF = `resource "aws_ecs_service" "api" {
  name            = "api"
  cluster         = aws_ecs_cluster.prod.id
  task_definition = aws_ecs_task_definition.api.arn
  desired_count   = 3
  launch_type     = "FARGATE"

  network_configuration {
    subnets          = aws_subnet.private[*].id
    security_groups  = [aws_security_group.api.id]
    assign_public_ip = false
  }

  load_balancer {
    target_group_arn = aws_lb_target_group.api.arn
    container_name   = "api"
    container_port   = 8080
  }
}

resource "aws_db_instance" "prod" {
  identifier              = "db-prod"
  engine                  = "postgres"
  engine_version          = "15.5"
  instance_class          = "db.r6g.xlarge"
  allocated_storage       = 500
  storage_type            = "gp3"
  multi_az                = false
  publicly_accessible     = false
  backup_retention_period = 7
}`;

const SAMPLE_PROMPT = `A production API on ECS Fargate (3 tasks) behind an ALB, fronted by CloudFront with a static S3 site. Postgres on RDS (r6g.xlarge, 500GB). Backups to a separate S3 bucket. Route53 for api.mydomain.com. Region eu-west-1.`;

window.APP_DATA = { PIPELINE_STEPS, SAMPLE_TF, SAMPLE_PROMPT };
