branch-subcontext

[
  {
    "evaluator": "context-branch-is-master",
    "config": {
      "branch-subcontext": {
        "items": [
          {
            "key": "workspace/changes",
            "title": "Changes",
            "order": 20000,
            "header": true,
            "items": [
              {
                "key": "workspace/activities",
                "remove": true
              },
              {
                "key": "workspace/content",
                "remove": true
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-workspace-has-pending-merges",
    "config": {
      "branch-subcontext": {
        "items": [
          {
            "key": "workspace/workspaces",
            "items": [
              {
                "key": "workspace/merges",
                "title": "Pending Merges",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/merges",
                "iconClass": "fa fa-angle-right",
                "order": 22000
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-workspace-archived",
    "condition": false,
    "config": {
      "branch-subcontext": {
        "items": [
          {
            "key": "workspace/changes",
            "title": "Changes",
            "order": 20000,
            "header": true,
            "items": [
              {
                "key": "workspace/activities",
                "title": "Activities",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/activities",
                "iconClass": "fa fa-angle-right",
                "order": 8000
              },
              {
                "key": "workspace/content",
                "title": "Content",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/changes",
                "iconClass": "fa fa-angle-right",
                "order": 9000
              }
            ]
          }
        ]
      }
    }
  },
  {
    "evaluator": "context-branch",
    "config": {
      "branch-subcontext": {
        "items": [
          {
            "key": "branch/heading",
            "title": "This Branch",
            "order": 10000,
            "header": true,
            "iconClass": "fa fa-dashboard",
            "allowAuthority": [],
            "allowPermission": [],
            "rejectAuthority": [],
            "rejectPermission": [],
            "items": [
              {
                "key": "branch/overview",
                "title": "Overview",
                "uri": "#/projects/{projectId}/branches/{workspaceId}",
                "iconClass": "fa fa-angle-right",
                "order": 1000
              },
              {
                "key": "branch/properties",
                "title": "Properties",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/properties",
                "iconClass": "fa fa-angle-right",
                "order": 2000
              },
              {
                "key": "workspace/tools",
                "title": "Tools",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/tools",
                "iconClass": "fa fa-angle-right",
                "order": 100000,
                "allowAuthority": [
                  "admin",
                  "manager",
                  "owner"
                ]
              }
            ]
          },
          {
            "key": "branch/others",
            "title": "Other Branches",
            "order": 30000,
            "header": true,
            "items": [
              {
                "key": "branch/explore",
                "title": "Explore",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/explore",
                "iconClass": "fa fa-angle-right",
                "order": 20000
              },
              {
                "key": "branch/network",
                "title": "Network",
                "uri": "#/projects/{projectId}/branches/{workspaceId}/network",
                "iconClass": "fa fa-angle-right",
                "order": 21000
              }
            ]
          }
        ]
      }
    }
  }
]