Commit Graph
100 Commits
Author SHA1 Message Date
juhanikatandGitHub dd4d1fed2f remove cache flags from lint commands (#1236) 2026-08-17 12:25:22 +03:00
juhanikatandGitHub 7143da32c1 change import statement to import type (#1227) 2026-08-04 15:45:25 +03:00
juhanikatandGitHub e9fa3e3b31 Improve loading times by splitting pages.tsx into smaller files and improving the locality map (#1224)
* split pages.tsx into multiple files, and update ui e2e test since occurrence rename

* reduce size of countryBoundingBoxes and countryPolygons

* update files again, and update countryExport script

* update files again, add more simplified geojson files, and update countryExport with Copilot
2026-08-04 13:51:13 +03:00
fa6dc11fee Update backend services, user right tests and user right documentation (#1217)
* update some backend tests slightly, and update user right docs

* improve locality updating tests

* refactor species merge tests, and add more user rights tests to merging

* fix locality user right issue with users being able to bypass project membership requirements by adding new projects when updating a project, and add tests

* fix small, copilot suggested issues

* change bigint value back to number, and fix hanging test

* add error content checks and  get request test for regions

* add error content checks and reorder tests in time bound/time unit

* add person get tests, update delete tests, and update user right docs

* update museum tests

* update testing docs

* add tests for all user groups in project delete tests

* add more user right tests to project/ and projects/

* Fix pid test

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* Rename project get test describe block

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-07-20 15:01:14 +03:00
juhanikatandGitHub 4dff86367b Fix navigation inside tabs with a tableview replacing all query param… (#1218)
* fix navigation inside tabs with a tableview replacing all query params in url

* fix copilot suggested issues relating to encoding urls
2026-07-12 13:44:50 +03:00
juhanikatandGitHub 9b98a91ee4 fix menuitems not showing in table export menus, and give them keys (#1214) 2026-06-30 13:30:15 +03:00
juhanikatandGitHub 8f97de1019 Remove species test from root directory, and update the corresponding… (#1180)
* Remove species test from root directory, and update the corresponding test in api-tests

* fix permission test

* update species tests
2026-06-29 13:56:06 +03:00
juhanikatandGitHub 17eb6dda0a Change renderExtraExportMenuItems to an array of ReactNodes (#1205)
* Change renderExtraExportMenuItems from a ReactNode to an array of ReactNodes

* update typing and extramenuitem rendering

* remove useless import
2026-06-29 12:53:00 +03:00
f2aa36c13f Fix tables showing incorrect amount of pages, and some other table issues (#1198)
* fix pagination showing incorrect page amount when filtera are applied

* fix issue with occurences table resetting to first page, and make page numbers accurate in all tables

* fix error in occurences table menu bar

* remove pagination from TableView useEffect dependencies to break rerender loop

* update server side pagination useEffect with CoPilot

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

* remove useless else-clause from useEffect

---------

Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
2026-06-29 12:16:04 +03:00
juhanikat e100e41fd3 update gitignore 2026-06-09 13:36:28 +03:00
juhanikat 98801a6730 Revert "remove phpmyadmin service from docker compose files, since they cause issues"
This reverts commit 8b8f985642540d783b31b20ea747e7e7a93d3b9e.
2026-06-09 13:36:28 +03:00
juhanikat 9bb51872fc Remove vscode settings from repo 2026-06-09 13:36:28 +03:00
juhanikat 5f92b6008f remove phpmyadmin service from docker compose files, since they cause issues 2026-06-09 13:36:28 +03:00
juhanikat 72b42fff2e fix small copy paste issue 2025-10-14 12:39:09 +03:00
juhanikat b02940d11c Update taxonomy docs 2025-10-14 12:38:33 +03:00
juhanikat 5bda3f3e67 Remove unneeded enablePagination check from editableTable 2025-10-14 12:34:35 +03:00
juhanikat 9fa32332fe change museum table name to "Museums" 2025-09-30 11:24:09 +03:00
juhanikat 3b9347afbe Make some tables unclickable to make them less annoying to use 2025-09-30 11:11:28 +03:00
juhanikat bdab6ebc4c removed consolelogs 2025-09-30 10:53:12 +03:00
juhanikat 3db869b3b6 add comment 2025-09-27 15:50:52 +03:00
juhanikat aa17be9703 Change min and max age values to symbols in
Time Unit - Localities tab
2025-09-27 15:45:19 +03:00
juhanikat 914585dd11 check that a synonym does not already exist as a species 2025-09-27 15:28:16 +03:00
juhanikat e63573f1d1 contact button is shown again 2025-09-27 14:05:40 +03:00
juhanikat 949582e6ed add type for AnyReference 2025-09-17 11:46:39 +03:00
juhanikat 6dde6893a6 fix bug with update tab key props, and update references now show details properly, and the view link works, also change typing a lot 2025-09-17 11:46:39 +03:00
juhanikat 4d9e73b810 update more filenames, and rename cross_search file to locality-species 2025-09-17 11:45:58 +03:00
juhanikat 4a20fafcb0 add delimiter spesification in cross search export options 2025-09-17 10:56:31 +03:00
juhanikat 3cf9902af8 update link in cross search export docs 2025-09-17 10:56:31 +03:00
juhanikat d1965c642b change export file name to include name of table and a timestamp, and add title props to table views to make this work 2025-09-17 10:56:31 +03:00
juhanikat 4f7499e7d9 update taxonomic status validator error message 2025-09-17 10:55:08 +03:00
juhanikat 2a74d9b60e update api test values for species, and change Locality -> SpeciesTab to set taxonomic_status to empty string instead of null when copying existing species 2025-09-08 11:43:34 +03:00
juhanikat 8629228e4a change species validator to complain about spaces in species name 2025-09-08 10:57:46 +03:00
juhanikat d3880d7019 species with null taxonomic_status are now changed to use empty string instead, also change emptySpecies taxonomic_status from null to empty string 2025-09-08 10:57:46 +03:00
juhanikat 289c8f2d34 change synonymTab button text and add validator for taxonomic_status, refactor taxonomicStatusOptions 2025-09-08 10:57:46 +03:00
juhanikat 33f54dcebb add validation and other checks for species synonym adding 2025-09-08 10:57:46 +03:00
juhanikat 6f65cd2c3f add com_taxa_synonym as an allowed table for species writeHandler 2025-09-08 10:57:46 +03:00
juhanikat 48ec4b5f43 update documentation titles, and update reference types doc 2025-09-08 10:57:46 +03:00
juhanikat b50f0028d7 add class_name to species created with the add new species form 2025-09-08 10:57:46 +03:00
juhanikat 575c4f3e68 add subfamily field to add new species form in locality -> species tab 2025-09-08 10:57:46 +03:00
juhanikat 976902f933 add more locality -> species tests 2025-09-08 10:57:46 +03:00
juhanikat 9af3e1dd91 update every test with the new reference adding command, update copy taxonomy button id, and add more locality -> species tests 2025-09-08 10:57:46 +03:00
juhanikat 805a33473b update existing locality tests 2025-09-08 10:57:46 +03:00
juhanikat 32e94495a9 add command for adding reference and saving an entry, and add test for locality -> species tab 2025-09-08 10:57:46 +03:00
juhanikat 390c69dd93 change taxonomic_status from empty string to null when clicking copy button 2025-09-08 10:57:46 +03:00
juhanikat 47268e879d reset author, comment and taxon status when copying existing species, and add default value for unique identifier 2025-09-08 10:57:46 +03:00
juhanikat 8c8a285ab7 add more skipped tests 2025-09-08 10:57:46 +03:00
juhanikat 6f9800f9be fixed bug with setting values through species forms 2025-09-08 10:57:46 +03:00
juhanikat 6c2c951a5c rename taxonomyFunctions to taxonomyUtilities and add copy taxonomy button to the "add new species" form 2025-09-08 10:57:46 +03:00
juhanikat 7e6c62aff0 refactor taxonStatusOptions, add comment and author fields to editingForm inside locality -> species tab, and update Species type 2025-09-08 10:57:46 +03:00
juhanikat 4b07fe0bcf refactor add new species button's editAction 2025-09-08 10:57:46 +03:00
juhanikat 2175a177ab invalidate specieslist in locality editing redux to fix bug with locality -> species tab 2025-09-08 10:57:46 +03:00
juhanikat df85100d4a fix test and add before-section to locality tests 2025-09-08 10:57:46 +03:00
juhanikat 7e77f4dd15 add skeletons for future tests 2025-09-08 10:57:46 +03:00
juhanikat 6a0b1a288f validate species immediately when adding it in locality -> species tab, and refactor null value fix 2025-09-08 10:57:46 +03:00
juhanikat dcca0aefcd add some tests for locality -> species tab and fix issue with null subclass, suborder and subfamily when selecting species 2025-09-08 10:57:46 +03:00
juhanikat 8cc818ea1d add taxonomy checks for locality -> species tab 2025-09-08 10:57:46 +03:00
juhanikat 8153dcaaf0 filterDuplicateLocalitySpecies no longer filters out species that do not have a species_id 2025-09-08 10:57:46 +03:00
juhanikat 50ac8f55d2 add validation for species added inside locality edit view 2025-09-08 10:57:46 +03:00
juhanikat aca1fbd046 add info message to Museum -> Localities tab if there are no added localities 2025-08-28 15:03:08 +03:00
juhanikat ed864e1c6c add validation rules for museum code and change its textfield to use trim 2025-08-28 14:57:11 +03:00
juhanikat d302677ca4 add warning for users when creating a new museum 2025-08-25 17:03:51 +03:00
juhanikat 9b3b3d1936 remove staging view from museums 2025-08-25 13:01:13 +03:00
juhanikat 00d61ca7a6 remove used_moprh, used_now and used_gene from museum details and update Museum type and tests 2025-08-09 13:36:54 +03:00
juhanikat 1127d09c6f add links to museums on Locality -> Museum tab 2025-08-09 13:34:04 +03:00
juhanikat a94c9400b8 fix "return to table" button when creating a new entry and when navigating to a detail view by url 2025-08-09 13:19:52 +03:00
juhanikat 8e2743b12f fix notify() in MuseumDetails 2025-08-09 11:50:19 +03:00
juhanikat 6972797ae4 add same tests for editing existing time unit 2025-08-07 13:48:19 +03:00
juhanikat 73e3ad70b9 add tests for time bound creation inside time unit view 2025-08-07 13:31:54 +03:00
juhanikatandGitHub fbea765d3e Merge branch 'main' into improve-museum-tab 2025-08-07 12:16:33 +03:00
juhanikat de2cc50c11 fix issue with new useNotify() hook and run now_view.sql in anon database to show statistics there too 2025-08-07 12:14:13 +03:00
juhanikat 41a6a4ba83 change EditingForm to allow fields with numbers only 2025-08-03 13:42:29 +03:00
juhanikat 12cfb54426 new time bounds can now be created in time unit edit view 2025-08-03 13:23:43 +03:00
juhanikat 68c9070792 fix lint issue 2025-08-01 13:06:20 +03:00
juhanikat ae9b98c4a5 change tableUrl to an array 2025-08-01 12:57:20 +03:00
juhanikat fc7ae03849 add confirmation popup before leaving a page with potential unsaved changes 2025-08-01 11:46:40 +03:00
juhanikat 24cd7856c4 changed emptyMuseum values to make sure used_morph, used_now and used_gene always have a value 2025-07-28 21:44:44 +03:00
juhanikat 2cee390a1a fix lint issue 2025-07-28 21:38:46 +03:00
juhanikat e3662c9b1b add update tests and remove comment from MuseumTable 2025-07-28 21:35:59 +03:00
juhanikat 995b50f2fb add create tests for museum 2025-07-28 20:54:22 +03:00
juhanikat 6946d146fe add redux tag to getAllMuseums 2025-07-28 20:15:12 +03:00
juhanikat e3a48ed0d5 add helper text to Localities tab when creating a new museum 2025-07-28 20:13:06 +03:00
juhanikat 33dc6d636c changed country to dropdown 2025-07-28 19:58:29 +03:00
juhanikat 436475b461 creating new museums works now 2025-07-28 19:54:31 +03:00
juhanikat 296a326c15 add clickableRows boolean to TableView to disable row clicking when needed 2025-07-14 16:47:08 +03:00
juhanikat 45bf50a92c fix lint issues 2025-07-14 16:35:54 +03:00
juhanikat e856d35625 update validator 2025-07-14 16:29:25 +03:00
juhanikat 3790fa3bec add put route for museums, and improve fixRadioSelection function to handle "null" strings 2025-07-14 16:23:07 +03:00
juhanikat f0fc6992f2 fix lint issue 2025-07-14 15:32:23 +03:00
juhanikat 4566964971 fix "return to table" button for tables inside a detailview 2025-07-14 15:27:32 +03:00
juhanikat 9e3a128562 rows inside a SImpleTable can now be clicked to navigate to those entries 2025-07-14 15:04:50 +03:00
juhanikat 3346d6b015 more data-cy renaming 2025-07-14 14:41:24 +03:00
juhanikat 552cd9b91c updated corss-search export error handling 2025-07-14 14:39:59 +03:00
juhanikat 7e5a55949c updated data-cy names in tests 2025-07-14 14:26:16 +03:00
juhanikat 087c702595 fix lint issue 2025-07-14 12:47:09 +03:00
juhanikat d7ec0f6bcc improved cross-search export download message 2025-07-14 12:45:21 +03:00
juhanikat bb859d8b13 add comment to notification.ts 2025-07-14 12:33:54 +03:00
juhanikat a327a76a8a renamed variable 2025-07-14 12:31:48 +03:00
juhanikat 1c6cc0cc8a fix useNotify() calls, and chnaged some typings 2025-07-14 12:30:13 +03:00
juhanikat d71fa27ced changed frontend to download export file in chunks 2025-07-03 15:54:19 +03:00
juhanikat c3682e44c8 removed full_count row from cross-search export file 2025-07-03 14:37:27 +03:00