Commit graph

284 commits

Author SHA1 Message Date
al8763be
b45a20c9f5 Merge branch 'dev' into frontend 2024-03-18 00:06:20 +01:00
al8763be
ff6af1d250 Merge branch 'dev' into BumBranch 2024-03-17 23:11:49 +01:00
Imbus
e012b6ff12 Error checking in register component, redirect to login if success 2024-03-17 22:48:38 +01:00
al8763be
c3ce25236f Full implementation of getWeeklyProject 2024-03-17 22:35:51 +01:00
al8763be
6823102b44 Deleted API test 2024-03-17 22:27:21 +01:00
al8763be
7339a69bce getWeeklyReport 2024-03-17 22:20:34 +01:00
Davenludd
ead1482e50 Merge branch 'frontend' into gruppDM 2024-03-17 21:39:19 +01:00
Davenludd
07aaab5530 Merge branch 'frontend' into gruppDM 2024-03-17 21:22:10 +01:00
al8763be
447f2b73eb Merge branch 'gruppPP' into BumBranch 2024-03-17 19:42:01 +01:00
Peter KW
888256e9f6 Changed logincheck type and error clarification 2024-03-17 19:38:51 +01:00
al8763be
402b0ac08b Update API.test.ts 2024-03-17 19:28:03 +01:00
Peter KW
1977125923 Now exporting APIResponse interface 2024-03-17 19:18:03 +01:00
Peter KW
b999e47f94 Changes to handlesubmit 2024-03-17 19:17:34 +01:00
Peter KW
e7e79ced13 Now checks if user is in database with api.login and sets proper authority level based on name for now 2024-03-17 19:16:57 +01:00
Imbus
eae252c2a4 Merge branch 'frontend' of github.com:imbus64/TTime into frontend 2024-03-17 19:07:55 +01:00
Imbus
30cf0b6065 Making linter bro happy 2024-03-17 19:07:49 +01:00
al8763be
14668ea675 Test file for API 2024-03-17 19:05:39 +01:00
Mattias
17a081e816 minor fixes 2024-03-17 16:55:51 +01:00
Mattias
81893ae3e8 Minor fixes 2024-03-17 16:24:09 +01:00
Davenludd
9dd47f3d71 Update import paths for Types 2024-03-17 16:23:37 +01:00
pavel Hamawand
141e5c8bb6 minor fix 2024-03-17 16:21:36 +01:00
Davenludd
2ba10e837a Refactor API.ts to handle error response in submitWeeklyReport 2024-03-17 16:14:50 +01:00
al8763be
d57fe55074 Changes to SubmitWeeklyReport 2024-03-17 16:11:03 +01:00
Peter KW
b7fcafd75c Merge branch 'frontend' into gruppPP 2024-03-17 15:54:06 +01:00
Davenludd
830c234325 Update login response type in API.ts 2024-03-17 15:50:50 +01:00
al8763be
386f7c3a94 API Login return { success: true, data: data.token } 2024-03-17 15:49:34 +01:00
al8763be
d11e5e64f6 API Login return { success: true, data } data as JSON with token 2024-03-17 15:41:23 +01:00
Peter KW
060dc1ee3d Merge branch 'frontend' into gruppPP 2024-03-17 15:39:16 +01:00
Davenludd
c708ec47ca Merge branch 'frontend' into gruppDM 2024-03-17 15:36:41 +01:00
al8763be
a28bab459a API login returns { success: true, data: token } 2024-03-17 15:36:39 +01:00
al8763be
9511d509ca API imports fixed 2024-03-17 15:31:15 +01:00
Davenludd
b1f57e5ed8 Merge branch 'frontend' into gruppDM 2024-03-17 15:28:20 +01:00
al8763be
f5787fbc2e correct routes in main 2024-03-17 15:23:21 +01:00
al8763be
179a5196e9 Merge branch 'BumBranch' into frontend 2024-03-17 15:10:19 +01:00
al8763be
5327ac7ad1 lint + login function for API 2024-03-17 15:03:34 +01:00
Imbus
ff00b984fe Formatting and typing to make linter happy v2 2024-03-17 14:52:13 +01:00
Davenludd
6d5c25be5c Refactor Register component to use InputField component 2024-03-17 14:49:42 +01:00
Mattias
d6d2b6d170 Visual fixes 2024-03-17 14:49:42 +01:00
Imbus
cab7c3bdfd Formatting and typing to make linter happy 2024-03-17 14:44:25 +01:00
al8763be
2eecf17d42 Login feature API 2024-03-17 14:43:09 +01:00
Davenludd
46eebee84f Refactor API.ts for improved readability and maintainability 2024-03-17 14:21:38 +01:00
Mattias
f3931f905a Minor changes 2024-03-17 14:19:57 +01:00
pavel Hamawand
79eb59ad46 button fix 2024-03-17 14:13:35 +01:00
Mattias
62f1926305 Corrected NewWeeklyReport (prev. TimeReports) and changed imports 2024-03-17 13:39:16 +01:00
Peter KW
9bab627255 Change typ on button to submit 2024-03-17 12:57:18 +01:00
al8763be
8d0da111eb API - SubmitWeeklyReport & getUserProjects added 2024-03-17 12:35:53 +01:00
Peter KW
b6535c883d Small fix 2024-03-17 11:34:39 +01:00
Peter KW
3e73b11698 Merge branch 'frontend' into gruppPP 2024-03-17 11:02:44 +01:00
al8763be
d6d4eb3336 Merge branch 'master' into gruppDM 2024-03-17 10:51:23 +01:00
Peter KW
5e0b96ed87 Merge branch 'frontend' into gruppPP 2024-03-17 10:43:49 +01:00
Peter KW
8cf873a98b Changed so that most functionality was moved to separate components 2024-03-17 10:39:57 +01:00
Peter KW
15ec2108d3 Everything run from this file 2024-03-17 10:38:25 +01:00
Peter KW
02332c284b Login field component 2024-03-17 10:36:29 +01:00
Peter KW
94f5d3f85b Component for checking login, to be replaced with proper fetching 2024-03-17 10:35:48 +01:00
Peter KW
217b7b4a22 Input field component 2024-03-17 10:34:47 +01:00
Peter KW
2921458d82 Made backround animation on login page to its own component 2024-03-17 10:34:15 +01:00
Peter KW
c12e19770e Restructuring, less paths 2024-03-17 10:33:37 +01:00
Imbus
887f31dde0 goTypes generated from go code with tygo 2024-03-17 04:23:26 +01:00
Davenludd
d58720cdbd Refactor Register component to use InputField component 2024-03-16 18:38:42 +01:00
Mattias
92a4808cdd Created new type for timereport 2024-03-16 18:38:42 +01:00
Mattias
f3c5ce57eb Submit-button has been moved to the timereport 2024-03-16 18:38:42 +01:00
Mattias
3419898c66 Created groundwork for the timereport 2024-03-16 18:38:42 +01:00
Mattias
aae05acedb Added the register component to content 2024-03-16 18:38:42 +01:00
Mattias
a225020f6f Visual fixes 2024-03-16 18:38:42 +01:00
Mattias
2ce480707a Removed duplicate path 2024-03-16 18:38:42 +01:00
pavel Hamawand
17edf6b911 backButton 2024-03-16 18:01:14 +01:00
pavel Hamawand
31e3b99448 backbutton 2024-03-16 18:00:10 +01:00
pavel Hamawand
38378c7a10 babkbutton 2024-03-16 17:59:25 +01:00
pavel Hamawand
92336ff4fd backbutton 2024-03-16 17:58:27 +01:00
pavel Hamawand
17e9fa9d0a backbutton 2024-03-16 17:57:51 +01:00
pavel Hamawand
bdd6f68470 Time / role link 2024-03-16 17:56:59 +01:00
pavel Hamawand
9aa5087871 time / activity link 2024-03-16 17:54:34 +01:00
pavel Hamawand
8164ba9040 fix back button 2024-03-16 17:50:15 +01:00
pavel Hamawand
49305d507f link to projectMembers 2024-03-16 17:48:23 +01:00
Imbus
3526decbad Merge imbs 2024-03-16 17:46:08 +01:00
Imbus
151d6de39b Tygo for go->typescript type generation 2024-03-16 17:43:38 +01:00
Imbus
3c87fd4d8c New api interface 2024-03-16 17:42:28 +01:00
pavel Hamawand
e837f6e746 link to your time Reports 2024-03-16 17:37:09 +01:00
pavel Hamawand
a6846ad7a4 fix backbutton 2024-03-16 17:28:45 +01:00
pavel Hamawand
dc84bc997e link to unsigned reports 2024-03-16 17:25:43 +01:00
pavel Hamawand
554cf9b12e remove backbutton 2024-03-16 17:20:14 +01:00
Peter KW
9ff3e9314c Small change to header; uses useLocation() to get correct name 2024-03-16 02:27:33 +01:00
Peter KW
edf503776a Changed design a little so that it uses the projectlist component, added some fake projects 2024-03-16 02:23:52 +01:00
Peter KW
4a864e1ab5 Finished design and added fake users for testing 2024-03-16 02:20:36 +01:00
Peter KW
8fdd6c0b1f Finished basic view for this page 2024-03-16 02:18:28 +01:00
Peter KW
466c25a7c2 A component for listing an array of users where every user gets a link, made for AdminManageUsers.tsx 2024-03-16 02:16:06 +01:00
Peter KW
f963ca6ae5 A component for listing an array of projects where every project gets a link, made for YourProjectsPage.tsx 2024-03-16 02:15:39 +01:00
Peter KW
f0fc465d1a Merge remote-tracking branch 'origin/frontend' into gruppPP 2024-03-15 16:54:26 +01:00
pavel Hamawand
2da40e1f54 change back button UserViewTimeReportsPage 2024-03-15 15:32:06 +01:00
pavel Hamawand
8430d88a07 change back button UserProjectPage 2024-03-15 15:28:35 +01:00
pavel Hamawand
a26499bde9 change backbutton UserEditTimeReport and UserNewTimeReport 2024-03-15 15:22:55 +01:00
Peter KW
6789cc97ce Added back button to page 2024-03-15 14:57:49 +01:00
Mattias
4920966388 Additional register-layout changes 2024-03-15 14:52:05 +01:00
Peter KW
44aea9b765 Made a back button component since we will have one on almost every page 2024-03-15 14:51:46 +01:00
pavel Hamawand
69b0318eb0 remove edit button and fix back button 2024-03-15 14:48:40 +01:00
Davenludd
a388109a8a Add type attribute to button elements in Admin Pages 2024-03-15 14:34:08 +01:00
Davenludd
a16d1d8011 Add type="button" to buttons in PMChangeRole, PMOtherUsersTR, PMProjectMembers, PMProjectPage, PMTotalTimeActivity, PMTotalTimeRole, PMUnsignedReports, and PMViewUnsignedReport components 2024-03-15 14:32:17 +01:00
Davenludd
855dccdfa4 Add type="button" to buttons 2024-03-15 14:30:53 +01:00
Davenludd
a49cfc9f01 Update button styles and add type prop 2024-03-15 14:30:45 +01:00
Mattias
6a25eca01c Changed layout for register-component 2024-03-15 14:16:11 +01:00
pavel Hamawand
dc902855f4 add edit button to viewTimeReport 2024-03-15 04:42:38 +01:00
pavel Hamawand
901bcd39c5 link to viewTimeReport 2024-03-15 04:42:38 +01:00
Peter KW
cd1dbb494c Small fix to links in admin-menu page 2024-03-15 02:29:25 +01:00
Peter KW
2ad7146588 Added some functionality to login page. Checks username + password and compares with "fake" users to determine which page to get 2024-03-15 02:28:28 +01:00
pavel Hamawand
ef28e1743e links to all projects 2024-03-15 02:03:22 +01:00
pavel Hamawand
92cf36d178 increased responsiveness - outer div 2024-03-15 01:42:43 +01:00
Imbus
df7ca1ab90 Merge branch 'frontend' into dev 2024-03-14 18:40:07 +01:00
Imbus
baade40d77 Merge branch 'gruppDM' into frontend 2024-03-14 18:39:51 +01:00
Imbus
7f6a9f6fd1 Merge frontend with dev 2024-03-14 18:38:25 +01:00
Imbus
3bf0c34a5f Merge branch 'gruppDM' into frontend 2024-03-14 18:36:27 +01:00
Imbus
1c0884bb5d Formatting and edits to make linter happy 2024-03-14 18:32:56 +01:00
Imbus
6cd940866e Merge frontend into dev 2024-03-14 18:31:00 +01:00
Davenludd
8690e381c8 Add links to navigate between pages projectPage & NewTimeReport 2024-03-14 15:49:13 +01:00
Davenludd
41e1c32ee0 Added time report component to various pages 2024-03-14 15:17:38 +01:00
Mattias
46c4a5dc92 Added more paths in main 2024-03-14 14:59:57 +01:00
Davenludd
03e2be0a46 Add AdminProjectChangeUserRole page & buttons 2024-03-14 14:53:51 +01:00
Davenludd
39edc419df Add AdminProjectViewMemberInfo page & buttons 2024-03-14 14:53:51 +01:00
Davenludd
027bce6dfc Add AdminProjectAddMember page & buttons 2024-03-14 14:53:51 +01:00
Davenludd
da730a2d18 Add AdminProjectManageMembers page & buttons 2024-03-14 14:53:51 +01:00
Davenludd
dd370d86e3 Add AdminProjectStatistics page & buttons 2024-03-14 14:53:51 +01:00
Davenludd
ca7e4c6189 Add AdminProjectPage page & buttons 2024-03-14 14:53:51 +01:00
Mattias
19e3567c78 More paths in main 2024-03-14 14:42:26 +01:00
Davenludd
6a68ad1c3f Add AdminAddProject page & buttons 2024-03-14 14:39:34 +01:00
Davenludd
3047db28f6 Add AdminManageProjects page & buttons 2024-03-14 14:39:34 +01:00
Davenludd
2d5de569ae Add AdminChangeUsername page & buttons 2024-03-14 14:39:34 +01:00
Davenludd
5a6fe1c472 Add AdminViewUserInfo page & buttons 2024-03-14 14:39:34 +01:00
Mattias
1b3660eb83 Added more paths in main 2024-03-14 14:33:43 +01:00
Davenludd
69df212fde Add AdminAddUser page & buttons 2024-03-14 14:30:56 +01:00
Davenludd
434879c26c Add AdminManageUsers page & buttons 2024-03-14 14:30:56 +01:00
Mattias
c5d5c389dd Added new paths in main 2024-03-14 14:29:10 +01:00
Davenludd
03f350f303 Made a new component for time reporting 2024-03-14 13:21:19 +01:00
Hollgy
327f90e448 Co-authored-by: Imbus <imbus64@users.noreply.github.com> 2024-03-14 11:24:31 +01:00
Hollgy
1f2bff62f9 Refactor, lint removal 2024-03-14 11:23:57 +01:00
Davenludd
7e319e34c9 Change logo 2024-03-14 11:08:07 +01:00
Mattias
60774f6324 Added more paths in main 2024-03-14 11:00:55 +01:00
Mattias
db647c6e7c Added buttons 2024-03-14 11:00:55 +01:00
Mattias
45749afe69 Added buttons 2024-03-14 11:00:55 +01:00
Davenludd
2cce3f3ab4 Add time/activity and time/role buttons to PMProjectMembers page 2024-03-14 10:59:51 +01:00
Davenludd
a67e43e537 Add back button to PMUnsignedReports component 2024-03-14 10:57:42 +01:00
Davenludd
ce5d6d2837 Add "Back" button to PMTotalTimeRole component 2024-03-14 10:56:01 +01:00
Davenludd
f9260976df Add "Back" button to PMTotalTimeActivity component 2024-03-14 10:55:30 +01:00
Davenludd
5c0cf5fc33 Add buttons to PMViewUnsignedReport component 2024-03-14 10:54:37 +01:00
Davenludd
8a2724de5e Add save and back buttons to PMChangeRole component 2024-03-14 10:52:48 +01:00
Davenludd
7aa83b1d99 Add back button to PMOtherUsersTR component 2024-03-14 10:50:52 +01:00
Davenludd
2c9d3baafa Added button to PMProjectMembers 2024-03-14 10:49:15 +01:00
Davenludd
a5f15e5c06 Create all files for ProjectManagerPages 2024-03-14 10:41:10 +01:00
Mattias
c1aa0769bb Added path in main 2024-03-14 10:33:00 +01:00
Mattias
6be1060cff Added buttons to UserEditTimeReportPage 2024-03-14 10:32:39 +01:00
Imbus
6afe6345cf renewToken API interface 2024-03-13 20:56:47 +01:00
Hollgy
e1bf25148e Co-authored-by: Imbus <imbus64@users.noreply.github.com> 2024-03-13 17:56:31 +01:00