Commit graph

628 commits

Author SHA1 Message Date
Peter KW
8250c92694 Fixed so that it uses new type 2024-03-20 18:36:10 +01:00
Peter KW
d1be752ac3 getAllUsersProject uses new type 2024-03-20 18:35:02 +01:00
Peter KW
cd452459c2 getAllUsersProject API, fetches all users in a project 2024-03-20 17:02:36 +01:00
Peter KW
056ca3660d GetUsersInProject component 2024-03-20 16:59:54 +01:00
pavel Hamawand
75e835895a minor fix 2024-03-20 15:48:45 +01:00
pavel Hamawand
d94f21ab67 minor fix 2024-03-20 15:47:34 +01:00
pavel Hamawand
ebb009bd20 BackButton 2024-03-20 15:33:56 +01:00
pavel Hamawand
32d9cc4684 backButton 2024-03-20 15:33:26 +01:00
pavel Hamawand
d3938f76e1 backButton 2024-03-20 15:32:40 +01:00
pavel Hamawand
196446be1f Backbutton 2024-03-20 15:31:18 +01:00
pavel Hamawand
0076a9f4bb backButton 2024-03-20 15:30:16 +01:00
Peter KW
33b269e0c9 Now uses GetProjects 2024-03-20 12:25:59 +01:00
Peter KW
cea2b6c03c GetProjects compo 2024-03-20 12:25:07 +01:00
Peter KW
ae96f67630 Merge branch 'dev' into gruppPP 2024-03-20 11:55:05 +01:00
Peter KW
6317c7674c Now uses projectListAdmin to show projects 2024-03-20 11:53:27 +01:00
Peter KW
e271794b57 List for showing all projects as admin 2024-03-20 11:51:50 +01:00
Peter KW
a5adec82e2 Modul for showing projectinfo *not finished* 2024-03-20 11:51:04 +01:00
borean
bb93cef1d3 New deleteproject handler, WIP 2024-03-20 11:43:47 +01:00
borean
c01dd21b0a uncommented 2024-03-20 11:23:24 +01:00
borean
dce91943b3 Added DeleteProject handler, untested 2024-03-20 11:22:33 +01:00
borean
cd74758b2f DeleteProject added in db.go, untested 2024-03-20 11:09:48 +01:00
Peter KW
6c433208ea Merge branch 'frontend' into gruppPP 2024-03-20 10:54:38 +01:00
borean
a468b896db WIP for funcs that need to be implemented 2024-03-20 10:41:16 +01:00
dDogge
b13a8b5432 Merge 2024-03-20 00:35:37 +01:00
Peter KW
4630fb336f Merge branch 'dev' into gruppPP 2024-03-20 00:32:15 +01:00
Peter KW
4e100229f5 Now uses GetAllUsers 2024-03-20 00:16:56 +01:00
Peter KW
b20817ec8a Small fix to props and imports 2024-03-20 00:16:30 +01:00
Peter KW
cc231dbfaa Component for getting all users 2024-03-20 00:14:23 +01:00
Peter KW
8300fb3a6f Added getAllUsers to API 2024-03-20 00:10:24 +01:00
Melker
b7b831d869 Lagt till om Admin=True/false 2024-03-19 23:54:54 +01:00
Samuel Högbom Aronson
cb44954477 -added auth for rolechange, endpoint and test 2024-03-19 23:08:14 +01:00
Imbus
88c53ae4b6 Golds automatic documentation generator 2024-03-19 20:21:38 +01:00
dDogge
ce4cf788ae Added handler and corresponding test for the IsProjectManager function 2024-03-19 19:30:01 +01:00
dDogge
5778d6e892 Added isProjectManager function to db.go and corresponding test to db_test.go 2024-03-19 19:14:55 +01:00
dDogge
2b41085865 Added GetWeeklyReportsUser function and handler, also corresponding tests to both GetWeeklyReportsUser and handler added 2024-03-19 19:04:45 +01:00
Peter KW
a72aea1382 Removed unused authority check 2024-03-19 17:12:38 +01:00
Peter KW
cd84a2bb21 Everyone except admin has authority = 2 2024-03-19 17:12:09 +01:00
Peter KW
8dfe9dac96 Removed unused path 2024-03-19 17:09:45 +01:00
Peter KW
4bcbf162f9 Merge branch 'frontend' into gruppPP 2024-03-19 17:00:04 +01:00
Imbus
9c4ce0e733 Merge branch 'dev' into frontend 2024-03-19 16:57:49 +01:00
Imbus
2f3730ca90 New typescript types from tygo 2024-03-19 16:50:16 +01:00
Mattias
5803c7b29b Refactor fetchWeeklyReport function, updated submit button text, week fetched by params 2024-03-19 11:41:50 +01:00
Davenludd
d0d0e311e5 Add project name to UserViewTimeReportsPage and add AllTimeReportsInProject component 2024-03-19 11:10:47 +01:00
Davenludd
03819aff44 Update link to time reports in UserProjectPage 2024-03-19 11:10:02 +01:00
Davenludd
7fd128e1f3 Add AllTimeReportsInProject component 2024-03-19 11:09:52 +01:00
Davenludd
09a7cbced1 Update routes in main.tsx 2024-03-19 11:09:35 +01:00
Davenludd
ee2fb6d543 Minor change UserProjectPage 2024-03-19 09:41:24 +01:00
Davenludd
a30a6a4988 Fix button UserNewTimeReportPage 2024-03-19 09:37:13 +01:00
Mattias
cda2b72d08 projectName is now fetched from params 2024-03-19 09:35:15 +01:00
Davenludd
4f53f9de94 Fix initial value of week state in NewWeeklyReport component for error message 2024-03-19 09:33:20 +01:00