107 lines
3.0 KiB
JSON
107 lines
3.0 KiB
JSON
{
|
||
"schema": 1,
|
||
"id": "diff-viewer",
|
||
"name": "Diff viewer",
|
||
"version": "1.0.0",
|
||
"description": "A conversation's Changes tab — its commits and uncommitted work as reviewable diffs, Viewed ticks, line comments and Send review — and full-page commit diffs",
|
||
"category": "dev",
|
||
"languages": ["en", "fr"],
|
||
"icon": "icon.svg",
|
||
"color": "#8a9d89",
|
||
"author": "gabrielvidal",
|
||
"seed": true,
|
||
"managed": {
|
||
"defaultForGuests": true
|
||
},
|
||
"optionalRequires": [
|
||
"commits"
|
||
],
|
||
"capabilities": [
|
||
"diff.read"
|
||
],
|
||
"actions": {
|
||
"commits": {
|
||
"script": "handlers/commits.py",
|
||
"timeoutSec": 60,
|
||
"readOnly": true,
|
||
"description": "A conversation's commits, oldest first (the commits plugin's list when it is on, else the core's), with its uncommitted files when asked"
|
||
},
|
||
"commit": {
|
||
"script": "handlers/commit.py",
|
||
"timeoutSec": 90,
|
||
"readOnly": true,
|
||
"description": "One of a conversation's commits as a diff (the commits plugin's cached patch, else lab git, the transcript or the worker it ran on)"
|
||
},
|
||
"uncommitted": {
|
||
"script": "handlers/uncommitted.py",
|
||
"timeoutSec": 60,
|
||
"readOnly": true,
|
||
"description": "A conversation's not-yet-committed changes (stats: paths and +/− only)"
|
||
},
|
||
"aggregate": {
|
||
"script": "handlers/aggregate.py",
|
||
"timeoutSec": 90,
|
||
"readOnly": true,
|
||
"description": "The net diff across a conversation's commits"
|
||
},
|
||
"repo-commit": {
|
||
"script": "handlers/repo_commit.py",
|
||
"timeoutSec": 60,
|
||
"readOnly": true,
|
||
"description": "One commit of a project, service or the hub's root repo as a diff"
|
||
},
|
||
"review": {
|
||
"script": "handlers/review.py",
|
||
"timeoutSec": 10,
|
||
"readOnly": true,
|
||
"description": "Your review of a conversation's changes: Viewed ticks and draft comments"
|
||
},
|
||
"review-save": {
|
||
"script": "handlers/review_save.py",
|
||
"timeoutSec": 10,
|
||
"description": "Tick a file Viewed, add, edit or delete a draft comment, clear the comments"
|
||
}
|
||
},
|
||
"ui": {
|
||
"pages": [
|
||
{
|
||
"id": "diff",
|
||
"label": "Diff",
|
||
"nav": "none",
|
||
"html": "ui/diff.html",
|
||
"fill": true,
|
||
"opens": [
|
||
"commit",
|
||
"conversation-diff"
|
||
]
|
||
}
|
||
],
|
||
"slots": [
|
||
{
|
||
"id": "changes",
|
||
"where": "conversation.tab",
|
||
"label": "Changes",
|
||
"icon": "file-diff",
|
||
"html": "ui/changes.html",
|
||
"legacyView": "changes",
|
||
"events": [
|
||
"transcript",
|
||
"meta"
|
||
]
|
||
},
|
||
{
|
||
"id": "uncommitted",
|
||
"where": "conversation.details",
|
||
"html": "ui/uncommitted.html",
|
||
"query": {"action": "uncommitted", "payload": {"conversationId": "$conversationId", "stats": true}},
|
||
"reuseFrame": true,
|
||
"height": 36,
|
||
"label": "Uncommitted changes",
|
||
"events": [
|
||
"transcript"
|
||
]
|
||
}
|
||
]
|
||
}
|
||
}
|