# Groups

## Default groups

When creating a new app, new modules are automatically added to the `Other` group. If you've never used this feature in your app before, all of your modules will be placed in this group by default and displayed in categories based on their function.

{% tabs %}
{% tab title="Occurrence in the module" %}

<div align="left"><img src="https://1562974717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNS0mCBwODiYtOVXjc6qf%2Fuploads%2Fgit-blob-24e579176091732e4e08bbed44ea239b92ca6ea3%2Fdefaultgroups.png?alt=media" alt="" width="323"></div>
{% endtab %}

{% tab title="Source" %}

```json
[
    {
        "label": "Other",
        "modules": [
            "createTask", 
            "updateTask", 
            "getTask", 
            "listTasks",
            "listNotes",
            "watchTasks",
            "watchNotes"
         ]
     }
 ]
            
```

{% hint style="info" %}
When there's only a single `Other` group, the modules are grouped according to their type.
{% endhint %}
{% endtab %}
{% endtabs %}

## Change the groups and order

By changing the **Groups** file, you can set up as many groups as you want and group the modules into logical blocks. Once you create a new group and put a single module there, your app will no longer use the default grouping.

{% tabs %}
{% tab title="Occurrence in a module" %}

<div align="left"><img src="https://1562974717-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNS0mCBwODiYtOVXjc6qf%2Fuploads%2Fgit-blob-521200569e6c04880a6c9b9f663d271ef3fa87c1%2Fcustomgroups.png?alt=media" alt="" width="323"></div>
{% endtab %}

{% tab title="Source" %}

```json
[
  {
    "label": "Notes",
    "modules": [
      "watchNotes",
      "listNotes"
    ]
  },
  {
        "label": "Tasks",
        "modules": [
            "watchTasks",
            "createTask",
            "updateTask",
            "getTask",
            "listTask"
         ]
     }
]
            
```

{% hint style="info" %}
The modules are displayed **in the same order** as they are specified in the Groups section.
{% endhint %}
{% endtab %}
{% endtabs %}

One module can belong to one or more groups, but it has to belong to at least one. You won't be allowed to save the group's configuration otherwise.

{% tabs %}
{% tab title="Source" %}

```json
[
    {
        "label": "Notes",
        "modules": [
            "watchNotes",
            "listNotes",
           ]
    },
    {
        "label": "Tasks",
        "modules": [
            "watchTasks",
            "createTask", 
            "updateTask", 
            "listTask"
         ]
     }
 ]
            
```

{% hint style="info" %}
This code produces the error: `Not categorized module(s): getTask`
{% endhint %}
{% endtab %}
{% endtabs %}
