Add history view, rework to use history status, remove old classes
Signed-off-by: Sanjula Ganepola <sanjulagane@gmail.com>
This commit is contained in:
71
package.json
71
package.json
@@ -52,6 +52,11 @@
|
||||
"name": "Workflows",
|
||||
"icon": "$(layers)"
|
||||
},
|
||||
{
|
||||
"id": "history",
|
||||
"name": "History",
|
||||
"icon": "$(book)"
|
||||
},
|
||||
{
|
||||
"id": "settings",
|
||||
"name": "Settings",
|
||||
@@ -59,6 +64,42 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
"viewsWelcome": [
|
||||
{
|
||||
"view": "components",
|
||||
"contents": "Loading components..."
|
||||
},
|
||||
{
|
||||
"view": "workflows",
|
||||
"contents": "Loading components...",
|
||||
"when": "!githubLocalActions:noWorkflows"
|
||||
},
|
||||
{
|
||||
"view": "workflows",
|
||||
"contents": "No workflows found.",
|
||||
"when": "githubLocalActions:noWorkflows"
|
||||
},
|
||||
{
|
||||
"view": "history",
|
||||
"contents": "Loading history...",
|
||||
"when": "!githubLocalActions:noHistory"
|
||||
},
|
||||
{
|
||||
"view": "history",
|
||||
"contents": "No history found.",
|
||||
"when": "githubLocalActions:noHistory"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "Loading settings...",
|
||||
"when": "!githubLocalActions:noSettings"
|
||||
},
|
||||
{
|
||||
"view": "settings",
|
||||
"contents": "No workflows found.",
|
||||
"when": "githubLocalActions:noSettings"
|
||||
}
|
||||
],
|
||||
"commands": [
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
@@ -114,6 +155,18 @@
|
||||
"title": "Run Workflow",
|
||||
"icon": "$(debug-start)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.runJob",
|
||||
"title": "Run Job",
|
||||
"icon": "$(debug-start)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"title": "Refresh",
|
||||
"icon": "$(refresh)"
|
||||
},
|
||||
{
|
||||
"category": "GitHub Local Actions",
|
||||
"command": "githubLocalActions.refreshSettings",
|
||||
@@ -159,6 +212,14 @@
|
||||
"command": "githubLocalActions.runWorkflow",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.runJob",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"when": "never"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshSettings",
|
||||
"when": "never"
|
||||
@@ -185,6 +246,11 @@
|
||||
"when": "view == workflows",
|
||||
"group": "navigation@2"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshHistory",
|
||||
"when": "view == history",
|
||||
"group": "navigation@0"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.refreshSettings",
|
||||
"when": "view == settings",
|
||||
@@ -216,6 +282,11 @@
|
||||
"command": "githubLocalActions.runWorkflow",
|
||||
"when": "view == workflows && viewItem =~ /^githubLocalActions.workflow.*/",
|
||||
"group": "inline@1"
|
||||
},
|
||||
{
|
||||
"command": "githubLocalActions.runJob",
|
||||
"when": "view == workflows && viewItem =~ /^githubLocalActions.job.*/",
|
||||
"group": "inline@0"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user