# Page Settings controls the page URL and whether visitors can access it.
resource "statuspage_page_settings" "public_page" {
  public_slug = var.statuspage_public_slug
  visibility  = "public"
}

# Site Settings controls the visitor-facing title, header, and homepage layout.
# Tree mode displays the Level 1 > Level 2 relationship created in hierarchy.tf.
resource "statuspage_site_settings" "branding_and_homepage" {
  site_title                    = "Northstar Marketplace Status"
  site_subtitle                 = "Buyer, seller, checkout, catalog, and fulfillment workflows."
  show_site_title               = true
  header_identity_mode          = "text_only"
  enable_tree_view_on_homepage  = true
  enable_basic_view_on_homepage = true
  homepage_hierarchy_view_mode  = "tree"
  show_history_bars_on_homepage = true
  homepage_history_bars_days    = 30
  show_component_by_default     = false
}
