Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add log display #1215

Draft
wants to merge 89 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
efeb362
Add empty operator log component to the system monitor display
amarkensteijn Nov 5, 2024
f26190d
Add messages to data-iterator
amarkensteijn Nov 5, 2024
d861cbe
Add pagination
amarkensteijn Nov 5, 2024
2d29e88
Add search
amarkensteijn Nov 5, 2024
4d6e9b2
Correct log levels
amarkensteijn Nov 5, 2024
aaefe5c
Add filter options for user and log level
amarkensteijn Nov 5, 2024
f24f9cf
Style cards more like chat messages
amarkensteijn Nov 5, 2024
351753f
Use different style for log message by the current user
amarkensteijn Nov 5, 2024
7fd5885
Scroll instead of paginate
amarkensteijn Nov 5, 2024
f242398
Set color of message based on log level
amarkensteijn Nov 7, 2024
ebf6125
Put timestamp next to user
amarkensteijn Nov 7, 2024
86c1a12
Add icons
amarkensteijn Nov 7, 2024
6d6164b
Expand message if it consists of multiple submessages
amarkensteijn Nov 7, 2024
6d4067c
Cast type to any to ignore error, as casting to correct type is not p…
amarkensteijn Nov 11, 2024
70df4e5
Fix search for array of messages
amarkensteijn Nov 11, 2024
ddb9309
Add event codes to the log messages
amarkensteijn Nov 11, 2024
6d2b95b
Allow multiple selection in filter.
amarkensteijn Nov 11, 2024
7746329
Fix icon
amarkensteijn Nov 11, 2024
153dc35
Update types to reflect response from backend
amarkensteijn Nov 11, 2024
b6a4db0
Merge the different types of log messages, as the v-data-iteraor assu…
amarkensteijn Nov 12, 2024
04653e7
Filter on log type
amarkensteijn Nov 12, 2024
4105462
Link to topology node from log message
amarkensteijn Nov 12, 2024
0c06273
Make toolbar compact
amarkensteijn Nov 12, 2024
0e0830c
Option to add new message
amarkensteijn Nov 12, 2024
36ff484
Make the long message longer
amarkensteijn Nov 12, 2024
f473ae5
Cleanup operator log css
hvangeffen Jan 23, 2025
9f40bba
Add log display to route and use it for operator log
hvangeffen Feb 4, 2025
81280f9
Get logdisplays from back end and move types to util
hvangeffen Jan 23, 2025
988866c
Update pi requests to 1.5.3
hvangeffen Feb 5, 2025
bf27f27
Move log display to use function
hvangeffen Feb 5, 2025
a08b1c0
Rename operator log to logscomponent
hvangeffen Feb 5, 2025
bb39333
Get logs from backend
hvangeffen Feb 5, 2025
c589b44
Sort log messages from response
hvangeffen Feb 5, 2025
741a794
Remove log display data iterator
hvangeffen Feb 6, 2025
5b33336
Move log function to utils
hvangeffen Feb 6, 2025
4f19932
Move current user to composable
hvangeffen Feb 6, 2025
9e36614
Search on user, eventcode, text, taskrunid
hvangeffen Feb 6, 2025
e50dcd3
Key logdisplay
hvangeffen Feb 6, 2025
f427843
Reduce filter debounce
hvangeffen Feb 6, 2025
0bb15bd
Put username in user composable
hvangeffen Feb 6, 2025
e4ad6cc
Add init promise and getuser function to auth manager
hvangeffen Feb 6, 2025
5b3e43e
Add dissemination actions
hvangeffen Feb 6, 2025
d7e97f1
Remove unused computeds
hvangeffen Feb 6, 2025
1575aba
Improve rendering performance display logs
hvangeffen Feb 6, 2025
92a14bb
Add logs loading indicator
hvangeffen Feb 6, 2025
afd9033
Group log messages by task run id
hvangeffen Feb 6, 2025
b97a0bd
Add virtual scroll to subitems logs
hvangeffen Feb 6, 2025
9c191ff
Add logs date filter
hvangeffen Feb 11, 2025
78a43a4
TMP: Group task runs
hvangeffen Feb 11, 2025
2428c9e
Show dash for missing dates
hvangeffen Feb 12, 2025
ae84ca2
Add icon for task run status
hvangeffen Feb 12, 2025
7b20d57
Combine start and end date string task runs
hvangeffen Feb 12, 2025
5098b0e
Add user color to log
hvangeffen Feb 12, 2025
767ebb2
Use event code for taskrunids without a workflow
hvangeffen Feb 12, 2025
01c2d37
Linting
hvangeffen Feb 12, 2025
d47afdd
Update pi requests to 1.9.0
hvangeffen Feb 17, 2025
20d93e7
Add post manual log message
hvangeffen Feb 17, 2025
b99a564
Fix manual change causing system request refresh
hvangeffen Feb 17, 2025
2cc4ea7
Decrease new message button density
hvangeffen Feb 17, 2025
e4c548e
Center log display
hvangeffen Feb 17, 2025
e531ea3
Fix bottom padding logs display
hvangeffen Feb 17, 2025
3d9569f
Fix some virtual items not allowing for scrolling
hvangeffen Feb 17, 2025
2c51531
Allow manual messages to use newlines
hvangeffen Feb 17, 2025
a0f2a03
Add entry time to task run headers
hvangeffen Feb 18, 2025
daa5f87
Reduce url size taskruns
hvangeffen Feb 18, 2025
25578f7
Change from v-expansion to plain v-if
hvangeffen Feb 18, 2025
49cb7f9
Rename logItem to logMessageItem
hvangeffen Feb 18, 2025
eff2ae4
Rename logExpander to logItem
hvangeffen Feb 18, 2025
07f6390
Rename logExpansion to logTable
hvangeffen Feb 18, 2025
ec9da24
Rename logsComponent to logDisplayComponent
hvangeffen Feb 18, 2025
6dbfbfa
Make darkmode logtable background transparent
hvangeffen Feb 18, 2025
e92f113
Remove unecessary manual virtual refresh
hvangeffen Feb 18, 2025
44d36c7
Add bottom padding logs display
hvangeffen Feb 18, 2025
46a728a
Fix filtering causing taskrun request
hvangeffen Feb 18, 2025
f1447ec
Fix flickering logmessage component
hvangeffen Feb 18, 2025
6a3ae4e
Add taskrun utils
hvangeffen Feb 18, 2025
63de925
Add type guard task status
hvangeffen Feb 18, 2025
71ad0b7
Get task status icon task run
hvangeffen Feb 18, 2025
5f72ba8
Add critical and error as seperate log filter options
hvangeffen Feb 18, 2025
fae96f3
Remove unused console.log
hvangeffen Feb 18, 2025
be91c09
Add whatif type for pi-requests update
hvangeffen Feb 10, 2025
9419903
Add margin to top of table
hvangeffen Feb 18, 2025
fc58e4d
Add color to log status
hvangeffen Feb 18, 2025
6ce739d
Store whether a taskrun is expanded for virtual scroll
hvangeffen Feb 19, 2025
5918afe
Remove unused variables
hvangeffen Feb 19, 2025
cb41905
Only show log type filter when both are defined
hvangeffen Feb 19, 2025
36aea23
Use 0s in case of no date difference
hvangeffen Feb 19, 2025
7f65071
Fix multi task run fetch requests
hvangeffen Feb 20, 2025
09254cf
Keep manual and system logs requests in sync
hvangeffen Feb 20, 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
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"test-ct": "playwright test -c playwright-ct.config.ts"
},
"dependencies": {
"@deltares/fews-pi-requests": "^1.4.1",
"@deltares/fews-pi-requests": "^1.9.0",
"@deltares/fews-ssd-requests": "^1.0.1",
"@deltares/fews-ssd-webcomponent": "^1.0.2",
"@deltares/fews-web-oc-charts": "^3.1.0",
Expand Down
32 changes: 32 additions & 0 deletions src/components/logdisplay/LogDisplay.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<template>
<LogDisplayComponent
v-if="logDisplay"
:key="logDisplay.id"
:logDisplay
:noteGroup
/>
</template>

<script setup lang="ts">
import LogDisplayComponent from './LogDisplayComponent.vue'
import { configManager } from '@/services/application-config'
import { useLogDisplay } from '@/services/useLogDisplay'
import { useNoteGroup } from '@/services/useNoteGroup'
import type { TopologyNode } from '@deltares/fews-pi-requests'

interface Props {
topologyNode?: TopologyNode
}

const props = defineProps<Props>()

const baseUrl = configManager.get('VITE_FEWS_WEBSERVICES_URL')
const { logDisplay } = useLogDisplay(
baseUrl,
() => props.topologyNode?.logDisplay?.id,
)
const { noteGroup } = useNoteGroup(
baseUrl,
() => logDisplay.value?.manualLog?.noteGroupId,
)
</script>
Loading
Loading