@@ -14,6 +14,7 @@ type State =
1414interface StateRepresentation {
1515 status : "success" | "warning" | "info" | "danger" | "secondary" ;
1616 text ?: string ;
17+ displayName ?: string ;
1718 icon ?: string ;
1819 spin ?: boolean ;
1920 nonDb ?: boolean ;
@@ -31,84 +32,98 @@ export const STATES: StateMap = {
3132 /** has successfully completed running */
3233 ok : {
3334 status : "success" ,
35+ displayName : "ok" ,
3436 } ,
3537 /** has no data */
3638 empty : {
3739 status : "success" ,
3840 text : "No data." ,
41+ displayName : "empty" ,
3942 } ,
4043 /** was created without a tool */
4144 new : {
4245 status : "warning" ,
4346 text : "This is a new dataset and not all of its data are available yet." ,
47+ displayName : "new" ,
4448 icon : "clock" ,
4549 } ,
4650 /** the job that will produce the dataset queued in the runner */
4751 queued : {
4852 status : "warning" ,
4953 text : "This job is waiting to run." ,
54+ displayName : "queued" ,
5055 icon : "clock" ,
5156 } ,
5257 /** the job that will produce the dataset is running */
5358 running : {
5459 status : "warning" ,
5560 text : "This job is currently running." ,
61+ displayName : "running" ,
5662 icon : "spinner" ,
5763 spin : true ,
5864 } ,
5965 /** metadata for the dataset is being discovered/set */
6066 setting_metadata : {
6167 status : "warning" ,
6268 text : "Metadata is being auto-detected." ,
69+ displayName : "setting metadata" ,
6370 icon : "spinner" ,
6471 spin : true ,
6572 } ,
6673 /** is uploading and not ready */
6774 upload : {
6875 status : "warning" ,
6976 text : "This dataset is currently uploading." ,
77+ displayName : "uploading" ,
7078 icon : "spinner" ,
7179 spin : true ,
7280 } ,
7381 /** remote dataset */
7482 deferred : {
7583 status : "info" ,
7684 text : "This dataset is remote, has not been ingested by Galaxy, and full metadata may not be available." ,
85+ displayName : "deferred" ,
7786 icon : "cloud" ,
7887 } ,
7988 /** the job that will produce the dataset paused */
8089 paused : {
8190 status : "info" ,
8291 text : "This job is paused. Use the 'Resume Paused Jobs' in the history menu to resume." ,
92+ displayName : "paused" ,
8393 icon : "pause" ,
8494 } ,
8595 /** deleted while uploading */
8696 discarded : {
8797 status : "danger" ,
8898 text : "This dataset is discarded - the job creating it may have been cancelled or it may have been imported without file data." ,
99+ displayName : "discarded" ,
89100 icon : "exclamation-triangle" ,
90101 } ,
91102 /** the tool producing this dataset has errored */
92103 error : {
93104 status : "danger" ,
94105 text : "An error occurred with this dataset." ,
106+ displayName : "error" ,
95107 icon : "exclamation-triangle" ,
96108 } ,
97109 /** metadata discovery/setting failed or errored (but otherwise ok) */
98110 failed_metadata : {
99111 status : "danger" ,
100112 text : "Metadata generation failed. Please retry." ,
113+ displayName : "failed metadata" ,
101114 icon : "exclamation-triangle" ,
102115 } ,
103116 /** the job has failed, this is not a dataset but a job state used in the collection job state summary. */
104117 failed : {
105118 status : "danger" ,
119+ displayName : "failed" ,
106120 icon : "exclamation-triangle" ,
107121 } ,
108122 /** the dataset is not yet loaded in the UI. This state is only visual and transitional, it does not exist in the database. */
109123 placeholder : {
110124 status : "secondary" ,
111125 text : "This dataset is being fetched." ,
126+ displayName : "loading" ,
112127 icon : "spinner" ,
113128 spin : true ,
114129 nonDb : true ,
@@ -117,19 +132,22 @@ export const STATES: StateMap = {
117132 failed_populated_state : {
118133 status : "danger" ,
119134 text : "Failed to populate the collection." ,
135+ displayName : "failed" ,
120136 icon : "exclamation-triangle" ,
121137 nonDb : true ,
122138 } ,
123139 /** the `populated_state: new`. This state is only visual and transitional, it does not exist in the database. */
124140 new_populated_state : {
125141 status : "warning" ,
126142 text : "This is a new collection and not all of its data are available yet." ,
143+ displayName : "new" ,
127144 icon : "clock" ,
128145 nonDb : true ,
129146 } ,
130147 inaccessible : {
131148 status : "warning" ,
132149 text : "User not allowed to access this dataset." ,
150+ displayName : "inaccessible" ,
133151 icon : "lock" ,
134152 nonDb : true ,
135153 } ,
0 commit comments