Joao Correia
19f2193414
use custom hook to rerender workflow instead of reloading full page.
2025-02-03 12:31:21 +00:00
Joao Correia
d59b654ac2
do not allow empty steps in workflows
2025-02-03 11:34:56 +00:00
Joao Correia
835a9bee03
- Filter available form intakers so that no form intaker can be in two workflows at once.
...
- add getApprovalWorkflowByIntaker to prepare workflow start after exam creation.
- fix builder bug with step keys
- ignore edit view for now because it will only be available for active workflows and not configured workflows.
2025-02-02 22:40:05 +00:00
Joao Correia
16545d2075
refactor workflows api
2025-02-02 11:11:52 +00:00
Joao Correia
b684262759
Fix id handling on update
2025-02-01 23:14:17 +00:00
Joao Correia
ac539332e6
major change on how workflow builder works. It now fetches in edit mode all the currently configured workflows
2025-02-01 22:36:42 +00:00
Joao Correia
a0229cd971
implement rejection of steps
2025-01-31 20:56:40 +00:00
Joao Correia
662e3b0266
- implement approval of steps
...
- remove currentStep field from step
- implement save comments on step
- fix _id issue when saving to mongo
2025-01-31 17:01:20 +00:00
Joao Correia
9de4cba8e8
refactor fetched users into single array and replace Image tag with img
2025-01-31 10:37:14 +00:00
Joao Correia
f89b42c41c
remove currentStep from step type
2025-01-30 12:06:13 +00:00
Joao Correia
c968044160
switch to mongo's id handling
2025-01-30 11:50:28 +00:00
Joao Correia
5d727fc528
implement delete workflow
2025-01-30 11:07:13 +00:00
Joao Correia
bdc5ff7797
- edit workflow back-end implementation
...
- clone workflow back-end implementation
- added loading and redirecting to form submissions
- fixed form intake in progress bug
- fixed rendering bug
2025-01-29 20:49:19 +00:00
Joao Correia
011c6e9e30
Start implementing with back-end. Create workflows completed and fetching workflows on server side as well, to show them in the table.
2025-01-29 17:50:03 +00:00
Joao Correia
42a8ec2f8a
small fixes
2025-01-29 15:35:59 +00:00
Joao Correia
a40ae04aa3
Add workflow table name filter
2025-01-27 12:50:18 +00:00
Joao Correia
8db47a3962
Filter out empty select inputs on form submission
2025-01-26 14:07:25 +00:00
Joao Correia
ab81a1753d
- Implement cloning of workflow
...
- Entity change will now only clear the assignees instead of the whole workflow
- Fix bug where side panel was showing all workflow assignees instead of just selected step assignees
2025-01-26 04:31:36 +00:00
Joao Correia
73610dc273
implement edit workflow
2025-01-25 19:45:39 +00:00
Joao Correia
ac072b0a5a
small fixes and animate side panel content
2025-01-25 15:47:33 +00:00
Joao Correia
2c0153e055
Fix animations
2025-01-25 15:10:52 +00:00
Joao Correia
2eff08bf86
Add approval by to step details panel and add text size prop to UserWithProfilePicture component
2025-01-25 04:23:28 +00:00
Joao Correia
f71a7182dd
- Refactor of workflow and steps types to differentiate between editView and normalView.
...
- Added side panel with steps details
2025-01-25 03:44:50 +00:00
Joao Correia
1f7639a30e
- initial selected step
...
- assignees id to name on table view
2025-01-24 17:09:37 +00:00
Joao Correia
41d09eaad8
Make data dynamic in workflow view. Add requester and startDate to workflows.
2025-01-24 14:14:07 +00:00
Joao Correia
f6b0c96b3b
Finish Approval Workflow builder for the most part. TODO: implement permissions
2025-01-24 00:33:45 +00:00
Joao Correia
dcd25465fd
on workflow builder, only render steps if name and entity are set. reset workflow on entity reset.
2025-01-23 22:56:45 +00:00
Joao Correia
c921d54d50
code refactoring
2025-01-23 22:12:25 +00:00
Joao Correia
a4f60455b5
Render previous select input options when switching between workflows in builder
2025-01-23 17:08:32 +00:00
Joao Correia
a0936cb1a4
Prevent same input on selects from the same step.
...
Change behaviour of initial step to allow multiple assignees
2025-01-23 15:10:14 +00:00
Joao Correia
aa76c2b54b
Work on workflow builder:
...
- Made number of approvers dynamic with many select inputs as needed
- Tracking approval select input changes with step.assignees
- Fetching teachers and corporates from backend
- Responsive styling when rendering several select inputs
2025-01-23 02:48:25 +00:00
Joao Correia
4e81c08adb
fix bug in last commit where all entities would show up on select filter instead of user entities
2025-01-22 18:07:09 +00:00
Joao Correia
4895f00184
Add entityId to workflow. Allow filter workflows based on entityId. Restrict creation of workflows based on user entities.
2025-01-22 16:39:18 +00:00
Joao Correia
8f8d5e5640
Work on workflows table
2025-01-22 00:30:14 +00:00
Joao Correia
73e2e95449
work on non editable approval workflow steps view
2025-01-21 20:42:03 +00:00
Joao Correia
48187fc7f2
fix step numbering bug from previous commit and prepare non editable workflow view
2025-01-21 00:10:14 +00:00
Joao Correia
01222b3a13
dynamic list of new workflows in workflow builder and some code refactoring
2025-01-20 23:32:32 +00:00
Joao Correia
39a397d262
Add progress vertical bars to pipeline steps
2025-01-20 11:44:29 +00:00
Joao Correia
50d2841349
Implement reordering of steps
2025-01-19 22:26:02 +00:00
Joao Correia
f485c782f3
Start implementing workflow step form behaviour
2025-01-19 19:23:56 +00:00
Joao Correia
c2c9b3374c
Start work on Approval Workflow id page
2025-01-17 20:17:51 +00:00
Joao Correia
66d23b4140
Add local test data, implement [id].tsx for approval workflows
2025-01-17 18:44:52 +00:00
Joao Correia
580e319fb9
start implementation of approval workflows. Add nav, page, empty table, and status filtering
2025-01-17 15:20:46 +00:00
Tiago Ribeiro
205449e1ae
Merged in develop (pull request #136 )
...
Develop
2025-01-13 22:44:25 +00:00
carlos.mesquita
4724e98993
Merged in feature/ExamGenRework (pull request #135 )
...
ENCOA-312
Approved-by: Tiago Ribeiro
2025-01-13 22:41:51 +00:00
Carlos-Mesquita
6f9be29cd8
ENCOA-312
2025-01-13 21:02:34 +00:00
carlos.mesquita
d8fafa5cae
Merged in feature/ExamGenRework (pull request #134 )
...
ENCOA-311
Approved-by: Tiago Ribeiro
2025-01-13 08:08:19 +00:00
Carlos-Mesquita
ccbbf30058
ENCOA-311
2025-01-13 01:18:19 +00:00
Tiago Ribeiro
387418b9bd
Merged in develop (pull request #133 )
...
Develop
2025-01-06 21:32:31 +00:00
carlos.mesquita
715a841483
Merged in feature/ExamGenRework (pull request #132 )
...
Removed a non sense entity ownership classroom name check I added a while back, patched the same entity + same name + same admin query
Approved-by: Tiago Ribeiro
2025-01-06 21:21:05 +00:00