Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
b331fed
added array<mywfeature> and array<array<>> types functionality
balarbirwa Aug 18, 2025
ce5d5fb
added objects and transaction input functionality
balarbirwa Aug 18, 2025
460b716
added objects and transaction input functionality
balarbirwa Aug 18, 2025
5857dc8
added pinrange param, and cleaned code
balarbirwa Aug 19, 2025
36529ac
Small QoL changes
JaySantosIQGeo Aug 20, 2025
ecd3d5c
Fixed transaction input to show message instead of input
balarbirwa Aug 20, 2025
1210837
Implemented List... Function
balarbirwa Aug 20, 2025
0f76304
Created /tools and added parser script
balarbirwa Aug 20, 2025
e82fb73
added parsed comments for structure api
balarbirwa Aug 21, 2025
f4e30b5
added argv comments to parser
balarbirwa Aug 21, 2025
e8e71e7
cleaned up description rendering
balarbirwa Aug 21, 2025
a89a61e
Added .tsx file and began typing
balarbirwa Aug 22, 2025
ab87e57
Testing feature checks
balarbirwa Aug 22, 2025
c5ce422
added tsx file
balarbirwa Aug 25, 2025
9561ec2
testing out tsx typing
balarbirwa Aug 27, 2025
2dc2aac
added all api dictionaries and moved json files to folder
balarbirwa Aug 28, 2025
52f8718
Added 'is<feature>' param check
balarbirwa Aug 28, 2025
a23584a
Added 'is<feature>' param check
balarbirwa Aug 28, 2025
fbda2e0
removed comments
balarbirwa Aug 28, 2025
89e822c
Added coordinate passing through clicking on features
balarbirwa Sep 3, 2025
33deefa
Allow optional parameters to execute function call
balarbirwa Sep 4, 2025
ca9bc6e
removed comments
balarbirwa Sep 4, 2025
ad1d8c3
cleaned up modal, removed unnecessary checks
balarbirwa Sep 4, 2025
01b4c26
added optional flag to all necessary parameters
balarbirwa Sep 4, 2025
f9376f2
added documentation folder
balarbirwa Sep 4, 2025
5e34f72
cleaning up documentation
balarbirwa Sep 5, 2025
b35d710
Few fixes to documentation
balarbirwa Sep 9, 2025
fc4f08c
created new branch with reporting samples for pole attachment and con…
balarbirwa Sep 16, 2025
aa18c47
added get all features to lib
balarbirwa Sep 17, 2025
28fb4cd
removed token.txt
balarbirwa Sep 17, 2025
5ede881
added equipment housing and route in/out structure to output
balarbirwa Sep 17, 2025
8b5a8de
removed helper function
balarbirwa Sep 17, 2025
fd9eb46
cleaned up some code
balarbirwa Sep 17, 2025
50ac735
created new branch with reporting samples for pole attachment and con…
balarbirwa Sep 16, 2025
db4ea0f
added get all features to lib
balarbirwa Sep 17, 2025
f2f9420
removed token.txt
balarbirwa Sep 17, 2025
a83745f
added equipment housing and route in/out structure to output
balarbirwa Sep 17, 2025
d632df6
removed helper function
balarbirwa Sep 17, 2025
e3d5630
cleaned up some code
balarbirwa Sep 17, 2025
7492022
code clean up from feedback
balarbirwa Sep 18, 2025
a392bd3
began working on spatial queries
balarbirwa Sep 22, 2025
8c95a69
added spatial query functionality
balarbirwa Sep 22, 2025
f7bb793
cleaned up some code, moved adding cookies to header to auth functions
balarbirwa Sep 23, 2025
b4ba346
cleaned up code
balarbirwa Sep 23, 2025
8dd13c8
added all documentation for reporting samples
balarbirwa Sep 26, 2025
9a830bf
conflicts resolved
balarbirwa Oct 6, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 74 additions & 0 deletions Documents/NMT/Live Doc Sample/Live_Docs_Overview.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
# Live Docs Sample - Overview

## Table of Contents

- [Live Docs Sample - Overview](#live-docs-sample---overview)
- [Table of Contents](#table-of-contents)
- [Tool Description](#tool-description)
- [How to use the tool](#how-to-use-the-tool)

---

## Tool Description

The **Live Docs Sample** is an interactive plugin that allows users to execute API functions with custom parameters from various IQGeo modules (Structure, Equipment, Conduit, Cable, Connection, and Circuit) directly from a modal interface in NMT.

Key features:

- **Function Selection:** Choose a class and a function from the available API menus.
- **Dynamic Parameter Inputs:** Input fields are automatically rendered based on the selected function’s parameter types (numbers, strings, booleans, arrays, features, transactions, or pin ranges).
- **Map Integration:** For feature-based parameters, users can select objects directly on the map.
- **Automatic Transaction Handling:** Transaction parameters are automatically created and committed after execution.
- **Real-Time Execution:** Functions are executed immediately with user-provided inputs, and results are logged in the console.
- **Support for Complex Types:** Handles nested arrays, objects, GeoJSON, and custom PinRange types.

This tool is intended for those who want an **interactive way to use API functionality** without writing custom scripts.

---

## How to use the tool

1. **Open the Live Docs Modal**

Open the `LiveDocsPlugin` in the application. The modal will show an introductory description of the plugin. Click **OK** to proceed.

2. **Select a Class and Function**

- Use the first dropdown to select a class (e.g., `Structure API`, `Equipment API`, etc.).
- After selecting a class, a second dropdown will display available functions for that class.
- Selecting a function dynamically generates input fields for its parameters.

![Class Selection](./Live_Docs_Overview_1.png)
<p align="center"><i>Fig. 2: Class dropdown menus<i>

![Function Selection](./Live_Docs_Overview_2.png)
<p align="center"><i>Fig. 3: Function dropdown menus<i>

3. **Fill in Parameter Values**

- Input fields adjust based on parameter types:

- **Number / String / Boolean:** Standard input or dropdown.
- **Feature / Array of Features:** Click on map objects to populate.
- **Array of Numbers / Array of Arrays:** Click on features to input coordinates.
- **Objects / JSON / GeoJSON:** Enter JSON directly into a text area.
- **PinRange:** Select side and define low/high pin numbers.
- **Transaction:** Automatically created; no user input required.

- Ensure all required parameters are filled to enable the **Execute** button.
- Description of the function, parameters and return value is provided.

![Parameter Input Fields](./Live_Docs_Overview_3.png)

<p align="center"><i>Fig. 3: Example of parameter inputs for `validateRoutesForConduit` function.<i>

4. **Execute the Function**

- Click the **Execute** button to run the selected function with the provided parameters.
- Function execution logs results in the console.
- Asynchronous functions will return results after their promise resolves.

5. **Cancel or Exit**

- Click the **Cancel** button to close the modal without executing any function.
- Switching between classes or functions resets parameter inputs automatically.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading