Skip to content

Org settings

The following items can be set in the org settings configuration.

  1. Profile popup
  2. Card settings
  3. Roster
  4. General global configuration
  5. Settings

Items 1 through 4 can be set by group with a default provided as a fallback. The mechanism is via nested keys:

  • saveLocation: on | off - geocode dispatch data
  • userDisplay: template, general user display
  • week: monday | sunday - first day of the week
  • relationDisplay
  • wizard
  • dispatch: list of dispatches
  • content: display the content based on configuration
{
  "settings": {
      "week": "monday",
      "userDisplay": ":last, :first",
      "relationDisplay": "",
      "wizard": {
        "start": "072a4c8d-839b-460f-ac6c-d704d2d4226e",
        "intake": "4fe25dc0-8e91-45e2-b6dd-0f3284094df8",
        "edit": "0b512742-8b79-480e-9c65-bc51cb5568bb"
      },
      "dispatch": {
        "save": [
          "programStatus"
        ],
        "display": [
          "programStatus",
          "orgTitle"
        ],
        "displayConnect": "or"
      },
      "content": [
        {
          "match": "^maintenance",
          "rule": "true",
          "action": "enable"
        },
       ...
      ]
  },
}
  • header: string array
  • headerByGroup: group handle to string array
  • actionConfig:
    • action: follow | email | mobile | chat
    • condition
    • icon
  • tabs
    • title
    • display:
    • show:
    • options: based on display

Example

```
{
    "profile": {
        "default": { 
            "header": [
            ":first :lastInitial",
            ":title, training since :createdAt",
            "{about.location}"
            ],
            "card": {
            "title": ":first :lastInitial",
            "description": ":timezone"
            },
          "tabs": [
              {
              "title": "Details",
              "display": "admin",
              "show": "admin",
              "condition": "user is admin",
              "icon": "fal fa-address-card",
              "color": "text-danger"
              },
              ...
          ],
          "actionConfig": [
              {
                "action": "follow",
                "tableData": {
                  "id": 0
                }
              },
              ...
          ]
        },
        "disabled": {used same configuration as default section but it disbled the thing in profile}
        [group handle]: {.. }
    }
}
```
{
  "card": {
    "default": {
      "title": ":first :lastInitial :adminName",
      "description": ":title, joined :createdAt",
      "attributes": [
        {
          "key": "location",
          "source": "about.country"
        }
      ]
    },
   [group handle]: {.. }
  }
}
```json
{
  "roster": {
    "default": {
      "query": [
        {
          "query": "given labels [coach] sort by last",
          "title": "Coaches"
        },
        ...
      ]
    }
  }
}
```
    • action: like | comment | bookmark | task-global | task-local
    • condition
    • id
    • icon
    • label

    dispatchActions

    {
      "general": {
        "default": {
          "dispatchActions": [
            {
              "action": "task-global",
              "condition": "user is admin",
              "tableData": {
                "id": 0
              }
            },
            ...
          ]
        }
      }
    }