> 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/master-data.md).

# Master Data

## Overview&#x20;

The Master Data is designed to handle various entities within the application. This includes managing modules, tenants, boundaries, and schemas.&#x20;

## **Components**

### **Sidebar Component**

* **Component**: **`Sidebar`**
* **Attributes**:
  * actionId: string
  * order: number&#x20;
  * path: string&#x20;
  * navigationURL: string
  * &#x20;iconName: string&#x20;
  * name: string// Some code
* **Functionality**:
  * Based on logged in user and roles we get list of actions user can perform,
  * Fetches navigation data based on `actionId,`
  * Renders navigation links in order based on `order` attribute.
  * Uses `navigationURL` for navigation and `iconName` for displaying icons.

**Signup Component**

* **Component**: **`Signup`**
* **Attributes**:
  * `screenName: string`
  * `steps: Array<{bannerImage: string, text: string}>`
* **Functionality**:
  * Renders steps of the signup process.
  * Handles user input for each step.
  * Validates input and progresses to the next step.

**SignIn Component**

* **Component**: **`SignIn`**
* **Attributes**:
  * `type: 'password' | 'otp'`
  * `fields: {username: string, password?: string, otp?: string}`
* **Functionality**:
  * Renders login form based on `type`.
  * Handles OTP resend logic if `type` is `otp`.

**Home (Help) Component**

* **Component**: **`HomeHelp`**
* **Attributes**:
  * `youtubeLink: string`
  * `locale: string`
* **Functionality**:
  * Fetches and displays YouTube help link.
  * Provides localized help content.

**Setup Sandbox Home Component**

* **Component**: **`SetupSandboxHome`**
* **Attributes**:
  * `actionId: string`
  * `order: number`
  * `buttonName: string`
  * `navigationURL: string`
  * `iconName: string`
  * `name: string`
  * `module: string`
* **Functionality**:
  * Fetches setup data from Role Action service.
  * Renders buttons and links for initial sandbox setup.

**Application Home Component**

* **Component**: **`ApplicationHome`**
* **Attributes**:
  * `actionId: string`
  * `order: number`
  * `buttonName: string`
  * `navigationURL: string`
  * `iconName: string`
  * `name: string`
  * `module: string`
* **Functionality**:
  * Fetches application features from Role Action service.
  * Displays dashboard for managing active applications.

**ModuleMaster Component**

* **Component**: **`ModuleMaster`**
* **Attributes**:
  * `moduleName: string`
  * `schemas: Array<{schemaCode: string, type: 'common' | 'module' | 'other', canShowDefaultData: boolean}>`
* **Functionality**:
  * Links modules to master data schemas.
  * Displays list of schemas and their attributes.

**Master Home Screen Info Component**

* **Component**: **`MasterHomeScreenInfo`**
* **Attributes**:
  * `masterName: string`
  * `content: {headerCode: string, data: any}`
  * `helpVideo: string`
  * `buttonName: string`
  * `buttonLink: string`
  * `icon: string`
* **Functionality**:
  * Fetches and displays master data entities.
  * Provides navigation links and help videos.

**ModuleBoundaryTenant Component**

* **Component**: **`ModuleBoundaryTenant`**
* **Attributes**:
  * `moduleName: string`
  * `tenant: string`
  * `subTenant: string`
  * `boundaryHierarchyType: string`
  * `boundaryHierarchyLevel: number`
* **Functionality**:
  * Links modules to boundaries and tenants.
  * Displays hierarchy and levels for each boundary and tenant.


---

# 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/master-data.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.
