aboutsummaryrefslogtreecommitdiff
path: root/gn2/wqflask/views.py
AgeCommit message (Collapse)Author
2024-09-19Add a page for searching GeneWiki by symbol.Munyoki Kilyungi
* gn2/wqflask/templates/wiki/search.html: New template. * gn2/wqflask/views.py (search_wiki): New end-point. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-17refactor: improve do_ai_searchJohn Nduli
2024-09-17fix: ui redesign with history button and ignore default web_url valueJohn Nduli
2024-09-17feat: hide edit button if user isnt logged inJohn Nduli
2024-09-17feat: prefill email in edit rifJohn Nduli
2024-09-16Merge pull request #869 from genenetwork/features/Integrate-editing-doc-filesAlexander Kabui
Integrate gn editor for files.
2024-09-13refactor: urlencode query string.Alexander_Kabui
2024-09-13Merge branch 'testing' of https://github.com/genenetwork/genenetwork2 into ↵Alexander_Kabui
feature/xapian-to-llm-text-transformer
2024-09-13Move the clean xapian query function to gn2 helper functions.Alexander_Kabui
2024-09-13Use if statement for clarity.Alexander_Kabui
2024-09-12fix: stop extending gnqa_answer.htmlJohn Nduli
gnqa_answer.html is used by htmx to return a post result. I revert my change and include this in `gnqa.html` instead, to load results from a GET request.
2024-09-12feat: add rough implementation for xapian query cleanerJohn Nduli
2024-09-12fix: change request for search to getJohn Nduli
2024-09-12feat: implement text transformer for xapian searches.Alexander_Kabui
2024-09-12refactor: Use get for all request to gn3 search endpoint.Alexander_Kabui
2024-09-12refactor: render gnqa homepage if no query for get request.Alexander_Kabui
2024-09-12Fix: minor typo fix.Alexander_Kabui
2024-09-11feat: async js loading for fahamu resultsJohn Nduli
2024-09-11refactor: align search llm tooltip to be verticalJohn Nduli
2024-09-11fix: add flag that enables/disables search UIJohn Nduli
2024-09-11feat: add ai search box to xapian results pageJohn Nduli
2024-09-10Implement client side pagination for history page.Alexander_Kabui
2024-09-06Use query string for Gnqa Search endpoint.Alexander_Kabui
2024-09-06Remove dead Api endpoints for gnqa.Alexander_Kabui
2024-09-06Use application level Exception Handler for Unknown exceptions.Alexander_Kabui
2024-09-06Merge pull request #863 from genenetwork/chores/merge-gnqa-systemsAlexander Kabui
Chores/merge gnqa systems
2024-09-05Remove duplicate sections in wiki history page.Munyoki Kilyungi
* gn2/wqflask/templates/wiki/history.html: Use a for loop to remove duplicate section. * gn2/wqflask/views.py (display_wiki_history): Pass all the entries directly into the template. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-05Add comment history page.Munyoki Kilyungi
* gn2/wqflask/templates/wiki/history.html: New page. * gn2/wqflask/views.py (display_wiki_history): New function. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-09-05Use new endpoints for fetching gnqna history records.Alexander_Kabui
2024-09-02Fix issue for rendering error template for gnqa history.Alexander_Kabui
2024-09-02Use if else to improve readabity.Alexander_Kabui
2024-09-02Add a return code `500` for gnqa endpoint error.Alexander_Kabui
2024-08-30fix merge conflictAlexander_Kabui
2024-08-29Rename edit endpoint from /editor to editor/editAlexander_Kabui
2024-08-29Integrate gn-auth to gn-editor.Alexander_Kabui
2024-08-29Replace _ with - for search query parameters.Alexander_Kabui
2024-08-29Fetch file path as query parameter.Alexander_Kabui
2024-08-29Use localstorage to track current commit.Alexander_Kabui
2024-08-29Code refactoring.Alexander_Kabui
2024-08-29Minor code refactoring.Alexander_Kabui
2024-08-29Add commit preview page.Alexander_Kabui
2024-08-29Feature: Allow users custom configuration for editor.Alexander_Kabui
2024-08-29Add initial endpoint for serving edit filesAlexander_Kabui
2024-08-29refactor: drop monad_requests and mark required fieldsJohn Nduli
2024-08-29feat: add post actions for editting wiki contentJohn Nduli
2024-08-29feat: add template for editting wikiJohn Nduli
2024-08-29Handle errors correctly during wiki entry fetch.Munyoki Kilyungi
* gn2/wqflask/templates/wiki/genewiki.html: Flash messages during errors. * gn2/wqflask/views.py (display_genewiki_page): Use "raise_for_status()" to handle errors. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Move genewiki template to wiki template folder.Munyoki Kilyungi
* gn2/wqflask/templates/genewiki.html: Move this... * gn2/wqflask/templates/genewiki.html: ... here. * gn2/wqflask/views.py (display_genewiki_page): Update the render_template page. Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Add type annotation for symbol.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
2024-08-29Use updated GN3 endpoint for wiki.Munyoki Kilyungi
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>