From 67ef31b3d67fd1665d4d31be8711e8a1b826c350 Mon Sep 17 00:00:00 2001 From: Anandashankar Anil Date: Thu, 14 Nov 2024 13:48:58 +0100 Subject: [PATCH] Add icon for new processed status for aviti FC and add some comments --- run_dir/static/js/element_flowcell.js | 4 +++- status/flowcell.py | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/run_dir/static/js/element_flowcell.js b/run_dir/static/js/element_flowcell.js index 2273b72d6..cd34374af 100644 --- a/run_dir/static/js/element_flowcell.js +++ b/run_dir/static/js/element_flowcell.js @@ -236,8 +236,10 @@ app.component('v-element-flowcell', { return 'fa-solid fa-bring-front' } else if (this.$root.run_status === "transferring") { return 'fa-solid fa-upload' - } else if (this.$root.run_status === "archived") { + } else if (this.$root.run_status === "processed") { return 'fa-solid fa-check' + } else if (this.$root.run_status === "archived") { + return 'fa-solid fa-box-archive' } else { return 'fa-solid fa-question' } diff --git a/status/flowcell.py b/status/flowcell.py index 368e1526f..8981b1975 100644 --- a/status/flowcell.py +++ b/status/flowcell.py @@ -511,6 +511,11 @@ def get_project_names_from_ids(project_ids: list, projects_db) -> list[dict]: class ElementFlowcellDataHandler(SafeHandler): + """Serves information for a given element flowcell. + + Loaded through /api/v1/element_flowcell/([^/]*$) + """ + def get(self, name): rows = self.application.element_runs_db.view("info/id", include_docs=True)[ name