opsfolio/info/assurance/threat_model.sql

              SELECT 'dynamic' AS component, sqlpage.run_sql('shell/shell.sql') AS properties;
              SELECT 'breadcrumb' as component;
WITH RECURSIVE breadcrumbs AS (
    SELECT
        COALESCE(abbreviated_caption, caption) AS title,
        COALESCE(url, path) AS link,
        parent_path, 0 AS level,
        namespace
    FROM sqlpage_aide_navigation
    WHERE namespace = 'prime' AND path='opsfolio/info/assurance/threat_model.sql'
    UNION ALL
    SELECT
        COALESCE(nav.abbreviated_caption, nav.caption) AS title,
        COALESCE(nav.url, nav.path) AS link,
        nav.parent_path, b.level + 1, nav.namespace
    FROM sqlpage_aide_navigation nav
    INNER JOIN breadcrumbs b ON nav.namespace = b.namespace AND nav.path = b.parent_path
)
SELECT title ,      
sqlpage.environment_variable('SQLPAGE_SITE_PREFIX') || '/'||link as link        
FROM breadcrumbs ORDER BY level DESC;
              -- not including page title from sqlpage_aide_navigation
              

              SELECT
  'card' AS component,
  4 AS columns
 SELECT
  'Threat Model Analysis Report' AS title,
  'arrow-big-right' AS icon,
  '/opsfolio/info/assurance/threat_model/threat_model_analysis_report.sql' AS link
  SELECT
  'Web Application' AS title,
  'arrow-big-right' AS icon,
  '/opsfolio/info/assurance/threat_model/web_application.sql' AS link
  SELECT
  'Managed Application' AS title,
  'arrow-big-right' AS icon,
  '/opsfolio/info/assurance/threat_model/managed_application.sql' AS link
  SELECT
  'SQL Database' AS title,
  'arrow-big-right' AS icon,
  '/opsfolio/info/assurance/threat_model/sql_database.sql' AS link
  SELECT
  'Boundaries' AS title,
  'arrow-big-right' AS icon,
  '/opsfolio/info/assurance/threat_model/boundaries.sql' AS link;