Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
8d938ff
fixed word-break
canptura May 15, 2026
f938080
refactoring
canptura May 15, 2026
cc28b96
Merge branch 'main' of https://github.com/PROCEED-Labs/proceed into e…
canptura May 18, 2026
7d6f1d7
new tab added with placeholder text
canptura May 19, 2026
31e3846
more placeholder fields added, refactoring for readability
canptura May 20, 2026
7f1772f
styling ideas
canptura May 22, 2026
a5346ad
timing moved to different tab
canptura May 26, 2026
f065958
breakpoint causes Modal instead of Drawer
canptura May 26, 2026
71cd501
incorporation of some reference layouts and style
canptura Jun 1, 2026
7068e65
tech tags and switch functionality added
canptura Jun 2, 2026
c45d6e4
N/A-elements added, grid generalization added, general abstraction
canptura Jun 2, 2026
12fd725
reusable text component added for data display
canptura Jun 3, 2026
2a77911
variable form styling finished, activity styling added
canptura Jun 8, 2026
34e1f7f
removed unwanted and redundant elements, added description text viewe…
canptura Jun 9, 2026
a09bc6b
Merge branch 'main' of https://github.com/PROCEED-Labs/proceed into e…
canptura Jun 9, 2026
4d3cb6c
adapted to new stucture
canptura Jun 9, 2026
fe67182
Merge branch 'main' of https://github.com/PROCEED-Labs/proceed into e…
canptura Jun 10, 2026
27e896c
bugfix: unknow prop given to DOM element
canptura Jun 10, 2026
e261b73
filling some values in the details page
canptura Jun 11, 2026
37992c0
planned delay added
canptura Jun 13, 2026
9fd9631
getProcessVersions server action added, field data added: timing, ini…
canptura Jun 15, 2026
132dfe1
dynamic loading of the textViewer added
canptura Jun 15, 2026
e7d6d26
cost display bugfix
canptura Jun 15, 2026
da49167
proper image display in overview
canptura Jun 15, 2026
10409aa
removed description styling
canptura Jun 16, 2026
eac9feb
Process Manager data added
canptura Jun 19, 2026
c467c87
Merge branch 'main' of https://github.com/PROCEED-Labs/proceed into e…
canptura Jun 19, 2026
84e0bc8
refactoring of component names to resemble the tab labels
canptura Jun 19, 2026
1a580c1
removed TODO text contents
canptura Jun 19, 2026
c3146e0
date formatting added
canptura Jun 19, 2026
8a1e318
event details panel data added
canptura Jun 22, 2026
863d32e
overview event data added
canptura Jun 23, 2026
801a748
code cleanup
canptura Jun 23, 2026
2b38385
previous step added, some styling
canptura Jun 23, 2026
9c5033d
typo
canptura Jun 23, 2026
e7b0a9f
previousStepID, some restyling
canptura Jun 23, 2026
04fc16d
bogfix: wrong instance state on multiple tokens
canptura Jun 25, 2026
ffcf389
instance selector set to hide dummy data
canptura Jun 25, 2026
4e36769
cleaning up imports
canptura Jun 25, 2026
ba87ab6
hiding and commenting of unused element, display of even name in over…
canptura Jun 25, 2026
d54947d
Merge branch 'main' of https://github.com/PROCEED-Labs/proceed into e…
canptura Jun 26, 2026
6e22742
typos and little tweaks
canptura Jun 27, 2026
c789a10
actualperformer using correct data
canptura Jun 27, 2026
4ed4a71
loading from log if possible to skip fetching data
canptura Jun 27, 2026
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.GridContainer {
display: grid;
grid-template-columns: repeat(1, 1fr);
}

.GridCell {
padding: 10px 5px;
border-bottom: 1px solid #ddd;
}

.GridCell:last-child {
border-bottom: none;
}

.GridCell:hover {
background-color: rgba(93, 117, 136, 0.05);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
import { ReactNode } from 'react';
import { Col, Row, Tag, Typography } from 'antd';
import { ClockCircleFilled } from '@ant-design/icons';
import styles from './element-activity.module.scss';
import { ElementLike } from 'diagram-js/lib/model/Types';
import { ExtendedInstanceInfo } from '@/lib/data/instance';

type EntryTextProps = React.ComponentProps<typeof Typography.Text>;
const TimetableEntryText = (props: EntryTextProps) => (
<Typography.Text
ellipsis={{ tooltip: { ...props } }}
style={{
wordBreak: 'normal',
}}
{...props}
/>
);

const ClockSymbol = () => (
<ClockCircleFilled style={{ fontSize: '1.1rem', verticalAlign: 'middle' }} />
);

export function ElementActivity({
processId,
element,
instance,
}: {
processId: string;
element?: ElementLike;
instance?: ExtendedInstanceInfo;
}) {
const activityEntries: ReactNode[][] = [];

const activityLog: [string, 'INFO' | 'WARN', string][] = [
Comment on lines +32 to +34

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think as of now there is no indication in the logs of an instance that links a log output to a specific activity so this might be a bit harder to do with actual instance data.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think activity is just supposed to be the frontend name for the log display

['09:14:02', 'INFO', 'Process started by m.chen'],
['09:15:02', 'INFO', "ZStep 'Receive Application' started"],
['09:16:13', 'INFO', "Step 'Receive Application' completed"],
['09:18:23', 'INFO', "Gateway 'Application complete?' yes"],
['09:23:13', 'INFO', "Step 'Credit Check' started"],
['09:19:35', 'WARN', 'Credit Bureau response delayed (retry 1/3)'],
['09:25:54', 'INFO', "Step 'Credit Check' completed"],
['09:35:23', 'INFO', "Step 'Manager Approval' started"],
];

const tagStatus: Record<'INFO' | 'WARN', string> = {
INFO: 'processing',
WARN: 'warning',
};

return (
<div
className={styles.GridContainer}
style={{ border: 'solid 1px #ddd', borderRadius: 12, marginBlock: 15 }}
>
{activityLog.map((row, idx_row) => (
<Row key={'activity' + idx_row} className={styles.GridCell}>
<Col flex="70px" style={{ textAlign: 'center' }}>
{row[0]}
</Col>

<Col flex="70px" style={{ textAlign: 'center' }}>
<Tag color={tagStatus[row[1]]}>{row[1]}</Tag>
</Col>

<Col flex="auto" style={{ padding: '0 10px' }}>
{row[2]}
</Col>
</Row>
))}
</div>
);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
.ElementText {
word-break: normal;
}

.ElementKeyText {
color: gray;
font-size: 0.8em;
}

.ElementValueText {
font-size: 0.9em;
}
Loading