From d1031652612b0c916d829941b0688e4196d6adce Mon Sep 17 00:00:00 2001 From: Thomas Chopitea Date: Wed, 4 Dec 2024 16:08:13 +0100 Subject: [PATCH] Timeline view (#237) --- .github/workflows/build.yaml | 2 +- src/components/EditObject.vue | 3 +- src/components/GraphObjects.vue | 1 - src/components/Timeline.vue | 87 +++++++++++++++++++++++++++++++++ src/views/ObjectDetails.vue | 19 ++++++- src/views/ObservableDetails.vue | 26 +++++++--- 6 files changed, 125 insertions(+), 13 deletions(-) create mode 100644 src/components/Timeline.vue diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 1157598..8452dbd 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node: [14, 16, 18] + node: [16, 18, 20, 22] name: Node ${{ matrix.node }} sample steps: - uses: actions/checkout@v4 diff --git a/src/components/EditObject.vue b/src/components/EditObject.vue index 37164c8..166dac1 100644 --- a/src/components/EditObject.vue +++ b/src/components/EditObject.vue @@ -77,7 +77,8 @@ export default { methods: { saveObject() { let patchRequest = { - type: this.object.type + type: this.object.type, + id: this.object.id }; this.editableFields.forEach(field => { patchRequest[field.field] = this.localObject[field.field]; diff --git a/src/components/GraphObjects.vue b/src/components/GraphObjects.vue index d5f29b0..06ca160 100644 --- a/src/components/GraphObjects.vue +++ b/src/components/GraphObjects.vue @@ -488,7 +488,6 @@ export default { }, getColorForObject(node) { - console.log("color", node); return ( this.objectTypes.find(objectType => objectType.type === node.object_type)?.color || DEFAULT_COLOR_MAP[node.root_type] diff --git a/src/components/Timeline.vue b/src/components/Timeline.vue new file mode 100644 index 0000000..03b0d4c --- /dev/null +++ b/src/components/Timeline.vue @@ -0,0 +1,87 @@ + + + diff --git a/src/views/ObjectDetails.vue b/src/views/ObjectDetails.vue index 5d9bfe0..d7e9331 100644 --- a/src/views/ObjectDetails.vue +++ b/src/views/ObjectDetails.vue @@ -62,6 +62,20 @@ Info + + + + + +