filters:
  and:
    - file.inFolder("wiki")
    - 'file.ext == "md"'

formulas:
  age_days: '(now() - file.mtime).days'

properties:
  type:
    displayName: "Type"
  status:
    displayName: "Status"
  updated:
    displayName: "Updated"
  formula.age_days:
    displayName: "Days Since Edit"

views:
  - type: table
    name: "Recent Activity"
    limit: 15
    order:
      - file.name
      - type
      - status
      - updated
      - formula.age_days
    groupBy:
      property: type
      direction: ASC

  - type: list
    name: "Seed Pages (Need Development)"
    filters:
      and:
        - 'status == "seed"'
    order:
      - file.name
      - updated

  - type: list
    name: "Entities Missing Sources"
    filters:
      and:
        - file.inFolder("wiki/entities")
        - or:
            - '!sources'
            - 'sources.length == 0'
    order:
      - file.name

  - type: list
    name: "Open Questions"
    filters:
      and:
        - file.inFolder("wiki/questions")
        - or:
            - 'status == "developing"'
            - 'status == "seed"'
    order:
      - file.name
      - updated

  - type: table
    name: "Comparisons"
    filters:
      and:
        - file.inFolder("wiki/comparisons")
    order:
      - file.name
      - verdict
      - updated

  - type: table
    name: "Sources"
    limit: 10
    filters:
      and:
        - file.inFolder("wiki/sources")
        - 'type == "source"'
    order:
      - file.name
      - author
      - date_published
      - updated
