Skip to content

Commit 45c8988

Browse files
Squashed commit of the following:
commit 0b7ae4e508e92e964bef68fdf21e8ceef9ef3b19 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Mar 7 13:59:03 2024 +0100 - partial fix for purple release for #1370 commit 3c9e696731f3037c8f86c0fea5c33a02043c8b7f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Mar 7 10:10:41 2024 +0100 - implemented #1376 - also fixed bug in download structures dialog where only first download got added to the dropdown menu commit 91bb8e041d38097ff60e5cde61b08b5eb043a86f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Mar 6 09:47:12 2024 +0100 - implemented #1361 - improvements for #1354 commit 4c2065f45090114e0590419e05d5d0a44b2c46fe Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Mar 5 13:24:11 2024 +0100 - cleanup for #1354 commit 8988043256fc8964d27704ea4cba49891a1f074f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Mar 5 13:21:32 2024 +0100 - updated message for #1354 commit 1747473089aa245bcfc5bd502d44fab5566f4502 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Mar 5 13:05:12 2024 +0100 - first implementation of #1354 commit 0cdb89616bea17316aa21aacc32fadfce3929594 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Mar 5 08:17:49 2024 +0100 - implemented #1357 commit 0e9169f0f0ff7622aa49618d5df49ab650290f9f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Mar 4 10:07:06 2024 +0100 - implemented changes requested in #1326 commit 5d3e7d1b0cbe52b4c9e3269b0db02704b5a0c5ec Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Mar 4 08:45:22 2024 +0100 - fixed problem with tags not visually updating on observations commit 13b675c2be988d80e1cb506d405224b404aa1774 Author: matej <matej.vavrek@m2ms.sk> Date: Mon Feb 26 21:36:12 2024 +0100 #1341 "pin" edit tag row outside of tag list commit 7caa3846493f60051cc63c0936c0d0b796b055e5 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Feb 20 08:52:28 2024 +0100 #1340 and #1341 commit b543e504f14bba71d1cd3817438d93cebd52549e Merge: 779e80ee 21050e6d Author: matej <matej.vavrek@m2ms.sk> Date: Fri Feb 16 10:48:07 2024 +0100 Merge branch 'stagingcandidate' of github.com:m2ms/fragalysis-frontend into stagingcandidate commit 21050e6d3748bee3735a3c4a95c846c91de120cd Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Feb 16 08:11:48 2024 +0100 Squashed commit of the following: commit 468491f23840faf5f8b0876fe61cceedab190d25 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Feb 15 12:29:35 2024 +0100 - fixed #1283 commit 779e80ee5523de7dff2d5529ac3cde200960c46e Author: matej <matej.vavrek@m2ms.sk> Date: Thu Feb 15 16:09:33 2024 +0100 #1341 prevent tags panel overflow commit 50ef8283190af6d186a3d45916c8dadf680e48e2 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Feb 8 10:31:03 2024 +0100 - implemented #1324 commit 580c70ce2707b4d39e6fa4e82b035a08c06749e8 Merge: 1b83a871 b93571a6 Author: boriskovar-m2ms <boris.kovar@m2ms.sk> Date: Tue Feb 6 13:16:18 2024 +0100 Merge branch 'staging' into stagingcandidate commit b93571a6bc839d064e95e0ae14223c89c6276dd9 Author: boriskovar-m2ms <boris.kovar@m2ms.sk> Date: Tue Feb 6 09:50:48 2024 +0100 Implements #1277 (#406) * - additional fixes from #1321 * Squashed commit of the following: commit c347cb37df938a29bb6df92b39cedb245a1adb2b Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Feb 6 09:25:50 2024 +0100 - implemented #1277 commit 137f64895b1c598d6ea82952cb8ed36be4dd8a7e Author: boriskovar-m2ms <boris.kovar@m2ms.sk> Date: Fri Feb 2 14:19:35 2024 +0100 - additional fixes from #1321 (#405) commit c3626b032d89bdde7641efc60483cfebe103b63e Merge: 57b30e1b ef27226e Author: Warren Thompson <waztom@gmail.com> Date: Thu Feb 1 13:28:37 2024 +0000 Merge pull request #404 from m2ms/stagingcandidate #1321 commit 57b30e1b0f0feac7467ef1d99b73e949a7cbf64d Author: boriskovar-m2ms <boris.kovar@m2ms.sk> Date: Thu Feb 1 09:50:31 2024 +0100 #1295, #1300, #1315 (#403) * Update build-main.yaml got rid of scheduled rebuild because it's messing up data * updated react16 to react 18.2, replaced hot-loaders modules by react-refresh, removed react-undo module * added proper values for Typography variant * renamed obsolete create theme function * #1063 added header and search * #1063 fixed body table, page count and search * #1063 fixed minor bugs and set clear filter * Squashed commit of the following: commit 10925d2c914673bfaa4e8b0205904e3e393d731d Author: RobertMatuska <robert.matuska@m2ms.sk> Date: Thu Sep 28 10:27:36 2023 +0200 #1114 edited text and style * #1161 setted search and filter for old target list * #1161 fixed discourse icon padding * #1161 fixed filtered list sort * #1161 fixed target access sort and filter * #1161 fixed change page * #1145 preserve state of molecule rendering, save also actions of representation changes to snapshot * do not wrap display controls buttons * #1167 resize target list colmuns * #1161 fixed sorting * #1161 fixed sorting * #1161 edit sort functionality for filter table * #1161 fixed search, filter, sort by target access * #1161 created init date column * #1161 # filtering and sorting init date * #1161 fixed clear and sort init date * #1161 fixed target sorting * Squashed commit of the following: commit d4895261f303ae61a359579c485adf702cdff64e Merge: 1c45038a 411921f8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 08:24:05 2023 +0200 Merge branch '#1173' of https://github.com/m2ms/fragalysis-frontend into #1173 commit 1c45038a42430f90f68430037027296021fe1974 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 11:03:49 2023 +0200 - implemented #1173 also with save/restore and undo/redo functionality commit 411921f8a4906c54dfcd31c8bc079f9bd3008baf Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 11:03:49 2023 +0200 - implemented #1173 also with save/restore and undo/redo functionality * merge * Squashed commit of the following: commit 7883c1584fc80b0be8dae624c18e86ddbe3c906b Merge: 5e2b937d 19b9f243 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 11:19:36 2023 +0200 Merge branch '#1172' of https://github.com/m2ms/fragalysis-frontend into #1172 commit 5e2b937da95963afab366fac18912b4c596ccd78 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 11:16:15 2023 +0200 - added compound_set to csv export - #1172 commit 19b9f243cc996f8d3e28f6fd8a44c167894b358a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 11:16:15 2023 +0200 - added compound_set to csv export - #1172 commit 75ac125b5cae9d669d337410db9a184d6d31a456 Merge: f50666ce 574c7b5e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 08:26:08 2023 +0200 Merge branch '#1172' of https://github.com/m2ms/fragalysis-frontend into #1172 commit f50666cef87e491309347fbcb8514286fcb72adc Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 13:45:34 2023 +0200 - implemented #1172 commit 574c7b5e65181e35865571ce7d9b6d01a40ce562 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 13:45:34 2023 +0200 - implemented #1172 * #1167 fixed issues * #1167 reworked resizer * #1161 fixed merge bugs * #1161 removed console * updated react16 to react 18.2, replaced hot-loaders modules by react-refresh, removed react-undo module * added proper values for Typography variant * renamed obsolete create theme function * changed deprecated justify= to justifyContent= * fixed some landing page errors, mostly missing key and using useState outside of useEffect in functional component * #1061 loading and toast functionality move from header context into LoadingContext and ToastContext, added loading indicator for tags and hits panes + hit/molecule control buttons * #1171 return representations when loading protein without quality to show it in display control * do not set logged in toast message if user is not logged in * fixed Tooltip error messages about its disabled child, fixed invalid variant type and removed xs from Grid container (it is Grid item property) * fixed null value for open property * fixed "ButtonGroup component doesn't accept a Fragment as a child. Consider providing an array instead" * fixed "<div> cannot appear as a descendant of <p>" error by adding "component={'div'}" property to complex Typography component * removed invalid way of setting color for tag, it does not work - only throws error and with proper setting it is same as background color.. * fixed missing key error * fixed invalid references erros * fixed unknown properties error and missing key * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - changed configuration * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - fixed search bar placeholder for hits * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - #1139 - fixed snapshot creation and restoration * #1167 target and project list resizer * #1167 fixed project list width * #1161 changed width * - #1183 - dynamic handling of tag categories * - fixed #1186 * - job file transfer backend * - checkpoint * - new CI/CD * Update build-main.yaml got rid of scheduled rebuild because it's messing up data * updated react16 to react 18.2, replaced hot-loaders modules by react-refresh, removed react-undo module * added proper values for Typography variant * renamed obsolete create theme function * changed deprecated justify= to justifyContent= * fixed some landing page errors, mostly missing key and using useState outside of useEffect in functional component * rebase * #1171 return representations when loading protein without quality to show it in display control * do not set logged in toast message if user is not logged in * fixed Tooltip error messages about its disabled child, fixed invalid variant type and removed xs from Grid container (it is Grid item property) * fixed null value for open property * fixed "ButtonGroup component doesn't accept a Fragment as a child. Consider providing an array instead" * fixed "<div> cannot appear as a descendant of <p>" error by adding "component={'div'}" property to complex Typography component * removed invalid way of setting color for tag, it does not work - only throws error and with proper setting it is same as background color.. * fixed missing key error * fixed invalid references erros * fixed unknown properties error and missing key * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - changed configuration * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - fixed search bar placeholder for hits * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - #1139 - fixed snapshot creation and restoration * - #1183 - dynamic handling of tag categories * - job file transfer backend * - checkpoint * - new CI/CD * - fixed build errors * Squashed commit of the following: commit d5c97097a073d1298221f98b01e0431cbf520a47 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 07:36:56 2023 +0100 - fixes blank page * #1035 added front-end pert of status lights for services * #1035 added API endpoint and changed refresh rate to 30 seconds for now * #1035 do not end up on failed response * Squashed commit of the following: commit e1dd8bd5f2c9e61c829cefb80b63f0e3f23604c9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 21 09:16:46 2023 +0100 - #1211 fixed and also fixed other problems which were hiding problems with snapshot restoration * Squashed commit of the following: commit e79b49f5fce9027910e24f30efdfc0aafa94be34 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Dec 7 09:44:55 2023 +0100 - fixed RHS for #1239 * #1217 save all actions to action list for snapshot not only the first ones, fixed of possible crash, adjusted restoring representations from snapshot * - updated docker-compose * Squashed commit of the following: commit 50d574da89fc90425cfcd6eb18ab30348f371b73 Merge: 1fdebffa 3b4e7a7a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 13 09:06:19 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 1fdebffa19b741e99b1e14ec2dd2adffa4261837 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 13 08:14:58 2023 +0100 - RC of #1190 commit dabee45c26683c5e1b84d60b145850e199fd2ab0 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 5 09:20:02 2023 +0100 - checkpoint commit 4e9a6744ea75081129126dd1b9aad0d8410ae062 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit c90fc473a059540aea9070715b6527de8a823899 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 515cb8bb4d6ee9fea192c9fa0768c80c03a524e3 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit ab0a2977c9f923183afa413fe5f9ae8c149b4b4e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 216762b7094da2f07bb74ecd3ce0bd4526f47e57 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 6f628a7e7c637b9d5d80c27bca4470f7c7ffb527 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 823bf2c9c55d6e5f148c75fd55e888bcbbd5c105 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit a7aa657062c994b0ece88ea0fbf2a0d137bc3850 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 101751bab2d505f8f5dfaa3f4bac88529084d7da Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 5a6935a6f7d8ecaca16ca5072880ebb12f8656d0 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 1d01387260863790647f7324d4bd0c34ac4dcd03 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit b3c781364154acf103c33bf8d266353466cdc5d8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit f48dc9d21c5bf02df112d149adf8f3384d96b702 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 813b553e8db154a9103e45f349ccf08607ba6cd7 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit b49f773779790bbd231e418860eb2089b87b7919 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 98f566bcbb9d7493238fcbefc6cf87dcec1e7497 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit a01f097d1b2fc5290cb26d27edd45635ec2ae703 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit a6d8930b249c7cc9175b4e6cd2e386ed7803f7e6 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 392938b34b29aacb1729d1ddc5d5d438a59dd773 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 69ab4c2701185f68a6d85cebf8d03367c60ef2a4 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit e6b700b602b708801ac38385bc79e3ef785d8af8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit a7e6aad0a8f8ce7b80ba84c3d017581c659522c7 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 4fc93c0662050f834ccf3482ed23358ab9b9f8be Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 58573f6fc68a4f405c93750ff40b9b5ec2cd0cd9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit ecc3d6c1dd4a6c3437d29d6f00ecf6ce0897319d Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit 3b4e7a7ad2a663660f675b10dd91f09a81ca720e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 13 08:14:58 2023 +0100 - RC of #1190 commit 1debb802212c6b7c6fa954bba1b04c5e926ef0ea Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 5 09:20:02 2023 +0100 - checkpoint commit 4f714be762940d796add2431a25dc9d11f795cd5 Merge: 730d9e5b bcc1568f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Nov 22 07:41:51 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 # Conflicts: # js/reducers/api/apiReducers.js # js/reducers/api/constants.js commit 730d9e5bd404a8c121403528626c51595dee3927 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit 76ea646ba8b940037e85082bdddff8967971a602 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 67439de7a640ff33f1dba88ebb833894e4a53b06 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit a38e0a39093ecf59d39fe50f0a49f9fa7a9237d3 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 64b67c539245bb30fa67eeff011b9868b4b0d2fa Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 35b2777be98d8c3ad4af2ed5ab5ad90d349bc971 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 810451479e17147b03594ba4bc27bb6964d1c159 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 5432a999f9bc440b403abbdacaf45b3a328d9dfa Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit f5ea66fd36a1ad860b4530d89382c569303b2efa Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit d3fb020d6f99bd9177f0442198a3ffb17cb90516 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 84d48899979a09bd7c649028dd6df0eaebcd9b6a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 29796304e70cc2ae25c6a96271d0dd12f692de48 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 7241df5cbeaab971c7f56eaa54a920a1b8ed8fc8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 195e30e1038a38ebe4ef4ffdfd3b8d93c12e3bda Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit bcc1568fbbb3b3143a668784f7aac4524f4276a3 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit 60136ed9ddd47ca6c523375de5ba4d1f02fe6ab3 Merge: 85c06a92 a18f80f1 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 08:01:49 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 85c06a920ae62b6c379f0f9975e94cf384f8f47a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 6dd0268d367c93d8104569719a3d6c841e19bd36 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 0854241b93a563bf8cabd24278c4248c15eec645 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 1686e029dca683334351b4ea02c1d40851a321d9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit ffba65bf05019144cb62eb9c4a0bd22db22609cc Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 1f22288d14e96d8b09a1916591d6a70d2db45481 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit e5a04e51c62f8e85b29fc4eb0ee1adb19622a978 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 155a96b066ca27243652b90b332ef2f7448e3ab0 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit a18f80f1d1aaa1e6c0606c774ba7931b6bf527fc Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 43b74762ffa648dfcaec1d752800eba996af8784 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 1f9eba8250e2fcd084399eaf47243cacb0a094e0 Merge: 17b9cb1c 3d51ab04 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:52:19 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 17b9cb1cb7dc91d46f4cef569d63b481ee7a121a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 63122eb9c63f7b647c578c50268ec3cb6069da9e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 362ec046ef25402126f651cbd8d17c9b0eb8e5f9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 26d2f319c44d74f5d419c789bcd594f3b11f5375 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit 3d51ab049bee5729706c5f59f8e2233c1c2e746c Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit e3138f7427c4e199a9b4000e0ef0c7a366e65afd Merge: 3beca8c7 c95b8412 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 9 13:47:44 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 3beca8c75b14dde5a8dc4a01c85b9f8e13edfa24 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 2d8e3c4b8c2ca5804dcca66e4d4a6dea2bc3fe68 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit fa13fe991f437cb209b723e2d22e33af56066aae Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit c95b841232971fee08e771664579505326a8383c Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 74fb512d1adaabb39b37b2d3e69fc89bf9852f69 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 28337545084b3ad9e0f0505fd2a0851c158c4ec9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS * - fix for tags * - fixed issue with checkboxes for #1190 * #1181 fixed min width and maximum width design * #1181 created compound sets table * #1181 fixed layout with Compound sets * #1181 changed functionality for radio buttons * #1181 RHS UI improvements, fixed some related error * #1203 download compound molecules as csv export, populate compound summary table from common scores * #1181 changed active filter icon from different colour to red dot indicator * #1202 added rationale and ref_url info into inspiration dialog * #1204 search compound sets by title * #1181 added tooltips for all columns * #1202 updated visual of summary * #1181 adjusted columns widths, show number of compounds in set in # column * #1181 adjusted RHS height and increased maximum width * #1121 renamed references of unique_name to name since it was removed * Squashed commit of the following: commit a8e1fda76c4449188f931286f9725931c3f0a4ec Merge: e97995dd 7f619a7a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 20 10:21:56 2023 +0100 Merge branch '#1077' of https://github.com/m2ms/fragalysis-frontend into #1077 commit e97995ddcfe8778bc2b8de070810935b5e8f786a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 20 07:48:27 2023 +0100 - small fix for #1077 commit 8ee8cb1891c1d5f0f716ce130aa28f039241158f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:54:25 2023 +0100 - fixed problem with UI showing error that target from URL is not recognized when the targets are not yet loaded commit 32018c9968bb96c8b29074bd71bc242e25c54b39 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:27:28 2023 +0100 - checking out the sorting of target list commit da3abebacf95b8890b14149d9e6b88d3acbf0526 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 14:22:03 2023 +0100 - #1195 commit f593a1eef0b4622f37ccd3ad6afe8e8ebdf5abb8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 12:41:31 2023 +0100 - #1166 commit 96733edf6dadd3555cc104a6b386fa97837a0b1b Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 09:02:49 2023 +0100 - implemented #1077 commit 7f619a7a55ec9a9e33089c1548acc404a1c05aa9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 20 07:48:27 2023 +0100 - small fix for #1077 commit c29b995f7c6eb9e48ec5fdeeb26914d845bd5e92 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:54:25 2023 +0100 - fixed problem with UI showing error that target from URL is not recognized when the targets are not yet loaded commit a70d4a2c31212407d77b145e688c80ecaa9e6b8b Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:27:28 2023 +0100 - checking out the sorting of target list commit 5f1ea56baa55e3d40d34b99dbd2284c339f6d9e2 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 14:22:03 2023 +0100 - #1195 commit 7c5c6b5620e037e9d7f47e56ea783158d34e2204 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 12:41:31 2023 +0100 - #1166 commit d51914eace57384ef7586a82b186096a4c8404c2 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 09:02:49 2023 +0100 - implemented #1077 * - workaround for #1075 and partial implementation of #1256 * - updated 'download is preparing' message * - forgot to remove debug sleep... * - hot fix for #1075 * - hotfix for #1075 - weird merge by github * - #1256 - added link to success toast * Squashed commit of the following: commit 0e242e13301e4708ecf725b2742584b98f799704 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Jan 16 13:52:38 2024 +0100 - additional fixes for #1075 - fixed #1267 - fixed #1260 - fixed #1270 * - copy now copies whole name of the compound/observationCmpView.js - target name was removed from the name of the compound/observation when displayed * #1249 dataset molecules can use side observation molecule for P, C, S renders * #1249 preserve color of RHS compound when toggling its P, C, S buttons * #1249 fixed inconsistent coloring of rendered objects on activating RHS/LHS compound buttons * - improved direct display comments to show issues and examples * - #1296, #1299, partial (?) #1305, partial #1303 * #1208 updated status lights on hover info and some logic behind it * #1208 added check for status change * #1208 do not spam toast of unavailable status * - probably fix for #1295 - fixed #1300 and #1315 --------- Co-authored-by: matej <matej.vavrek@m2ms.sk> Co-authored-by: RobertMatuska <robert.matuska@m2ms.sk> commit f5b939eea1a3b265033b9d393b8f72a18486121c Author: boriskovar-m2ms <boris.kovar@m2ms.sk> Date: Tue Jan 30 10:11:35 2024 +0100 #1296, #1299, partial (?) #1305, partial #1303 (#402) * Update build-main.yaml got rid of scheduled rebuild because it's messing up data * updated react16 to react 18.2, replaced hot-loaders modules by react-refresh, removed react-undo module * added proper values for Typography variant * renamed obsolete create theme function * #1063 added header and search * #1063 fixed body table, page count and search * #1063 fixed minor bugs and set clear filter * Squashed commit of the following: commit 10925d2c914673bfaa4e8b0205904e3e393d731d Author: RobertMatuska <robert.matuska@m2ms.sk> Date: Thu Sep 28 10:27:36 2023 +0200 #1114 edited text and style * #1161 setted search and filter for old target list * #1161 fixed discourse icon padding * #1161 fixed filtered list sort * #1161 fixed target access sort and filter * #1161 fixed change page * #1145 preserve state of molecule rendering, save also actions of representation changes to snapshot * do not wrap display controls buttons * #1167 resize target list colmuns * #1161 fixed sorting * #1161 fixed sorting * #1161 edit sort functionality for filter table * #1161 fixed search, filter, sort by target access * #1161 created init date column * #1161 # filtering and sorting init date * #1161 fixed clear and sort init date * #1161 fixed target sorting * Squashed commit of the following: commit d4895261f303ae61a359579c485adf702cdff64e Merge: 1c45038a 411921f8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 08:24:05 2023 +0200 Merge branch '#1173' of https://github.com/m2ms/fragalysis-frontend into #1173 commit 1c45038a42430f90f68430037027296021fe1974 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 11:03:49 2023 +0200 - implemented #1173 also with save/restore and undo/redo functionality commit 411921f8a4906c54dfcd31c8bc079f9bd3008baf Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 11:03:49 2023 +0200 - implemented #1173 also with save/restore and undo/redo functionality * merge * Squashed commit of the following: commit 7883c1584fc80b0be8dae624c18e86ddbe3c906b Merge: 5e2b937d 19b9f243 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 11:19:36 2023 +0200 Merge branch '#1172' of https://github.com/m2ms/fragalysis-frontend into #1172 commit 5e2b937da95963afab366fac18912b4c596ccd78 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 11:16:15 2023 +0200 - added compound_set to csv export - #1172 commit 19b9f243cc996f8d3e28f6fd8a44c167894b358a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 11:16:15 2023 +0200 - added compound_set to csv export - #1172 commit 75ac125b5cae9d669d337410db9a184d6d31a456 Merge: f50666ce 574c7b5e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Oct 16 08:26:08 2023 +0200 Merge branch '#1172' of https://github.com/m2ms/fragalysis-frontend into #1172 commit f50666cef87e491309347fbcb8514286fcb72adc Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 13:45:34 2023 +0200 - implemented #1172 commit 574c7b5e65181e35865571ce7d9b6d01a40ce562 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Fri Oct 13 13:45:34 2023 +0200 - implemented #1172 * #1167 fixed issues * #1167 reworked resizer * #1161 fixed merge bugs * #1161 removed console * updated react16 to react 18.2, replaced hot-loaders modules by react-refresh, removed react-undo module * added proper values for Typography variant * renamed obsolete create theme function * changed deprecated justify= to justifyContent= * fixed some landing page errors, mostly missing key and using useState outside of useEffect in functional component * #1061 loading and toast functionality move from header context into LoadingContext and ToastContext, added loading indicator for tags and hits panes + hit/molecule control buttons * #1171 return representations when loading protein without quality to show it in display control * do not set logged in toast message if user is not logged in * fixed Tooltip error messages about its disabled child, fixed invalid variant type and removed xs from Grid container (it is Grid item property) * fixed null value for open property * fixed "ButtonGroup component doesn't accept a Fragment as a child. Consider providing an array instead" * fixed "<div> cannot appear as a descendant of <p>" error by adding "component={'div'}" property to complex Typography component * removed invalid way of setting color for tag, it does not work - only throws error and with proper setting it is same as background color.. * fixed missing key error * fixed invalid references erros * fixed unknown properties error and missing key * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - changed configuration * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - fixed search bar placeholder for hits * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - #1139 - fixed snapshot creation and restoration * #1167 target and project list resizer * #1167 fixed project list width * #1161 changed width * - #1183 - dynamic handling of tag categories * - fixed #1186 * - job file transfer backend * - checkpoint * - new CI/CD * Update build-main.yaml got rid of scheduled rebuild because it's messing up data * updated react16 to react 18.2, replaced hot-loaders modules by react-refresh, removed react-undo module * added proper values for Typography variant * renamed obsolete create theme function * changed deprecated justify= to justifyContent= * fixed some landing page errors, mostly missing key and using useState outside of useEffect in functional component * rebase * #1171 return representations when loading protein without quality to show it in display control * do not set logged in toast message if user is not logged in * fixed Tooltip error messages about its disabled child, fixed invalid variant type and removed xs from Grid container (it is Grid item property) * fixed null value for open property * fixed "ButtonGroup component doesn't accept a Fragment as a child. Consider providing an array instead" * fixed "<div> cannot appear as a descendant of <p>" error by adding "component={'div'}" property to complex Typography component * removed invalid way of setting color for tag, it does not work - only throws error and with proper setting it is same as background color.. * fixed missing key error * fixed invalid references erros * fixed unknown properties error and missing key * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - changed configuration * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - fixed search bar placeholder for hits * - #1139 - updated docker-compose file to be ready for new backend version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - initial implementation of #1139 - tags and molecules * - #1139 - tags, molecules updated to use new api - not final version * - #1139 - fixed snapshot creation and restoration * - #1183 - dynamic handling of tag categories * - job file transfer backend * - checkpoint * - new CI/CD * - fixed build errors * Squashed commit of the following: commit d5c97097a073d1298221f98b01e0431cbf520a47 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 07:36:56 2023 +0100 - fixes blank page * #1035 added front-end pert of status lights for services * #1035 added API endpoint and changed refresh rate to 30 seconds for now * #1035 do not end up on failed response * Squashed commit of the following: commit e1dd8bd5f2c9e61c829cefb80b63f0e3f23604c9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 21 09:16:46 2023 +0100 - #1211 fixed and also fixed other problems which were hiding problems with snapshot restoration * Squashed commit of the following: commit e79b49f5fce9027910e24f30efdfc0aafa94be34 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Dec 7 09:44:55 2023 +0100 - fixed RHS for #1239 * #1217 save all actions to action list for snapshot not only the first ones, fixed of possible crash, adjusted restoring representations from snapshot * - updated docker-compose * Squashed commit of the following: commit 50d574da89fc90425cfcd6eb18ab30348f371b73 Merge: 1fdebffa 3b4e7a7a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 13 09:06:19 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 1fdebffa19b741e99b1e14ec2dd2adffa4261837 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 13 08:14:58 2023 +0100 - RC of #1190 commit dabee45c26683c5e1b84d60b145850e199fd2ab0 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 5 09:20:02 2023 +0100 - checkpoint commit 4e9a6744ea75081129126dd1b9aad0d8410ae062 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit c90fc473a059540aea9070715b6527de8a823899 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 515cb8bb4d6ee9fea192c9fa0768c80c03a524e3 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit ab0a2977c9f923183afa413fe5f9ae8c149b4b4e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 216762b7094da2f07bb74ecd3ce0bd4526f47e57 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 6f628a7e7c637b9d5d80c27bca4470f7c7ffb527 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 823bf2c9c55d6e5f148c75fd55e888bcbbd5c105 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit a7aa657062c994b0ece88ea0fbf2a0d137bc3850 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 101751bab2d505f8f5dfaa3f4bac88529084d7da Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 5a6935a6f7d8ecaca16ca5072880ebb12f8656d0 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 1d01387260863790647f7324d4bd0c34ac4dcd03 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit b3c781364154acf103c33bf8d266353466cdc5d8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit f48dc9d21c5bf02df112d149adf8f3384d96b702 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 813b553e8db154a9103e45f349ccf08607ba6cd7 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit b49f773779790bbd231e418860eb2089b87b7919 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 98f566bcbb9d7493238fcbefc6cf87dcec1e7497 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit a01f097d1b2fc5290cb26d27edd45635ec2ae703 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit a6d8930b249c7cc9175b4e6cd2e386ed7803f7e6 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 392938b34b29aacb1729d1ddc5d5d438a59dd773 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 69ab4c2701185f68a6d85cebf8d03367c60ef2a4 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit e6b700b602b708801ac38385bc79e3ef785d8af8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit a7e6aad0a8f8ce7b80ba84c3d017581c659522c7 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 4fc93c0662050f834ccf3482ed23358ab9b9f8be Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 58573f6fc68a4f405c93750ff40b9b5ec2cd0cd9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit ecc3d6c1dd4a6c3437d29d6f00ecf6ce0897319d Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit 3b4e7a7ad2a663660f675b10dd91f09a81ca720e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 13 08:14:58 2023 +0100 - RC of #1190 commit 1debb802212c6b7c6fa954bba1b04c5e926ef0ea Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 5 09:20:02 2023 +0100 - checkpoint commit 4f714be762940d796add2431a25dc9d11f795cd5 Merge: 730d9e5b bcc1568f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Nov 22 07:41:51 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 # Conflicts: # js/reducers/api/apiReducers.js # js/reducers/api/constants.js commit 730d9e5bd404a8c121403528626c51595dee3927 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit 76ea646ba8b940037e85082bdddff8967971a602 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 67439de7a640ff33f1dba88ebb833894e4a53b06 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit a38e0a39093ecf59d39fe50f0a49f9fa7a9237d3 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 64b67c539245bb30fa67eeff011b9868b4b0d2fa Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 35b2777be98d8c3ad4af2ed5ab5ad90d349bc971 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 810451479e17147b03594ba4bc27bb6964d1c159 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 5432a999f9bc440b403abbdacaf45b3a328d9dfa Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit f5ea66fd36a1ad860b4530d89382c569303b2efa Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit d3fb020d6f99bd9177f0442198a3ffb17cb90516 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 84d48899979a09bd7c649028dd6df0eaebcd9b6a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 29796304e70cc2ae25c6a96271d0dd12f692de48 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 7241df5cbeaab971c7f56eaa54a920a1b8ed8fc8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 195e30e1038a38ebe4ef4ffdfd3b8d93c12e3bda Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit bcc1568fbbb3b3143a668784f7aac4524f4276a3 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 13:17:05 2023 +0100 - using new backend image commit 60136ed9ddd47ca6c523375de5ba4d1f02fe6ab3 Merge: 85c06a92 a18f80f1 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 16 08:01:49 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 85c06a920ae62b6c379f0f9975e94cf384f8f47a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 6dd0268d367c93d8104569719a3d6c841e19bd36 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 0854241b93a563bf8cabd24278c4248c15eec645 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 1686e029dca683334351b4ea02c1d40851a321d9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit ffba65bf05019144cb62eb9c4a0bd22db22609cc Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 1f22288d14e96d8b09a1916591d6a70d2db45481 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit e5a04e51c62f8e85b29fc4eb0ee1adb19622a978 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 155a96b066ca27243652b90b332ef2f7448e3ab0 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit a18f80f1d1aaa1e6c0606c774ba7931b6bf527fc Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 14 16:42:23 2023 +0100 - #1190 - implemented tags commit 43b74762ffa648dfcaec1d752800eba996af8784 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 16:13:26 2023 +0100 - L, P, C, S, V buttons work now commit 1f9eba8250e2fcd084399eaf47243cacb0a094e0 Merge: 17b9cb1c 3d51ab04 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:52:19 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 17b9cb1cb7dc91d46f4cef569d63b481ee7a121a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit 63122eb9c63f7b647c578c50268ec3cb6069da9e Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 362ec046ef25402126f651cbd8d17c9b0eb8e5f9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 26d2f319c44d74f5d419c789bcd594f3b11f5375 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit 3d51ab049bee5729706c5f59f8e2233c1c2e746c Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Nov 13 08:28:59 2023 +0100 - checkpoint commit e3138f7427c4e199a9b4000e0ef0c7a366e65afd Merge: 3beca8c7 c95b8412 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 9 13:47:44 2023 +0100 Merge branch '#1190' of https://github.com/m2ms/fragalysis-frontend into #1190 commit 3beca8c75b14dde5a8dc4a01c85b9f8e13edfa24 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 2d8e3c4b8c2ca5804dcca66e4d4a6dea2bc3fe68 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit fa13fe991f437cb209b723e2d22e33af56066aae Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS commit c95b841232971fee08e771664579505326a8383c Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 12:03:11 2023 +0100 - checkpoint commit 74fb512d1adaabb39b37b2d3e69fc89bf9852f69 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Nov 7 06:42:52 2023 +0100 - checkpoint commit 28337545084b3ad9e0f0505fd2a0851c158c4ec9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Thu Nov 2 07:59:19 2023 +0100 - #1190 - compounds for LHS * - fix for tags * - fixed issue with checkboxes for #1190 * #1181 fixed min width and maximum width design * #1181 created compound sets table * #1181 fixed layout with Compound sets * #1181 changed functionality for radio buttons * #1181 RHS UI improvements, fixed some related error * #1203 download compound molecules as csv export, populate compound summary table from common scores * #1181 changed active filter icon from different colour to red dot indicator * #1202 added rationale and ref_url info into inspiration dialog * #1204 search compound sets by title * #1181 added tooltips for all columns * #1202 updated visual of summary * #1181 adjusted columns widths, show number of compounds in set in # column * #1181 adjusted RHS height and increased maximum width * #1121 renamed references of unique_name to name since it was removed * Squashed commit of the following: commit a8e1fda76c4449188f931286f9725931c3f0a4ec Merge: e97995dd 7f619a7a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 20 10:21:56 2023 +0100 Merge branch '#1077' of https://github.com/m2ms/fragalysis-frontend into #1077 commit e97995ddcfe8778bc2b8de070810935b5e8f786a Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 20 07:48:27 2023 +0100 - small fix for #1077 commit 8ee8cb1891c1d5f0f716ce130aa28f039241158f Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:54:25 2023 +0100 - fixed problem with UI showing error that target from URL is not recognized when the targets are not yet loaded commit 32018c9968bb96c8b29074bd71bc242e25c54b39 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:27:28 2023 +0100 - checking out the sorting of target list commit da3abebacf95b8890b14149d9e6b88d3acbf0526 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 14:22:03 2023 +0100 - #1195 commit f593a1eef0b4622f37ccd3ad6afe8e8ebdf5abb8 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 12:41:31 2023 +0100 - #1166 commit 96733edf6dadd3555cc104a6b386fa97837a0b1b Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 09:02:49 2023 +0100 - implemented #1077 commit 7f619a7a55ec9a9e33089c1548acc404a1c05aa9 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Wed Dec 20 07:48:27 2023 +0100 - small fix for #1077 commit c29b995f7c6eb9e48ec5fdeeb26914d845bd5e92 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:54:25 2023 +0100 - fixed problem with UI showing error that target from URL is not recognized when the targets are not yet loaded commit a70d4a2c31212407d77b145e688c80ecaa9e6b8b Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Dec 19 10:27:28 2023 +0100 - checking out the sorting of target list commit 5f1ea56baa55e3d40d34b99dbd2284c339f6d9e2 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 14:22:03 2023 +0100 - #1195 commit 7c5c6b5620e037e9d7f47e56ea783158d34e2204 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 12:41:31 2023 +0100 - #1166 commit d51914eace57384ef7586a82b186096a4c8404c2 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Mon Dec 18 09:02:49 2023 +0100 - implemented #1077 * - workaround for #1075 and partial implementation of #1256 * - updated 'download is preparing' message * - forgot to remove debug sleep... * - hot fix for #1075 * - hotfix for #1075 - weird merge by github * - #1256 - added link to success toast * Squashed commit of the following: commit 0e242e13301e4708ecf725b2742584b98f799704 Author: Boris Kovar <boris.kovar@m2ms.sk> Date: Tue Jan 16 13:52:38 2024 +0100 - additional fixes for #1075 - fixed #1267 - fixed #1260 - fixed #1270 * - copy now copies whole name of the compound/observationCmpView.js - target name was removed from the name of the compound/observation when displayed * #1249 dataset molecules can use side observation molecule for P, C, S renders * #1249 preserve color of RHS compound when toggling its P, C, S buttons * #1249 fixed inconsistent coloring of rendered objects on activating RHS/LHS compound buttons * - improved direct display comments to show issues and examples * - #1296, #1299, partial (?) #1305, partial #1303 * #1208 updated status lights on hover info and some logic behind it * #1208 added check for status change * #1208 do not spam toast of unavailable status --------- Co-authored-by: matej <matej.vavrek@m2ms.sk> Co-authored-by: RobertMatuska <robert.matuska@m2ms.sk>
1 parent 545c578 commit 45c8988

File tree

11 files changed

+161
-50
lines changed

11 files changed

+161
-50
lines changed

docker-compose.dev.vector.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,10 @@ services:
5353
start_period: 10s
5454
web:
5555
container_name: web_dock
56-
image: xchem/fragalysis-stack:latest
56+
# image: xchem/fragalysis-stack:latest
5757
# image: alanbchristie/fragalysis-backend:1187.3
5858
# image: boriskovarm2ms/fragalysis-stack:experiment2
59-
# image: kaliif/fragalysis-backend:latest
59+
image: kaliif/fragalysis-backend:latest
6060
command: /bin/bash /code/launch-stack.sh
6161
volumes:
6262
- ../data/logs:/code/logs/

js/components/preview/molecule/moleculeView/moleculeView.js

+12-5
Original file line numberDiff line numberDiff line change
@@ -455,11 +455,18 @@ const MoleculeView = memo(
455455
// const sortedData = [...allData].sort((a, b) => a.tag.localeCompare(b.tag));
456456

457457
const modifiedObjects = allData.map(obj => {
458-
const tagNameShortLength = 3;
459-
if (obj.tag.length > tagNameShortLength) {
460-
return { ...obj, tag: obj.tag.slice(0, tagNameShortLength) };
458+
let result = obj;
459+
460+
if (obj.tag_prefix) {
461+
result = { ...obj, tag: obj.tag_prefix };
462+
} else {
463+
const tagNameShortLength = 3;
464+
if (obj.tag.length > tagNameShortLength) {
465+
result = { ...obj, tag: obj.tag.slice(0, tagNameShortLength) };
466+
}
461467
}
462-
return obj;
468+
469+
return result;
463470
});
464471

465472
const allTagsLength = allData.length > 9 ? 9 : allData.length;
@@ -630,7 +637,7 @@ const MoleculeView = memo(
630637
xs={allData.length === 1 ? 12 : allData.length === 2 ? 6 : 4}
631638
key={index}
632639
>
633-
<div>{item.tag}</div>
640+
<div>{item.tag_prefix ? `${item.tag_prefix} - ${item.tag}` : item.tag}</div>
634641
</Grid>
635642
))}
636643
</Grid>

js/components/preview/molecule/observationCmpList.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -1107,7 +1107,7 @@ export const ObservationCmpList = memo(({ hideProjects }) => {
11071107
[classes.contColButtonHalfSelected]: false
11081108
})}
11091109
onClick={() => {
1110-
dispatch(selectAllHits(joinedMoleculeLists, setNextXMolecules, selectAllHitsPressed));
1110+
dispatch(selectAllHits(filteredLHSCompoundsList, setNextXMolecules, selectAllHitsPressed));
11111111
setSelectAllHitsPressed(!selectAllHitsPressed);
11121112
}}
11131113
disabled={false}
@@ -1214,7 +1214,12 @@ export const ObservationCmpList = memo(({ hideProjects }) => {
12141214
>
12151215
{filteredLHSCompoundsList.map((data, index, array) => {
12161216
const molsForCmp = data.associatedObs;
1217-
const selected = allSelectedMolecules.some(molecule => molecule.cmpd === data.origId);
1217+
// const selected = allSelectedMolecules.some(
1218+
// molecule => molecule.cmpd === data.origId && molecule.canon_site_conf === data.canonSiteConf
1219+
// );
1220+
const selected = allSelectedMolecules.some(molecule =>
1221+
data.associatedObs.some(obs => obs.id === molecule.id)
1222+
);
12181223

12191224
return (
12201225
<ObservationCmpView

js/components/preview/molecule/observationCmpView/observationCmpView.js

+14-11
Original file line numberDiff line numberDiff line change
@@ -562,15 +562,18 @@ const ObservationCmpView = memo(
562562
// const sortedData = [...allData].sort((a, b) => a.tag.localeCompare(b.tag));
563563

564564
const modifiedObjects = allData.map((obj, index) => {
565-
const tagNameShortLength = 3;
566-
if (obj.tag.length > tagNameShortLength) {
567-
let shortened = { ...obj, tag: obj.tag.slice(0, tagNameShortLength) };
568-
if (index === 0) {
569-
shortened = { ...shortened, tag: shortened.tag.replace('-', '') };
565+
let result = obj;
566+
567+
if (obj.tag_prefix) {
568+
result = { ...obj, tag: obj.tag_prefix };
569+
} else {
570+
const tagNameShortLength = 3;
571+
if (obj.tag.length > tagNameShortLength) {
572+
result = { ...obj, tag: obj.tag.slice(0, tagNameShortLength) };
570573
}
571-
return shortened;
572574
}
573-
return obj;
575+
576+
return result;
574577
});
575578

576579
const allTagsLength = allData.length > 9 ? 9 : allData.length;
@@ -745,7 +748,7 @@ const ObservationCmpView = memo(
745748
xs={allData.length === 1 ? 12 : allData.length === 2 ? 6 : 4}
746749
key={index}
747750
>
748-
<div>{item.tag}</div>
751+
<div>{item.tag_prefix ? `${item.tag_prefix} - ${item.tag}` : item.tag}</div>
749752
</Grid>
750753
))}
751754
</Grid>
@@ -1181,9 +1184,9 @@ const ObservationCmpView = memo(
11811184
onChange={e => {
11821185
const result = e.target.checked;
11831186
if (result) {
1184-
observations?.forEach(obs => {
1185-
dispatch(appendToMolListToEdit(obs.id));
1186-
});
1187+
if (observations?.length > 0) {
1188+
dispatch(appendToMolListToEdit(observations[0].id));
1189+
}
11871190
// dispatch(appendToObsCmpListToEdit(currentID));
11881191
} else {
11891192
observations?.forEach(obs => {

js/components/preview/molecule/redux/dispatchActions.js

+10-5
Original file line numberDiff line numberDiff line change
@@ -1232,16 +1232,21 @@ export const withDisabledMoleculesNglControlButtons = (moleculeIds, type, callba
12321232
});
12331233
};
12341234

1235-
export const selectAllHits = (allFilteredMolecules, setNextXMolecules, unselect) => (dispatch, getState) => {
1235+
export const selectAllHits = (allFilteredLhsCompounds, setNextXMolecules, unselect) => (dispatch, getState) => {
12361236
if (setNextXMolecules) {
1237-
dispatch(setNextXMolecules(allFilteredMolecules?.length || 0));
1237+
dispatch(setNextXMolecules(allFilteredLhsCompounds?.length || 0));
12381238
}
1239-
const listOfIds = allFilteredMolecules.map(m => m.id);
1239+
const listOfIds = [];
1240+
allFilteredLhsCompounds.forEach(cmp => {
1241+
if (cmp.associatedObs?.length > 0) {
1242+
listOfIds.push(cmp.associatedObs[0].id);
1243+
}
1244+
});
12401245
if (!unselect) {
12411246
dispatch(setMolListToEdit(listOfIds));
1242-
dispatch(setSelectAllMolecules(allFilteredMolecules));
1247+
dispatch(setSelectAllMolecules(allFilteredLhsCompounds));
12431248
} else {
12441249
dispatch(setMolListToEdit([]));
1245-
dispatch(setUnselectAllMolecules(allFilteredMolecules));
1250+
dispatch(setUnselectAllMolecules(allFilteredLhsCompounds));
12461251
}
12471252
};

js/components/preview/tags/tagView.js

+10-6
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,10 @@ const TagView = memo(
207207
}
208208
};
209209

210+
const getTagLabel = tag => {
211+
return tag.tag_prefix ? `${tag.tag_prefix} - ${tag.tag}` : tag.tag;
212+
};
213+
210214
const generateProps = () => {
211215
// If in Tag Details
212216
if (isTagEditor) {
@@ -219,9 +223,9 @@ const TagView = memo(
219223
label:
220224
assignTagView === false
221225
? tagDetailView === false
222-
? tagData.tag
223-
: originalTagData.tag
224-
: originalTagData.tag,
226+
? getTagLabel(tagData)
227+
: getTagLabel(originalTagData)
228+
: getTagLabel(originalTagData),
225229
clickable: true,
226230
style: style,
227231
onClick: () => {
@@ -236,7 +240,7 @@ const TagView = memo(
236240
className: `${classes.chip} ${selected && !isSpecialTag ? classes.chipSelected : null} ${
237241
tagDetailView === true ? classes.tagDetailsChip : classes.tagDetailsChipList
238242
}`,
239-
label: assignTagView === false ? (tagDetailView === false ? tagData.tag : tagData.tag) : tagData.tag,
243+
label: getTagLabel(tagData),
240244
clickable: true,
241245
style: {
242246
backgroundColor: 'white',
@@ -259,7 +263,7 @@ const TagView = memo(
259263
return {
260264
size: 'small',
261265
className: `${classes.chip} ${selected && !isSpecialTag ? classes.chipSelected : null}`,
262-
label: partiallySelected ? `${tagData.tag}*` : originalTagData.tag,
266+
label: partiallySelected ? `${getTagLabel(tagData)}*` : getTagLabel(originalTagData),
263267
clickable: true,
264268
// borderColor: bgColor,
265269
style: { ...style, borderColor: bgColor },
@@ -274,7 +278,7 @@ const TagView = memo(
274278
return {
275279
size: 'small',
276280
className: `${classes.chip} ${selected && !isSpecialTag ? classes.chipSelected : null}`,
277-
label: tagDetailView === true && assignTagView === true ? tagData.tag : originalTagData.tag,
281+
label: tagDetailView === true && assignTagView === true ? getTagLabel(tagData) : getTagLabel(originalTagData),
278282
clickable: true,
279283
// borderColor: bgColor,
280284
style: { ...style, borderColor: bgColor },

js/components/preview/tags/utils/tagUtils.js

+10-4
Original file line numberDiff line numberDiff line change
@@ -38,20 +38,26 @@ export const createMoleculeTagObject = (
3838
};
3939

4040
export const compareTagsAsc = (a, b) => {
41-
if (a.tag < b.tag) {
41+
const aName = a.tag_prefix ? `${a.tag_prefix} - ${a.tag}` : a.tag;
42+
const bName = b.tag_prefix ? `${b.tag_prefix} - ${b.tag}` : b.tag;
43+
44+
if (aName < bName) {
4245
return -1;
4346
}
44-
if (a.tag > b.tag) {
47+
if (aName > bName) {
4548
return 1;
4649
}
4750
return 0;
4851
};
4952

5053
export const compareTagsDesc = (a, b) => {
51-
if (a.tag > b.tag) {
54+
const aName = a.tag_prefix ? `${a.tag_prefix} - ${a.tag}` : a.tag;
55+
const bName = b.tag_prefix ? `${b.tag_prefix} - ${b.tag}` : b.tag;
56+
57+
if (aName > bName) {
5258
return -1;
5359
}
54-
if (a.tag < b.tag) {
60+
if (aName < bName) {
5561
return 1;
5662
}
5763
return 0;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
import React, { useState } from 'react';
2+
import { Button, Modal } from '../../common';
3+
import { DJANGO_CONTEXT } from '../../../utils/djangoContext';
4+
import { DialogActions, DialogContent, DialogContentText, DialogTitle } from '@material-ui/core';
5+
import { updateClipboard } from '../../snapshot/helpers';
6+
7+
export const LegacySnapshotModal = ({ open, project, snapshot }) => {
8+
const [legacyLink, setLegacyLink] = useState('');
9+
10+
if (DJANGO_CONTEXT['legacy_url'] && DJANGO_CONTEXT['legacy_url'] !== '' && legacyLink === '') {
11+
setLegacyLink(`${DJANGO_CONTEXT['legacy_url']}/viewer/react/projects/${project}/${snapshot}`);
12+
}
13+
14+
const openInNewTab = () => {
15+
window.open(legacyLink);
16+
};
17+
18+
return (
19+
<Modal open={open}>
20+
<>
21+
<DialogTitle id="form-dialog-title">Potential legacy link detected</DialogTitle>
22+
<DialogContent>
23+
<DialogContentText>
24+
Project/Snapshot could not be resolved. It's possible that this is legacy URL and you may try to visit URL
25+
below.
26+
</DialogContentText>
27+
<a href={legacyLink} target="_blank">
28+
{legacyLink}
29+
</a>
30+
</DialogContent>
31+
<DialogActions>
32+
<Button onClick={() => updateClipboard(legacyLink)} color="primary">
33+
Copy link
34+
</Button>
35+
<Button style={{ width: '175px' }} onClick={openInNewTab} color="primary">
36+
Open in new tab
37+
</Button>
38+
</DialogActions>
39+
</>
40+
{/* <h3>
41+
Project/Snapshot could not be resolved. It's possible that this is legacy URL and you may try to visit URL
42+
below. <br />
43+
</h3>
44+
<a href={legacyLink} target="_blank">
45+
Legacy URL
46+
</a> */}
47+
</Modal>
48+
);
49+
};

js/components/projects/projectPreview/index.js

+9-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@ import { restoreCurrentActionsList } from '../../../reducers/tracking/dispatchAc
88
import { setIsSnapshotDirty } from '../../../reducers/tracking/actions';
99
import { setDownloadStructuresDialogOpen } from '../../snapshot/redux/actions';
1010
import { ToastContext } from '../../toast';
11+
import { LegacySnapshotModal } from '../legacySnapshotModal';
1112

12-
export const ProjectPreview = memo(({ }) => {
13+
export const ProjectPreview = memo(({}) => {
1314
const { toast } = useContext(ToastContext);
1415
const [canShow, setCanShow] = useState(undefined);
1516
const isSnapshotLoaded = useRef(undefined);
@@ -23,6 +24,8 @@ export const ProjectPreview = memo(({ }) => {
2324
const isActionRestoring = useSelector(state => state.trackingReducers.isActionRestoring);
2425
const isActionRestored = useSelector(state => state.trackingReducers.isActionRestored);
2526

27+
const [showLegacySnapshotModal, setShowLegacySnapshotModal] = useState(false);
28+
2629
useEffect(() => {
2730
if (!snapshotId && currentSnapshotID === null) {
2831
dispatch(loadSnapshotByProjectID(projectId))
@@ -49,6 +52,7 @@ export const ProjectPreview = memo(({ }) => {
4952
setCanShow(true);
5053
} else {
5154
setCanShow(false);
55+
setShowLegacySnapshotModal(true);
5256
}
5357
if (response.data) {
5458
const dataObj = JSON.parse(response.data);
@@ -59,6 +63,7 @@ export const ProjectPreview = memo(({ }) => {
5963
} else {
6064
isSnapshotLoaded.current = response;
6165
setCanShow(false);
66+
setShowLegacySnapshotModal(true);
6267
}
6368
}
6469
})
@@ -96,5 +101,7 @@ export const ProjectPreview = memo(({ }) => {
96101
(currentSessionProject.projectID === null || currentSessionProject.authorID === null))
97102
}
98103
/>
99-
) : null;
104+
) : (
105+
<LegacySnapshotModal open={showLegacySnapshotModal} project={projectId} snapshot={snapshotId} />
106+
);
100107
});

0 commit comments

Comments
 (0)