You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/content/advanced/custom_view.md
+125-1
Original file line number
Diff line number
Diff line change
@@ -3,4 +3,128 @@ title: CustomView
3
3
weight: 0
4
4
---
5
5
6
-
(TBD)
6
+
# Custom View
7
+
8
+
## Overview
9
+
10
+
Custom Views in Pagoda allow developers to extend the standard UI with their own React-based interfaces. This feature enables you to create specialized views that leverage Pagoda's core functionality while providing tailored user experiences for specific use cases.
11
+
12
+
By using Custom Views, you can build interfaces that:
13
+
- Present data in specialized formats
14
+
- Implement domain-specific workflows
15
+
- Integrate with Pagoda's data model and ACL system
16
+
- Provide alternative navigation or interaction patterns
17
+
18
+
## What You Can Do with Custom Views
19
+
20
+
Custom Views enable you to:
21
+
22
+
-**Create specialized interfaces**: Build custom dashboards, data visualizations, or domain-specific tools
23
+
-**Integrate with Pagoda's core**: Access and manipulate data using Pagoda's data models and services
24
+
-**Implement custom logic**: Add business logic specific to your use case
25
+
-**Extend the UI**: Provide alternative ways to view and interact with your data
26
+
27
+
## Relationship with Pagoda Core
28
+
29
+
Custom Views are built as React applications that integrate with Pagoda through the `PagodaProvider` component. This provider gives your Custom View access to:
30
+
31
+
- Pagoda's data models (Entity-Attribute-Value pattern)
32
+
- Authentication and authorization
33
+
- Search capabilities
34
+
- Other core services
35
+
36
+
The Pagoda Core (`@dmm-com/pagoda-core`) is bundled as a library that your Custom View can import and use, allowing you to focus on building your specific interface rather than reimplementing core functionality. This package is hosted on GitHub Registry at [https://github.com/dmm-com/pagoda/pkgs/npm/pagoda-core](https://github.com/dmm-com/pagoda/pkgs/npm/pagoda-core).
37
+
38
+
> **Note**: Since `@dmm-com/pagoda-core` is hosted on GitHub Registry, you'll need to configure npm to access GitHub packages. Make sure you have appropriate GitHub access and authentication set up before installing the package.
39
+
40
+
## Getting Started with Custom View Development
41
+
42
+
### Prerequisites
43
+
44
+
- Node.js (v16 or later)
45
+
- npm (v7 or later)
46
+
- Basic knowledge of React and TypeScript
47
+
- GitHub access (for installing `@dmm-com/pagoda-core` from GitHub Registry)
48
+
49
+
### Step 1: Configure npm for GitHub Registry
50
+
51
+
Before installing dependencies, configure npm to access the GitHub Registry:
0 commit comments