> For the complete documentation index, see [llms.txt](https://docs.digit.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.digit.org/sandbox/platform/architecture/sandbox-ui/low-level-design/modules/application-management.md).

# Application Management

## **Overview**

The Application Management Module is designed to manage application features and settings within the system. This includes components for viewing the application home, managing features, setting up master data, creating new entries, and editing existing entries. The module interacts with the host app to fetch tenant information and performs CRUD operations on application-related data.

<figure><img src="https://383170073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLTNzsJMDGVoewNjC1V95%2Fuploads%2F9w29thlpVEenTXKIS0Ip%2FUI%20Tech%20Designs%20-%20Application%20Management.jpg?alt=media&amp;token=aa213171-7010-4480-91a6-adddb5e7956c" alt=""><figcaption><p>Application Module</p></figcaption></figure>

## **Components**

1. **Application Home**: Displays the main dashboard for application features.
2. **Setup Master**: Provides functionality to set up master data for the application.
3. **Create Master**: Allows the creation of new master data entries.
4. **Edit Master**: Enables editing of existing master data entries.

## **Data Flow**

1. **Application Home**:
   * **Screen Route**: `/sandbox-ui/application/app-home/module/{module-features}`
   * **Data Fetch**: Retrieves application features from MDMS (Master Data Management System), including application details and tenant information.
   * **Client Store**: Updates client store with fetched data for display.
2. **Setup Master**:
   * **Screen Route**: `/sandbox-ui/application/tenant-manage`
   * **Data Fetch**: Retrieves master data setup details from MDMS, including subdomains and other relevant data.
   * **Client Store**: Updates client store with setup data for management.
3. **Create Master**:
   * **Screen Route**: Accessed from Setup Master component.
   * **Data Fetch**: Fetches data from MDMS, including subdomain and master data details.
   * **Client Store**: Updates client store with new master data information upon creation.
4. **Edit Master**:
   * **Screen Route**: Accessed from Setup Master component.
   * **Data Fetch**: Retrieves existing master data details from MDMS, including subdomain and other information for editing.
   * **Client Store**: Updates client store with edited master data information.

## **Interaction With Host App**

* The Application Management Module fetches the tenant from the host app.
* Ensures synchronization between tenant data in the host app and the Application Management Module.

## **User Interface**

* **Application Home Screen**: Displays a list of application features with options to view, manage, create, or edit features.
* **Setup Master Screen**: Provides options to manage master data setup, including viewing and editing.
* **Create Master Screen**: Form to input new master data details and submit for creation.
* **Edit Master Screen**: Form pre-filled with existing master data details for modification and submission.

### Web Sequence Diagrams

{% tabs %}
{% tab title="Application Info" %}

<figure><img src="https://383170073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLTNzsJMDGVoewNjC1V95%2Fuploads%2FMnifSUU4y2F6jUJuVqeQ%2FScreenshot%202024-08-09%20at%2012.50.00%20PM.png?alt=media&amp;token=f11f73e1-bb4d-47f6-9b3b-e69f183f132b" alt=""><figcaption><p>Application Required Masters</p></figcaption></figure>
{% endtab %}

{% tab title="Application Home" %}

<figure><img src="https://383170073-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLTNzsJMDGVoewNjC1V95%2Fuploads%2FVRy0bWF0onTGqQJmQAfT%2FScreenshot%202024-08-09%20at%2012.50.16%20PM.png?alt=media&amp;token=a8174fbf-0cb8-4727-aaa8-b5a22fdfabee" alt=""><figcaption><p>Application Required Masters</p></figcaption></figure>
{% endtab %}
{% endtabs %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.digit.org/sandbox/platform/architecture/sandbox-ui/low-level-design/modules/application-management.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
