aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask
AgeCommit message (Expand)Author
2024-04-23SSL_KEY_PAIR_PUBLIC_KEY: New setting...Define a new setting named SSL_KEY_PAIR_PUBLIC_KEY to hold the path to the SSL key-pair's public key, used with the JWTs. Frederick Muriuki Muriithi
2024-04-22Change haplotype analyst color schemezsloan
2024-04-16Import missing symbol.Frederick Muriuki Muriithi
2024-04-11Merge pull request #838 from genenetwork/feature/refactor-gnqa-ui...Feature/refactor gnqa UIAlexander Kabui
2024-04-05Delete redundant UI codebase.Alexander_Kabui
2024-04-05Use bootstrap classes for ui.Alexander_Kabui
2024-04-05Refactor gnqa history endpoint.... * require gn-auth Alexander_Kabui
2024-04-05Add get history fetch url on gnqa homepage.Alexander_Kabui
2024-04-05Add gnqa history search page.Alexander_Kabui
2024-04-05Update UI for gnqa rating to use htmx.Alexander_Kabui
2024-04-05Update gnqa rating route.Alexander_Kabui
2024-04-03Add pubmed info and stylingAlexander_Kabui
2024-04-02Display a history page containing all the edits....* gn2/wqflask/edit.py (__fetch_dataset_git_history__): New function. (view_history): New end-point. * gn2/wqflask/templates/dataset.html: Use htmx to fetch history. * gn2/wqflask/templates/dataset_history.html: New history page. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-04-02Use the dataset id to fetch the authorisation roles....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-04-02Load the edit page on the same page using HTMX....* gn2/wqflask/templates/dataset.html: Delete target="_blank" for the edit links. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-04-02Properly chain all the git and write operations together....* gn2/wqflask/edit.py (save_dataset_metadata): Chain running the git commands and the write operation together. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-04-02Refactor __run_cmd into private function __run_cmd__....* gn2/wqflask/edit.py: Import Right. Delete curry. (save_dataset_metadata)[__run_cmd]: Move this... (__run_cmd__): ... here. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-04-02Add a "View History" link....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-27Add some styling to gnqa answer page....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Fix htmx swap....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Delete unused javascript in gnqa page....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Add missing braces/brackets....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Enable auto-complete in form....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Clean up gnqa answer page....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Delete unused template....* gn2/wqflask/templates/pubmed_modal.html: Delete. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Delete llm.css and it's references....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Require ouath2 for gnqa history search....* gn2/wqflask/views.py (gnqna_hist): Add "require_oauth2" decorator. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Add htmx indicator....Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-27Add some styling to AI search bar....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Move search box to below the header....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Wrap "search" block round entire div that nests the search box....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Format files....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Re-locate gnqa search box to gnqa.html....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Require log-in to use the gn-qa search system....* gn2/wqflask/views.py: Import require_oauth2. (gnqna): Add "require_oauth2" decorator. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Clean up base.html....* gn2/wqflask/templates/base.html: Replace TABS with white-space. Fix hanging html tags. Format file. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Rework GN-QA landing page....Co-authored-by: Alexander Kabui <alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-27Fix mark-up in gn-qa landing page....Co-authored-by: Alexander Kabui <Alexanderkabua@gmail.com> Munyoki Kilyungi
2024-03-26Revert "Disable CaseAttributeId - because it needs an update to the database"...This reverts commit 4539ef0297bb4b8c2954f250697c237069a16d64. This commit was ignoring the historical context that led to the changes in the schema of the `CaseAttribute*` tables, and leads to errors when the database schema is updated. Frederick Muriuki Muriithi
2024-03-26Add missing docstrings to save/metadata_edit functions....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Add "dataset.name" field to the editor form....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Only display the "edit" link when a user has edit permissions....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Add a final fallback for match expression....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Use correct variable name....* gn2/wqflask/oauth2/client.py (no_token_post): "uri" does not exist. Replace it with "uri_path." Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Delete unused variable....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Use "require_oauth2_edit_resource_access" for edit/save endpoints....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Implement "require_oauth2_edit_resource_access" decorator....* gn2/wqflask/oauth2/checks.py (require_oauth2): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Replace "__" prefix for with "_"....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Import user_logged_in from the clients module....Importing "user_logged_in" in the checks module just to export adds a layer of indirection and makes the code hard to read. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Delete repetitive statement in "render_ui"....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi
2024-03-26Remove unused imports....Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com> Munyoki Kilyungi