project-context

[
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "context-project"
      }
    ],
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/explore/heading",
            "items": [
              {
                "key": "project/deployments",
                "title": "Deployments",
                "uri": "#/projects/{projectId}/deployments",
                "iconClass": "typcn typcn-arrow-shuffle"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-project",
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/developers/heading",
            "title": "Developers",
            "order": 10000,
            "header": true,
            "allowAuthority": [
              "manager"
            ],
            "items": [
              {
                "key": "project/developers/query",
                "title": "Query",
                "uri": "#/projects/{projectId}/query",
                "iconClass": "fa fa-database",
                "allowAuthority": [
                  "manager"
                ]
              },
              {
                "key": "project/developers/graphql",
                "title": "GraphQL",
                "uri": "#/projects/{projectId}/graphql",
                "iconClass": "icomoon-graphql",
                "allowAuthority": [
                  "manager"
                ]
              },
              {
                "key": "project/rules",
                "title": "Rules",
                "uri": "#/projects/{projectId}/rules",
                "iconClass": "fa fa-file-code-o",
                "allowAuthority": [
                  "manager"
                ]
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "context-project"
      }
    ],
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/explore/heading",
            "items": [
              {
                "key": "project/linked-content",
                "title": "Linked Content",
                "uri": "#/projects/{projectId}/links",
                "iconClass": "fa fa-link"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-project",
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/explore/heading",
            "items": [
              {
                "key": "project/model",
                "title": "Content Model",
                "uri": "#/projects/{projectId}/model/types",
                "iconClass": "fa fa-map-o",
                "order": 100
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "context-project"
      },
      {
        "evaluator": "project-publishing-enabled"
      }
    ],
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/explore/heading",
            "items": [
              {
                "key": "project/publishing",
                "title": "Publishing",
                "uri": "#/projects/{projectId}/publishing",
                "iconClass": "typcn typcn-news"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "context-project"
      },
      {
        "evaluator": "project-releases-enabled"
      }
    ],
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/explore/heading",
            "items": [
              {
                "key": "project/releases",
                "title": "Releases",
                "uri": "#/projects/{projectId}/releases",
                "iconClass": "fa fa-calendar"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "and",
    "condition": [
      {
        "evaluator": "context-project"
      },
      {
        "evaluator": "project-workspaces-enabled"
      }
    ],
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/explore/heading",
            "items": [
              {
                "key": "project/branches",
                "title": "Branches",
                "uri": "#/projects/{projectId}/branches",
                "iconClass": "fa fa-code-fork"
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-project",
    "config": {
      "project-context": {
        "items": [
          {
            "key": "project/dashboard",
            "title": "Project Dashboard",
            "uri": "#/projects/{projectId}",
            "cssClass": "dashboard-link",
            "order": 1000,
            "dashboardHeader": true,
            "iconClass": "fa fa-dashboard"
          },
          {
            "key": "project/content/heading",
            "title": "Content",
            "order": 2000,
            "header": true,
            "allowPermission": [
              "read"
            ],
            "items": [
              {
                "key": "project/content",
                "title": "Types",
                "uri": "#/projects/{projectId}/content",
                "iconClass": "fa fa-pencil"
              },
              {
                "key": "project/documents",
                "title": "Folders",
                "uri": "#/projects/{projectId}/documents",
                "iconClass": "fa fa-folder-open-o"
              }
            ]
          },
          {
            "key": "project/search/heading",
            "title": "Saved Searches",
            "order": 2500,
            "header": true,
            "type": "saved-search-items-container",
            "allowPermission": [
              "read"
            ],
            "items": []
          },
          {
            "key": "project/explore/heading",
            "title": "Explore",
            "order": 3000,
            "header": true,
            "allowAuthority": [
              "manager"
            ],
            "items": [
              {
                "key": "project/datalists",
                "title": "Data Lists",
                "uri": "#/projects/{projectId}/datalists",
                "iconClass": "fa fa-list-alt"
              },
              {
                "key": "project/tags",
                "title": "Tags",
                "uri": "#/projects/{projectId}/tags",
                "iconClass": "fa fa-tags"
              },
              {
                "key": "project/activities",
                "title": "Activities",
                "uri": "#/projects/{projectId}/activities",
                "iconClass": "fa fa-history",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "project/members",
                "title": "Members",
                "uri": "#/projects/{projectId}/members",
                "iconClass": "typcn typcn-group",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "project/tasks",
                "title": "My Tasks",
                "uri": "#/projects/{projectId}/tasks",
                "iconClass": "fa fa-inbox",
                "allowPermission": [
                  "read"
                ]
              },
              {
                "key": "project/search/saved-searches",
                "title": "Saved Searches",
                "uri": "#/projects/{projectId}/saved-searches",
                "iconClass": "fa fa-search"
              }
            ]
          },
          {
            "key": "project/manage",
            "title": "Manage",
            "order": 100000,
            "header": true,
            "allowAuthority": [
              "manager",
              "admin",
              "owner"
            ],
            "items": [
              {
                "key": "project/manage/link",
                "title": "Manage Project",
                "uri": "#/projects/{projectId}/settings",
                "iconClass": "fa fa-gear",
                "allowAuthority": [
                  "manager",
                  "admin",
                  "owner"
                ]
              }
            ]
          }
        ]
      }
    }
  }
]