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
    groupBy:
      property: type
      direction: ASC
    order:
      - file.name
      - type
      - status
      - updated
      - formula.age_days
    limit: 15
  - 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
    filters:
      and:
        - file.inFolder("wiki/sources")
        - type == "source"
    order:
      - file.name
      - author
      - date_published
      - updated
    limit: 10
