Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
197 commits
Select commit Hold shift + click to select a range
8db6ec0
CSS backup
Abhi-MS Jun 23, 2025
ee62591
Update on devices overview table
Abhi-MS Jun 25, 2025
3fc6e2b
Move data fetching to page level
Abhi-MS Jul 8, 2025
3a8123d
Latest code on topology chart(working)
Abhi-MS Jul 8, 2025
17442d3
Improve TypeScript type safety in Devices Overview component
Abhi-MS Jul 9, 2025
07bf6cc
FIx export statement
Abhi-MS Jul 9, 2025
8c1ac66
Improve type safety in Zonedropdown component
Abhi-MS Jul 9, 2025
1343429
Improve TypeScript type safety in sidebar component
Abhi-MS Jul 9, 2025
f7a5591
Add reset button to Topology chart
Abhi-MS Jul 11, 2025
57bce4a
Add colour theme to topology chart
Abhi-MS Jul 11, 2025
fcad996
Add click to interact and tooltip display
Abhi-MS Jul 11, 2025
987bd77
Move format up time function to utils
Abhi-MS Jul 11, 2025
9c154ab
Temporary fix for theme based color scheme
Abhi-MS Jul 11, 2025
72db693
Improve colours
Abhi-MS Jul 11, 2025
f0f5e4f
Improve styles
Abhi-MS Jul 11, 2025
f0b0a35
Add sys description
Abhi-MS Jul 11, 2025
283b4ff
Improve TypeScript type safety in connection-details component
Abhi-MS Jul 16, 2025
3b85e84
Add more comments and logic to show nearby devices not in the zone
Abhi-MS Jul 18, 2025
5ef0677
Add more lldp and cdp data to connection table
Abhi-MS Jul 18, 2025
da458a9
Add CDP and LLDP labels to distinguish edges in Topology
Abhi-MS Jul 18, 2025
b5ef459
Make arrows appear only on hover
Abhi-MS Jul 18, 2025
91c5aaf
Move Truncatelines function to a utility script, and add comments
Abhi-MS Jul 19, 2025
14ff6d2
Improve on select styling
Abhi-MS Jul 19, 2025
c3a8db4
Edit select styles
Abhi-MS Jul 19, 2025
2569131
Add search button and description for search result
Abhi-MS Jul 22, 2025
1c36738
Add form submission to search node
Abhi-MS Jul 27, 2025
d4da265
Update rest logic from hard coded to resetting to initial state
Abhi-MS Jul 27, 2025
c5f7607
Update deselect edge logic
Abhi-MS Jul 27, 2025
4cc99a5
Add select edge feature
Abhi-MS Jul 27, 2025
319f086
Remove logic for duplicate edges for CDP and LLDP
Abhi-MS Jul 27, 2025
8c5670f
Add custom style to tooltips
Abhi-MS Jul 27, 2025
8fa77af
Add style to tooltip
Abhi-MS Jul 27, 2025
b7f03ff
Add view device button
Abhi-MS Jul 27, 2025
611e138
Add double click to navigate to device details page
Abhi-MS Jul 27, 2025
d05cf8f
Add search suggetsions
Abhi-MS Jul 27, 2025
af40425
Fix search suggestion styles
Abhi-MS Jul 27, 2025
776a353
feat: integrate feature development repo into main codebase
Abhi-MS Jul 29, 2025
9fbd4ed
Add check to see if sysuptime is a number and greater than zero to de…
Abhi-MS Jul 29, 2025
d2180e1
Delete temp folder used to migrate code
Abhi-MS Jul 30, 2025
6a536c8
Address code rabbit suggestions
Abhi-MS Jul 30, 2025
0176905
Code Rabbit suggestion : Add retry logic to device fetching
Abhi-MS Jul 30, 2025
ede2a86
Create basic components for historical charts
Abhi-MS Jul 31, 2025
1cb4e5c
Add mock device historical charts
Abhi-MS Aug 1, 2025
a151d45
Move data fetching to device page
Abhi-MS Aug 1, 2025
e248b46
Add topology chart to device details page
Abhi-MS Aug 2, 2025
f7f69b7
Pass zoom and clicktouse props to topology component
Abhi-MS Aug 2, 2025
ddc8e59
Update device overview tab layout
Abhi-MS Aug 2, 2025
92ba1c4
Insert metadata table
Abhi-MS Aug 2, 2025
2c79009
Update styles and layout in device overview tab
Abhi-MS Aug 2, 2025
c7da4f1
Add basic history page
Abhi-MS Aug 9, 2025
a07b0ef
Change x axis to lastPolled instead of tsCreated
Abhi-MS Aug 9, 2025
ae5d7c0
Update styling
Abhi-MS Aug 12, 2025
01805bb
Add description to Device History page and clean up search form styles
Abhi-MS Aug 12, 2025
b94a194
Refactor Device History layout for improved responsiveness and styling
Abhi-MS Aug 13, 2025
f8f7182
Add LineChartWrapper component for reusable chart rendering and updat…
Abhi-MS Aug 13, 2025
04bd4b1
Refactor LineChartWrapper props and improve error handling in DeviceH…
Abhi-MS Aug 13, 2025
60eb776
Enhance ZoneDropdown: only fetch zones from latest event
Abhi-MS Aug 13, 2025
ab21bdd
Add time range filtering and custom date selection to DeviceHistoryChart
Abhi-MS Aug 13, 2025
9f6a7e4
Refactor DeviceHistoryChart layout: improve input styling and suggest…
Abhi-MS Aug 13, 2025
9ca705a
Refactor DeviceHistoryChart layout: adjust flex properties for better…
Abhi-MS Aug 13, 2025
f084832
Update history page css for responsiveness
Abhi-MS Aug 13, 2025
439410f
Add device metrics tracking and historical data storage
Abhi-MS Aug 20, 2025
330782d
Refactor DeviceDetails and TopologyChart components: implement dynami…
Abhi-MS Aug 20, 2025
b14b925
Add Juniper device-specific MIB support: implement CPU and memory usa…
Abhi-MS Aug 20, 2025
c05661a
Add JuniperDeviceQuery class: implement CPU and memory usage retrieval
Abhi-MS Aug 22, 2025
9c5c74a
Refactor DeviceMetrics query: update field names and filter logic for…
Abhi-MS Aug 22, 2025
002e5b7
Fix GraphQL query to fetch device metrics by hostname
Abhi-MS Aug 22, 2025
55ae4eb
Import JuniperDeviceQuery in SNMP package for enhanced device support
Abhi-MS Aug 22, 2025
bc92af6
Enhance DeviceDetails component: add time range selection and filter …
Abhi-MS Aug 22, 2025
adfad6a
Refactor DeviceDetails component layout for improved responsiveness a…
Abhi-MS Aug 22, 2025
62aa702
Refactor DeviceDetails component to use memoization for topology char…
Abhi-MS Aug 22, 2025
e401346
Add centralized error alert for custom date range validation in Devic…
Abhi-MS Aug 22, 2025
e9868ca
Add custom range limit in history page
Abhi-MS Aug 22, 2025
7f2b197
Make history page more responsive
Abhi-MS Aug 22, 2025
5a21a2c
Make device details tab responsive
Abhi-MS Aug 26, 2025
b917de1
Change timestamp to lastPolled for more accurate values
Abhi-MS Aug 26, 2025
73c0a81
Change timestamp to lastpolled in the frontend
Abhi-MS Aug 26, 2025
966baa3
Persist active tab, preserve hash, and prevent hydration flash on reload
Abhi-MS Aug 27, 2025
10174d4
Polish code
Abhi-MS Sep 4, 2025
8f2dca3
Generate Docs
Abhi-MS Sep 4, 2025
33a7fb5
Run black
Abhi-MS Sep 4, 2025
5cf7de2
Run Flake
Abhi-MS Sep 4, 2025
b37fdd9
Code rabbit suggestions
Abhi-MS Sep 4, 2025
65b4876
Correct docstring issues
Abhi-MS Sep 5, 2025
ea26514
Correct flake issue
Abhi-MS Sep 5, 2025
fddba11
Correct Device page - insert lost code due to rebase
Abhi-MS Sep 5, 2025
c606f1a
Code rabbir suggestions
Abhi-MS Sep 5, 2025
ae32da0
Enhance date validation in Code Rabbit Suggestions: DeviceDetails, ad…
Abhi-MS Sep 5, 2025
b96a6c1
Code rabbit suggestions for backend
Abhi-MS Sep 5, 2025
56686c5
Code Rabbit suggestions
Abhi-MS Sep 5, 2025
cef6ba2
Code Rabbit Suggestions
Abhi-MS Sep 5, 2025
76b4175
Add percentage normalization function and refactor CPU/memory utiliza…
Abhi-MS Sep 5, 2025
7316e9e
Refactor normalization functions: add _to_uint for non-negative integ…
Abhi-MS Sep 5, 2025
9774c35
Enhance normalization functions: improve docstrings for _pct and _to_…
Abhi-MS Sep 5, 2025
a2c07a0
Fix docstring formatting and enhance error messages in metrics functions
Abhi-MS Sep 5, 2025
6b75793
Refactor error handling in _to_epoch and insert_row functions for imp…
Abhi-MS Sep 5, 2025
634b925
Refactor error handling in _to_epoch and insert_row functions for cla…
Abhi-MS Sep 5, 2025
596bae3
Refactor error handling in _to_epoch and insert_row functions for imp…
Abhi-MS Sep 5, 2025
2bd394f
Improve device metrics fetching and error handling in ConnectionDetai…
Abhi-MS Sep 6, 2025
1076865
Enhance device metrics resolution with optional filters and improved …
Abhi-MS Sep 6, 2025
fce220d
Edit docstrings
Abhi-MS Sep 6, 2025
d968506
Update docstring in Query class to clarify optional filters for devic…
Abhi-MS Sep 6, 2025
19bceec
Refactor DeviceDetails styles for better specificity; update return t…
Abhi-MS Sep 6, 2025
09a6e89
Trigger CodeRabbit review
Abhi-MS Sep 6, 2025
ff42348
Add 'use client' directive in LineChartWrapper; refactor TopologyChar…
Abhi-MS Sep 6, 2025
2479bba
Refactor date handling in DeviceHistoryChart; add parseDateOnlyLocal …
Abhi-MS Sep 6, 2025
b290979
rerun CodeRabbit check
Abhi-MS Sep 6, 2025
0b02d6d
CSS backup
Abhi-MS Jun 23, 2025
63447a0
Update on devices overview table
Abhi-MS Jun 25, 2025
fe8f5f7
Move data fetching to page level
Abhi-MS Jul 8, 2025
60fb845
Latest code on topology chart(working)
Abhi-MS Jul 8, 2025
64279bd
Improve TypeScript type safety in Home component
Abhi-MS Jul 9, 2025
6a0eeb5
Improve TypeScript type safety in Devices Details page
Abhi-MS Jul 9, 2025
e190200
Improve TypeScript type safety in Devices Overview component
Abhi-MS Jul 9, 2025
70a7ecf
Improve type safety in Zonedropdown component
Abhi-MS Jul 9, 2025
313a55a
Improve colours
Abhi-MS Jul 11, 2025
002f198
Improve styles
Abhi-MS Jul 11, 2025
896d15a
Add sys description
Abhi-MS Jul 11, 2025
44012a4
Improve TypeScript type safety in connection-details component
Abhi-MS Jul 16, 2025
fb4b9a3
Add more comments and logic to show nearby devices not in the zone
Abhi-MS Jul 18, 2025
9300be1
Add custom style to tooltips
Abhi-MS Jul 27, 2025
e4825bb
Add style to tooltip
Abhi-MS Jul 27, 2025
062a120
feat: integrate feature development repo into main codebase
Abhi-MS Jul 29, 2025
abd2847
Update typedoc-plugin version
Abhi-MS Jul 29, 2025
d85e601
Update imports
Abhi-MS Jul 29, 2025
126c71c
Add JSDoc to Topology chart component
Abhi-MS Jul 29, 2025
af57085
Add check to see if sysuptime is a number and greater than zero to de…
Abhi-MS Jul 29, 2025
07bf151
Address code rabbit suggestions
Abhi-MS Jul 30, 2025
f66782f
Code Rabbit suggestion : Add retry logic to device fetching
Abhi-MS Jul 30, 2025
82dcec3
Create basic components for historical charts
Abhi-MS Jul 31, 2025
a82c94c
Move data fetching to device page
Abhi-MS Aug 1, 2025
66c5fba
Add topology chart to device details page
Abhi-MS Aug 2, 2025
3d88bd7
Insert metadata table
Abhi-MS Aug 2, 2025
1557a41
Update styles and layout in device overview tab
Abhi-MS Aug 2, 2025
4bb2a95
Enhance DeviceDetails component: add time range selection and filter …
Abhi-MS Aug 22, 2025
a2c8c41
Add dynamic sidebar collapse for device page
Abhi-MS Aug 26, 2025
c062719
Persist active tab, preserve hash, and prevent hydration flash on reload
Abhi-MS Aug 27, 2025
56fce2a
Set up vitest in frontend
Abhi-MS Aug 29, 2025
8e22011
Add test to package.json
Abhi-MS Aug 29, 2025
cab7343
Match common conventions in other repo
Abhi-MS Aug 29, 2025
e309af2
Test for zonedropdown component
Abhi-MS Aug 29, 2025
018bd1a
Test for Linewrapper component
Abhi-MS Aug 29, 2025
a7b4306
Tests for HistoricalChart component
Abhi-MS Aug 29, 2025
9b8ef22
Tests for Device Details component
Abhi-MS Sep 1, 2025
5b5295b
Fetch first non empty event for zones dropdown
Abhi-MS Sep 1, 2025
dee75d7
Tests for TopologyChart and centralize imports
Abhi-MS Sep 1, 2025
45cbac4
Tests for ConnectionDetails
Abhi-MS Sep 1, 2025
a6bbd31
Tests for DevicesOverview table
Abhi-MS Sep 2, 2025
29c581f
Tests for sidebar
Abhi-MS Sep 2, 2025
fb78264
Tests for Device page
Abhi-MS Sep 2, 2025
29e11fd
Tests for History page
Abhi-MS Sep 2, 2025
d18b116
Tests for theme-toggle
Abhi-MS Sep 2, 2025
afef0e6
Tests for Home Page
Abhi-MS Sep 2, 2025
b161ffb
Tests for layout
Abhi-MS Sep 2, 2025
94943b9
Tests for utility functions
Abhi-MS Sep 2, 2025
c49826e
Add more tests to TopologyGraph
Abhi-MS Sep 3, 2025
11d70e4
Add more tests to History page
Abhi-MS Sep 3, 2025
7682824
Add more tests to DeviceDetails
Abhi-MS Sep 3, 2025
f23e62e
Polish code
Abhi-MS Sep 6, 2025
7bcc072
Improve home page tests
Abhi-MS Sep 7, 2025
4dad386
Improve ZoneDropdown tests
Abhi-MS Sep 7, 2025
4014854
Temprorary schema change to get data on frontend
Abhi-MS Sep 7, 2025
6cfb86c
Add ConnectionCharts component and integrate with DevicePage
Abhi-MS Sep 9, 2025
2cb0a4d
Add Pagination
Abhi-MS Sep 9, 2025
c4b8ff7
Update styles
Abhi-MS Sep 9, 2025
9a07e93
Improve responsiveness and overall styles
Abhi-MS Sep 9, 2025
dcd28d3
Enhance ConnectionCharts component with time range filters and improv…
Abhi-MS Sep 10, 2025
f768f7c
Add dropdown for time range selection and enhance custom date inputs …
Abhi-MS Sep 10, 2025
eaed4cc
Modify Test file for new dropdown
Abhi-MS Sep 10, 2025
88c9344
Make connection charts tabe fully responsive
Abhi-MS Sep 15, 2025
c8f6db4
Add all zones option
Abhi-MS Sep 15, 2025
efd463a
Polish code
Abhi-MS Sep 16, 2025
e7d1a4e
Add fall back ui for device charts
Abhi-MS Sep 17, 2025
2cb75f2
Modify test to match new fall back logic in device details
Abhi-MS Sep 18, 2025
db2ee92
Add more tests for history page
Abhi-MS Sep 19, 2025
0493219
Improve loading ui
Abhi-MS Sep 21, 2025
8bdcd28
test(DeviceDetails): increase test coverage toward 100%
Abhi-MS Sep 21, 2025
7b1eb5f
refactor(DeviceDetails): optimize tests
Abhi-MS Sep 22, 2025
44cddbd
refactor(ConnectionCharts): optimize tests
Abhi-MS Sep 22, 2025
e7b393b
refactor(ConnectionDetails): optimize tests
Abhi-MS Sep 22, 2025
aa4e304
refactor(DevicesOverview): optimize tests
Abhi-MS Sep 23, 2025
fed8316
refactor(HistoricalChart): optimize tests
Abhi-MS Sep 23, 2025
f1daf76
refactor(LineChartWrapper): optimize tests
Abhi-MS Sep 23, 2025
5db6a67
refactor(Sidebar): optimize tests
Abhi-MS Sep 23, 2025
6a0fce7
refactor(ZoneDropdown): optimize tests
Abhi-MS Sep 23, 2025
b45e792
refactor(Home Page): optimize tests
Abhi-MS Sep 23, 2025
cf63deb
Update vite.config file to exclude mocks, types and config files
Abhi-MS Sep 23, 2025
0ae7059
refactor(TopologyChart): optimize tests
Abhi-MS Sep 23, 2025
6eaee21
Final polish
Abhi-MS Sep 23, 2025
3cd99b5
Add PR job for minimum 80% coverage
Abhi-MS Sep 23, 2025
674776b
Add recharts to dependencies
Abhi-MS Sep 23, 2025
267c960
Code Rabbit Suggestions
Abhi-MS Sep 23, 2025
1dd7765
Delete unwanted folder
Abhi-MS Sep 23, 2025
d1278ba
Code Rabbit Suggestions
Abhi-MS Sep 23, 2025
4ede812
CodeRabbit suggestions
Abhi-MS Sep 23, 2025
c610857
Code Rabbit suggestions
Abhi-MS Sep 23, 2025
d62ef42
Code Rabbit suggestions
Abhi-MS Sep 23, 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
47 changes: 47 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,53 @@ jobs:
path: ./coverage/coverage.lcov
min_coverage: 0.0

Test-Frontend:
name: Test Frontend and Coverage
runs-on: ubuntu-latest
needs: [Code-Quality-Checks] # or [Test-Application] if you want backend ready
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22

- name: Cache node modules
uses: actions/cache@v4
with:
path: frontend/node_modules
key: ${{ runner.os }}-node-${{ hashFiles('frontend/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-

- name: Install frontend dependencies
working-directory: frontend
run: npm install

- name: Run frontend tests with coverage
working-directory: frontend
run: npm run test -- --coverage


- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: frontend/coverage/lcov.info
fail_ci_if_error: true
verbose: true

- name: Test acceptable level of code coverage
uses: VeryGoodOpenSource/very_good_coverage@v3
with:
path: frontend/coverage/lcov.info
min_coverage: 80.0


Test-Docusaurus-Deployment:
name: Test Deployment to https://docs-legacy.switchmap-ng.io
runs-on: ubuntu-latest
Expand Down
22 changes: 22 additions & 0 deletions docs/docs/backend/Server.md
Original file line number Diff line number Diff line change
Expand Up @@ -2030,6 +2030,28 @@ class Query(graphene.ObjectType)

Define GraphQL queries.

<a id="db.schemas.Query.resolve_devices"></a>

#### resolve\_devices

```python
def resolve_devices(root, info, hostname=None, **kwargs)
```

Resolve and return devices from the database.

**Arguments**:

- `root` - The root object (not used here).
- `info` - GraphQL resolver info, used to get the query context.
- `hostname` _str, optional_ - If provided, filters by this hostname.
- `**kwargs` - Additional arguments (ignored).


**Returns**:

- `sqlalchemy.orm.Query` - A query object for the matching Device.

<a id="db.schemas.Query.resolve_deviceMetrics"></a>

#### resolve\_deviceMetrics
Expand Down
10 changes: 5 additions & 5 deletions docs/docs/frontend/components/ConnectionDetails.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@

### ConnectionDetails()

> **ConnectionDetails**(`__namedParameters`): `Element`
> **ConnectionDetails**(`__namedParameters`): `null` | `Element`

Defined in: [components/ConnectionDetails.tsx:34](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/components/ConnectionDetails.tsx#L34)
Defined in: [components/ConnectionDetails.tsx:78](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/components/ConnectionDetails.tsx#L78)

#### Parameters

##### \_\_namedParameters

###### device
###### device

[`DeviceNode`](../types/graphql/GetZoneDevices.md#devicenode)
`DeviceNode`

#### Returns

`Element`
`null` | `Element`
2 changes: 1 addition & 1 deletion docs/docs/frontend/components/TopologyChart.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

> **TopologyChart**(`__namedParameters`): `Element`

Defined in: [components/TopologyChart.tsx:34](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/components/TopologyChart.tsx#L34)
Defined in: [components/TopologyChart.tsx:32](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/components/TopologyChart.tsx#L32)

#### Parameters

Expand Down
2 changes: 1 addition & 1 deletion docs/docs/frontend/components/ZoneDropdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

> **ZoneDropdown**(`__namedParameters`): `Element`

Defined in: [components/ZoneDropdown.tsx:34](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/components/ZoneDropdown.tsx#L34)
Defined in: [components/ZoneDropdown.tsx:30](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/components/ZoneDropdown.tsx#L30)

#### Parameters

Expand Down
6 changes: 3 additions & 3 deletions docs/docs/frontend/devices/[id]/page.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

### default()

> **default**(): `null` \| `Element`
> **default**(): `Element`

Defined in: [devices/\[id\]/page.tsx:78](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/devices/[id]/page.tsx#L78)
Defined in: [devices/\[id\]/page.tsx:33](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/devices/[id]/page.tsx#L33)

#### Returns

`null` \| `Element`
`Element`
5 changes: 0 additions & 5 deletions docs/docs/frontend/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,15 @@
## Modules

- [components/ConnectionDetails](components/ConnectionDetails.md)
- [components/DeviceDetails](components/DeviceDetails.md)
- [components/DevicesOverview](components/DevicesOverview.md)
- [components/HistoricalChart](components/HistoricalChart.md)
- [components/LineChartWrapper](components/LineChartWrapper.md)
- [components/Sidebar](components/Sidebar.md)
- [components/TopologyChart](components/TopologyChart.md)
- [components/ZoneDropdown](components/ZoneDropdown.md)
- [devices/\[id\]/page](devices/[id]/page.md)
- [history/page](history/page.md)
- [layout](layout.md)
- [page](page.md)
- [theme-toggle](theme-toggle.md)
- [types/graphql/GetDeviceInterfaces](types/graphql/GetDeviceInterfaces.md)
- [types/graphql/GetZoneDevices](types/graphql/GetZoneDevices.md)
- [utils/stringUtils](utils/stringUtils.md)
- [utils/time](utils/time.md)
- [utils/timeStamp](utils/timeStamp.md)
40 changes: 17 additions & 23 deletions docs/docs/frontend/types/graphql/GetZoneDevices.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@

> **DeviceEdge** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:50](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L50)
Defined in: [types/graphql/GetZoneDevices.ts:49](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L49)

#### Properties

##### node

> **node**: [`DeviceNode`](#devicenode)

Defined in: [types/graphql/GetZoneDevices.ts:51](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L51)
Defined in: [types/graphql/GetZoneDevices.ts:50](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L50)

***

Expand Down Expand Up @@ -56,12 +56,6 @@ Defined in: [types/graphql/GetZoneDevices.ts:41](https://github.com/PalisadoesFo

Defined in: [types/graphql/GetZoneDevices.ts:46](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L46)

##### lastPolled

> **lastPolled**: `number` \| `null`

Defined in: [types/graphql/GetZoneDevices.ts:47](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L47)

##### sysDescription

> **sysDescription**: `string`
Expand Down Expand Up @@ -92,31 +86,31 @@ Defined in: [types/graphql/GetZoneDevices.ts:43](https://github.com/PalisadoesFo

> **Devices** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:61](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L61)
Defined in: [types/graphql/GetZoneDevices.ts:60](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L60)

#### Properties

##### edges

> **edges**: [`DeviceEdge`](#deviceedge)[]

Defined in: [types/graphql/GetZoneDevices.ts:62](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L62)
Defined in: [types/graphql/GetZoneDevices.ts:61](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L61)

***

### GetZoneDevicesData

> **GetZoneDevicesData** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:74](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L74)
Defined in: [types/graphql/GetZoneDevices.ts:73](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L73)

#### Properties

##### data

> **data**: `object`

Defined in: [types/graphql/GetZoneDevices.ts:75](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L75)
Defined in: [types/graphql/GetZoneDevices.ts:74](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L74)

###### zone

Expand All @@ -126,7 +120,7 @@ Defined in: [types/graphql/GetZoneDevices.ts:75](https://github.com/PalisadoesFo

> `optional` **errors**: `object`[]

Defined in: [types/graphql/GetZoneDevices.ts:78](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L78)
Defined in: [types/graphql/GetZoneDevices.ts:77](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L77)

###### message

Expand All @@ -138,15 +132,15 @@ Defined in: [types/graphql/GetZoneDevices.ts:78](https://github.com/PalisadoesFo

> **GetZoneDevicesVars** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:81](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L81)
Defined in: [types/graphql/GetZoneDevices.ts:80](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L80)

#### Properties

##### id

> **id**: `string`

Defined in: [types/graphql/GetZoneDevices.ts:82](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L82)
Defined in: [types/graphql/GetZoneDevices.ts:81](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L81)

***

Expand Down Expand Up @@ -217,60 +211,60 @@ Defined in: [types/graphql/GetZoneDevices.ts:35](https://github.com/PalisadoesFo

> **Zone** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:69](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L69)
Defined in: [types/graphql/GetZoneDevices.ts:68](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L68)

#### Properties

##### devices

> **devices**: [`Devices`](#devices)

Defined in: [types/graphql/GetZoneDevices.ts:70](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L70)
Defined in: [types/graphql/GetZoneDevices.ts:69](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L69)

***

### ZoneEdge

> **ZoneEdge** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:57](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L57)
Defined in: [types/graphql/GetZoneDevices.ts:56](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L56)

#### Properties

##### node

> **node**: [`ZoneNode`](#zonenode)

Defined in: [types/graphql/GetZoneDevices.ts:58](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L58)
Defined in: [types/graphql/GetZoneDevices.ts:57](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L57)

***

### ZoneNode

> **ZoneNode** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:53](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L53)
Defined in: [types/graphql/GetZoneDevices.ts:52](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L52)

#### Properties

##### devices

> **devices**: [`Devices`](#devices)

Defined in: [types/graphql/GetZoneDevices.ts:54](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L54)
Defined in: [types/graphql/GetZoneDevices.ts:53](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L53)

***

### Zones

> **Zones** = `object`

Defined in: [types/graphql/GetZoneDevices.ts:65](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L65)
Defined in: [types/graphql/GetZoneDevices.ts:64](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L64)

#### Properties

##### edges

> **edges**: [`ZoneEdge`](#zoneedge)[]

Defined in: [types/graphql/GetZoneDevices.ts:66](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L66)
Defined in: [types/graphql/GetZoneDevices.ts:65](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/types/graphql/GetZoneDevices.ts#L65)
8 changes: 1 addition & 7 deletions docs/docs/frontend/utils/stringUtils.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

> **truncateLines**(`str`, `options?`): `string`

Defined in: [utils/stringUtils.ts:8](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/utils/stringUtils.ts#L8)
Defined in: [utils/stringUtils.ts:5](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/utils/stringUtils.ts#L5)

Truncates a string to a specified number of lines with optional max length.
Adds line breaks and an ellipsis if truncated.
Expand All @@ -23,12 +23,8 @@ Adds line breaks and an ellipsis if truncated.

`string`

The string to truncate.

##### options?

Optional settings for lines and maxLength.

###### lines?

`number`
Expand All @@ -40,5 +36,3 @@ Optional settings for lines and maxLength.
#### Returns

`string`

The truncated string with line breaks and ellipsis if applicable.
8 changes: 1 addition & 7 deletions docs/docs/frontend/utils/time.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,14 @@

> **formatUptime**(`hundredths`): `string`

Defined in: [utils/time.ts:6](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/utils/time.ts#L6)

Converts uptime in hundredths of a second to a human-readable format (days, hours, minutes, seconds).
Defined in: [utils/time.ts:2](https://github.com/PalisadoesFoundation/switchmap-ng/blob/develop/frontend/src/app/utils/time.ts#L2)

#### Parameters

##### hundredths

`number`

Uptime in hundredths of a second.

#### Returns

`string`

A formatted string representing the uptime.
Loading
Loading