Skip to content

Commit

Permalink
merge branch 'rc' into sy-881-console-logic-for-setting-user-permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pjdotson committed Sep 13, 2024
2 parents 9faf6a5 + 4cbd672 commit 9bb8e35
Show file tree
Hide file tree
Showing 92 changed files with 1,447 additions and 971 deletions.
80 changes: 51 additions & 29 deletions .github/PULL_REQUEST_TEMPLATE/rc.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,35 +109,57 @@ I can successfully:

I can successfully:

- [ ] Open create range dialog from command search bar.
- [ ] Open create range dialog from range toolbar.
- [ ] Open create range dialog from context menu in range toolbar.
- [ ] Create a new local range.
- [ ] Create a new persisted range.
- [ ] Set a parent range for a range.
- [ ] Attach labels to a range.
- [ ] Open the range overview dialog from the resources view.
- [ ] Edit range properties from the overview dialog.
- [ ] Edit meta-data properties on the range.
- [ ] Add child ranges to a range.
- [ ] Navigate to and from child ranges on a range.
- [ ] Make a change to the range in the edit dialog and see the changes propagate to the
overview dialog.
- [ ] Save a local range to Synnax in the range toolbar.
- [ ] Switch the active range in the range toolbar.
- [ ] Load a local range from the search bar.
- [ ] Load a persisted range from the search bar.
- [ ] Rename a range from the range toolbar.
- [ ] Edit a range from the range toolbar.
- [ ] Remove a range from the range toolbar.
- [ ] Delete a persisted range from the range toolbar.
- [ ] Delete a range in the resources view.
- [ ] Delete multiple ranges in the resources view.
- [ ] Set a range as an active range from the resources view.
- [ ] Edit a range from the resources view.
- [ ] Add a range to a plot from the resources view.
- [ ] Copy a link to a range and open it from the resources view.
- [ ] Rename a range from the range toolbar.
- [ ] Create Range Modal
- [ ] Create a new local range.
- [ ] Create a new persisted range.
- [ ] Set parent range
- [ ] Add labels
- [ ] Rename existing range
- [ ] Change times on existing range
- [ ] Range Layout
- [ ] Rename range.
- [ ] Rename range from tab.
- [ ] Change start and end times.
- [ ] Add labels.
- [ ] Set metadata.
- [ ] Delete metadata.
- [ ] Add child ranges.
- [ ] Open snapshots.
- [ ] Navigate to and from child ranges
- [ ] Search and Command Palette
- [ ] Open an existing range window
- [ ] Open create range dialog
- [ ] Range Toolbar
- [ ] Open create range modal from toolbar link when no range exists
- [ ] Switch the active range by clicking
- [ ] Context Menu
- [ ] Open create range modal
- [ ] Rename range
- [ ] Set active range
- [ ] Open create range modal with child range
- [ ] Add to active line plot
- [ ] Add to new line plot
- [ ] Remove from range toolbar
- [ ] Delete persisted range
- [ ] Copy link of persisted range
- [ ] Save local range to Synnax
- [ ] Resources Toolbar
- [ ] Open the range overview dialog by clicking on a range
- [ ] Context Menu
- [ ] Set active range
- [ ] Rename range
- [ ] Open create range modal with child range
- [ ] Group ranges
- [ ] Add to active line plot
- [ ] Add multiple ranges to active line plot
- [ ] Add to new line plot
- [ ] Add multiple ranges to new line plot
- [ ] Delete range
- [ ] Delete multiple ranges
- [ ] Copy link to range
- [ ] Open a range from its url
- [ ] Make changes to a range with resources toolbar, overview, and ranges toolbar open
and see changes propagate to all three.

### Channels

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<br />
<p align="center">
<a href="https://synnaxlabs.com/">
<img src="x/media/static/logo/icon-white-on-black.png" width="20%"/>
<img src="x/media/static/logo/icon-white-padded.png" width="20%"/>
</a>
<br />
<br />
Expand Down
27 changes: 13 additions & 14 deletions aspen/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<br />
<p align="center">
<a href="https://synnaxlabs.com/">
<img src="../x/media/static/logo/icon-white-on-black.png" width="20%"/>
<img src="../x/media/static/logo/icon-white-padded.png" width="20%"/>
</a>
<br />
<br />
Expand Down Expand Up @@ -31,30 +31,29 @@ synchronizing changes when it rejoins the cluster.

# Stability and Important Considerations

* Aspen is in active development and is not yet ready for production use. The key-value
API is stable, but the cluster API will likely change.
- Aspen is in active development and is not yet ready for production use. The key-value
API is stable, but the cluster API will likely change.

* Aspen maintains an entire copy of the key-value store on each node in the cluster. This
results in excellent read performance, but also means total storage requirements scale
linearly with cluster size.
- Aspen maintains an entire copy of the key-value store on each node in the cluster. This
results in excellent read performance, but also means total storage requirements scale
linearly with cluster size.

* Aspen is eventually consistent, meaning that reads may be stale for some period of time.
- Aspen is eventually consistent, meaning that reads may be stale for some period of time.

* The gossip protocol lacks three essential features: failure detection, failure recovery,
and efficient propagation guarantees. These are features that are currently in active
development.
- The gossip protocol lacks three essential features: failure detection, failure recovery,
and efficient propagation guarantees. These are features that are currently in active
development.

* While multi-node writes batched writes are supported, they are not yet transactional.
Single node batch writes are transactional (if the underlying key-value store supports
them).
- While multi-node writes batched writes are supported, they are not yet transactional.
Single node batch writes are transactional (if the underlying key-value store supports
them).

## Installation

```
go get github.com/synnaxlabs/aspen
```


## Usage

```go
Expand Down
2 changes: 1 addition & 1 deletion client/py/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://synnaxlabs.com/">
<img src="../../x/media/static/logo/title-white-on-black.svg" width="65%"/>
<img src="../../x/media/static/logo/icon-white-padded.png" width="20%"/>
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion client/ts/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a href="https://synnaxlabs.com/" style="display: block; text-align: center;">
<img src="../../x/media/static/logo/icon-white-on-black.png" width="20%"/>
<img src="../../x/media/static/logo/icon-white-padded.png" width="20%"/>
</a>

# Synnax TypeScript Client Library
Expand Down
2 changes: 1 addition & 1 deletion console/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<p align="center">
<a href="https://docs.synnaxlabs.com/reference/console/get-started">
<img src="../x/media/static/logo/icon-white-on-black.png" width="20%"/>
<img src="../x/media/static/logo/icon-white-padded.png" width="20%"/>
</a>
</p>

Expand Down
2 changes: 1 addition & 1 deletion console/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@synnaxlabs/console",
"private": true,
"version": "0.28.4",
"version": "0.28.6",
"type": "module",
"scripts": {
"dev": "tauri dev",
Expand Down
14 changes: 7 additions & 7 deletions console/release-spec.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"version": "v0.28.4",
"version": "v0.28.6",
"notes": "Synnax Update",
"pub_date": "2024-09-11T04:06:56Z",
"pub_date": "2024-09-13T20:06:37Z",
"platforms": {
"darwin-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRZ3h4ZmpWZnBGeURGNnVNeEg0VHQxeHZ6MzByejhBWXB6ckMvQ3dzWUxLTE8xekYzcVo4cmltUXVCcncxbVhOcyt5ZGRZWUJBYWVOMS9wUWZnczErMjNVWVFIZDhabkFnPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzI2MDI3MzM0CWZpbGU6U3lubmF4LmFwcC50YXIuZ3oKQ3ppTFlPcmszSzJ4RG1NU3lsVFFGclV1Mm4yNWZlOER5c3A4dGJNd01SZXdVbGViazRCSmJaeHd6V0lQRVRnaVNnblNKdWpzYVkxOHdCclVQY21DQWc9PQo=",
"url": "https://github.com/synnaxlabs/synnax/releases/download/console-v0.28.4-rc/Synnax.app.tar.gz"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRZ3h4ZmpWZnBGeURXZ3pneEJFblBxdkFtbmk5K0hzeCtWVVR0MU96TFhlWmZ4b1hRWHRva1NQdlh5Q1p2V2xtVTF5V2xndkxxRVVaMDRVak04aWtvSzBjUWVweENLcWdFPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzI2MjU3NjI3CWZpbGU6U3lubmF4LmFwcC50YXIuZ3oKQ3p0RHJ4cHF4d2tReStKUkhwZXRaNmhFemplT0dmaEJHWWEwNGR1YVRyNm5kWFcrUGNZN2lLLzlFRkFLdm5yajZMWnpPTXZhTVNoSE9PS3BQMUtQQlE9PQo=",
"url": "https://github.com/synnaxlabs/synnax/releases/download/console-v0.28.6-rc/Synnax.app.tar.gz"
},
"linux-x86_64": {
"signature": "not_supported_and_tauri_requires_an_entry",
"url": "https://github.com/synnaxlabs/synnax/releases/download/console-v0.28.4-rc/Synnax.app.tar.gz"
"url": "https://github.com/synnaxlabs/synnax/releases/download/console-v0.28.6-rc/Synnax.app.tar.gz"
},
"windows-x86_64": {
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRZ3h4ZmpWZnBGeU9OR0c4ZERaUUJHVVA4aWI0dE00NXlHbWg5bkVLWWFYWC9VMXdSUEluYkdtWmErcWxadmxVWnpJWVpDM3VPV1ZlQkJlNTBJaGVQS2VrVVphQWZUWEF3PQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzI2MDI3NDU0CWZpbGU6U3lubmF4XzAuMjguNF94NjRfZW4tVVMubXNpLnppcAp1S2FlYTRpT3dCanRHMEg0dVlOS2I1NzN2TW9SaTh5UUpVVlFIUUVNc3ZhT0lXMmdFajZpOElQOUorMU1JYStSZTZSanhzMjVxZk92Y3ZuTkZYZVJCZz09Cg==",
"url": "https://github.com/synnaxlabs/synnax/releases/download/console-v0.28.4-rc/Synnax_0.28.4_x64_en-US.msi.zip"
"signature": "dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUlVRZ3h4ZmpWZnBGeURzYm9Ia2ZVd09vRlRVdGRVY1JLMkZ1Mk4xQWtpSlRpMnBWM1dBTWxzVXc2QmJ4b0N6REovTDFRUG4zR3VTZ25NSEVvR2dXbFdMZlpDNU95ZFhCSFEwPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNzI2MjU3ODI0CWZpbGU6U3lubmF4XzAuMjguNl94NjRfZW4tVVMubXNpLnppcAp6U09XcGgwT3NrS0cwSExMVlIwV2dUU2FHSi9CSEg5cUczSi9DK3lBOG5TVzZ4Wmh0VG45VnNEbm5PYmJGVkxIZkhiV3ZiaVByTGFRcXRtUXhLemdDUT09Cg==",
"url": "https://github.com/synnaxlabs/synnax/releases/download/console-v0.28.6-rc/Synnax_0.28.6_x64_en-US.msi.zip"
}
}
}
8 changes: 5 additions & 3 deletions console/src/hardware/ni/device/Configure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ import { type ReactElement, useRef, useState } from "react";

import { CSS } from "@/css";
import { enrich } from "@/hardware/ni/device/enrich/enrich";
import { configurablePropertiesZ, Properties } from "@/hardware/ni/device/types";
import { configurablePropertiesZ, Properties, ZERO_PROPERTIES } from "@/hardware/ni/device/types";
import { type Layout } from "@/layout";
import { deep } from "@synnaxlabs/x";

export const Configure = ({
layoutKey,
Expand Down Expand Up @@ -117,13 +118,14 @@ const ConfigureInternal = ({
}
} else if (step === "identifier") {
if (!methods.validate("identifier")) return;
const er = enrich(device.model, device.properties);
await client.hardware.devices.create({
...device,
configured: true,
name: methods.get<string>("name").value,
properties: {
...er,
...device.properties,
...deep.copy(ZERO_PROPERTIES),
enriched: true,
identifier: methods.get<string>("identifier").value,
},
});
Expand Down
8 changes: 6 additions & 2 deletions console/src/hardware/opc/device/Configure.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export const createConfigureLayout =
export const Configure: Layout.Renderer = ({ onClose }): ReactElement => {
const client = Synnax.use();
const [connState, setConnState] = useState<TestConnCommandState | null>(null);
const addStatus = Status.useAggregator();

const methods = Form.use({
values: {
Expand Down Expand Up @@ -106,6 +107,7 @@ export const Configure: Layout.Renderer = ({ onClose }): ReactElement => {
);
setConnState(t);
},
onError: (e) => addStatus({ variant: "error", message: e.message }),
});

const confirm = useMutation<void, Error, void>({
Expand All @@ -132,7 +134,7 @@ export const Configure: Layout.Renderer = ({ onClose }): ReactElement => {
write: {
index: 0,
channels: {},
}
},
},
configured: true,
});
Expand Down Expand Up @@ -238,7 +240,9 @@ export const Configure: Layout.Renderer = ({ onClose }): ReactElement => {
triggers={[SAVE_TRIGGER]}
loading={testConnection.isPending}
disabled={testConnection.isPending}
onClick={() => testConnection.mutate()}
onClick={() => {
testConnection.mutate();
}}
>
Test Connection
</Button.Button>
Expand Down
2 changes: 1 addition & 1 deletion console/src/lineplot/LinePlot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ const Loaded = ({ layoutKey }: { layoutKey: string }): ReactElement => {
break;
case "range":
placer(
Range.createEditLayout({
Range.createLayout({
initial: {
timeRange: {
start: Number(timeRange.start.valueOf()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* included in the file licenses/APL.txt.
*/

.console-range-edit-layout {
padding-top: 2rem;
.console-range-create-layout {
padding-top: 2rem;
height: 100%;
}
}
Loading

0 comments on commit 9bb8e35

Please sign in to comment.