Commit Graph

72 Commits

Author SHA1 Message Date
Elias Schriefer
75f8f886c0 Merge branch '22-integrate-api-and-frontend' into 7-add-page-to-view-dataset-api 2024-07-06 14:49:52 +02:00
J-Klinke
8b5ac69e3c changed key name
added cancelbtn eventlistener
2024-07-06 14:44:10 +02:00
Elias Schriefer
467951d0ce Use more native html elements 2024-07-06 14:35:30 +02:00
Elias Schriefer
e0bebe87e3 Add details not found page 2024-07-06 14:35:00 +02:00
J-Klinke
4e19a24833 local authorship is now stored 2024-07-06 14:26:57 +02:00
J-Klinke
bd854ff016 Merge branch '7-add-page-to-view-dataset-api' into 43-store-entry-authorship
got code from 7 in order to further implement 43
2024-07-06 14:04:31 +02:00
J-Klinke
464cf104f9 datasets now redirect to their details pages.
also implemented 'button' look and feel for the datasets
2024-07-06 13:31:30 +02:00
Elias Schriefer
6380355227 Add basic support for viewing datasets 2024-07-06 10:00:33 +02:00
Elias Schriefer
922dfdd26d Merge branch '22-integrate-api-and-frontend' into 7-add-page-to-view-dataset-api 2024-07-05 17:18:09 +02:00
Elias Schriefer
91a365fdd3 Merge branch '22-integrate-api-and-frontend' into 36-refactor-dataset-class 2024-07-05 17:04:58 +02:00
Elias Schriefer
66ac0bfc29 Refactor Dataset class 2024-07-05 16:57:06 +02:00
c55c18c746 Merge branch '11-add-api-for-getting-home-page-data' into 22-integrate-api-and-frontend 2024-07-05 12:38:56 +02:00
68595e22a7 refactor: move static sites into static, Remove unused PageController and update main.js for page navigation 2024-07-05 12:34:26 +02:00
J-Klinke
15f743d8ab fixed bugs:
- suppressed display of search results if nothing was found but there were previous searches
- improved display timing of search results/initial pages, which led to false displays
2024-07-05 12:30:40 +02:00
J-Klinke
93a52097de - main.js:
fixed bug in the filterButton EventListener (removed if-clause)
added new EventListener for fetching categories
updated fetchCategories()
2024-07-05 12:04:32 +02:00
J-Klinke
bbb8c9259f accepted review comments 2024-07-04 18:28:44 +02:00
Elias Schriefer
20c4524bba Add loading skeleton 2024-07-04 12:40:59 +02:00
J-Klinke
62b0d5c028 local storage now properly implemented, (sessionstorage) 2024-07-03 12:08:59 +02:00
J-Klinke
02d2f90e85 fixed bug 2024-07-03 11:52:29 +02:00
J-Klinke
6d34b8c388 upvoting suppression by local storage now works, there is a bug however with the entries loaded o startup 2024-07-03 11:27:49 +02:00
Elias Schriefer
8810bfa53f Finish details page design 2024-07-03 00:20:36 +02:00
J-Klinke
20eda5931a started implementing local storage 2024-07-02 17:41:48 +02:00
J-Klinke
1174f03d42 added paging functionality 2024-07-01 15:50:57 +02:00
J-Klinke
662beff527 adopted revision comments 2024-07-01 14:38:31 +02:00
J-Klinke
c683a63e74 finished initial page display 2024-07-01 13:59:37 +02:00
J-Klinke
3aa87d531b started initial page display 2024-07-01 12:22:56 +02:00
J-Klinke
e5a4b1186e finished centralization of query creation.
DatasetController.java: changed mapping for simplification
index.html: Changed option text also for simplification
main.js: replaced dedicated query methods for search, sort & filter with a central one, also refactored the url parameter generation process.

Also removed resolved TODOs and added comments
2024-07-01 12:05:21 +02:00
J-Klinke
32ba4995be Merge remote-tracking branch 'origin/21-add-functionality-for-listing-query-results-in-frontend' into 21-add-functionality-for-listing-query-results-in-frontend 2024-07-01 11:12:01 +02:00
J-Klinke
fcd24c2abc proceeded implementing query improvements:
query methods are now uniform and with one central function
2024-07-01 11:11:29 +02:00
J-Klinke
907487c22c started implementing query improvements 2024-07-01 10:51:09 +02:00
J-Klinke
1dfd2f765a formatted the categories 2024-07-01 10:42:25 +02:00
J-Klinke
d9707a25df implemented fetching categories from backend 2024-07-01 10:21:43 +02:00
J-Klinke
4e645903e3 main page states (search & initial) are now working 2024-06-30 11:55:20 +02:00
J-Klinke
b7ecb4500c upvoting is now fully functional 2024-06-29 13:05:26 +02:00
72a8f919c8 Merge branch '15-make-content-adding-page-functional-js' into 22-integrate-api-and-frontend 2024-06-28 16:34:40 +02:00
43646493e1 fix: Up and downvote puttons 2024-06-28 16:29:49 +02:00
J-Klinke
ebb90632eb refined main.js/vote() -> ready for receiving backend response 2024-06-28 14:24:19 +02:00
J-Klinke
e9e825eb42 added sorting by date
refined main.js/vote()
2024-06-25 13:30:38 +02:00
J-Klinke
7e3f191910 upvote/down vote work in frontend, but api seems to work incorrectly 2024-06-25 12:49:28 +02:00
e400b7e9ce feat: Update URL construction for add page navigation
The code changes modify the `PageController` class to update the URL construction for navigating to the add page. The `getAddPage()` method now maps to the `/add` endpoint instead of the previous `add` endpoint. This change ensures that the URL matches the correct route for the add page.

Recent commits:
- Integrate add content page into backend
- Add base URL to URL construction
- Rework URL construction

Recent repository commits:
- Integrate add content page into backend
- Merge branch 'main' into 15-make-content-adding-page-functional-js
- Merge branch '11-add-api-for-getting-home-page-data' into 'main'
- Merge branch '22-integrate-api-and-frontend' into '11-add-api-for-getting-home-page-data'
- Merge branch '11-add-api-for-getting-home-page-data' into '22-integrate-api-and-frontend'
- feature: add ability to vote on datasets
- Merge remote-tracking branch 'origin/implement-js' into 22-integrate-api-and-frontend
- Add base URL to URL construction
- Merge remote-tracking branch 'origin/implement-js' into 22-integrate-api-and-frontend
- Rework URL construction
2024-06-25 11:33:36 +02:00
Elias Schriefer
a340d59ca2 Fix voting event listeners in search 2024-06-25 09:59:39 +02:00
J-Klinke
e47edf3cf2 improved searchBar functionality:
on page reload, it now displays the query fitting to the entered string
2024-06-25 09:44:01 +02:00
J-Klinke
eb2d6189a8 some code formatting,
searchbar is now empty on reload
2024-06-25 09:14:12 +02:00
Elias Schriefer
4c8437be92 Integrate add content page into backend
The page can be found under `/add`.
2024-06-24 17:40:07 +02:00
Elias Schriefer
1864e49264 Merge branch 'main' into 15-make-content-adding-page-functional-js 2024-06-24 17:07:38 +02:00
J-Klinke
d96da1b1e7 search nw displays the search results.
other section are being hidden in the case of a search and vice versa.
a 'nothing found' div was implemented
2024-06-24 17:03:47 +02:00
Elias Schriefer
8dcd311b98 Add base URL to URL construction 2024-06-21 12:21:17 +02:00
Elias Schriefer
5168ccaf62 Rework URL construction 2024-06-21 12:17:16 +02:00
Elias Schriefer
5fda42856d Fix filter + search urls 2024-06-21 12:06:02 +02:00
Elias Schriefer
c19459ad01 Little fixes 2024-06-21 12:03:10 +02:00