Skip to content

Commit 9eb62ed

Browse files
authored
Onboarding: connect the coding agent second, and it adds VisualCI to CI from a prompt; Add a GitHub organization (#163)
* Onboarding: "Add a GitHub organization" on the Organizations page and in the account menu; other accounts' installations listed quietly below the install step * Setup: connect your coding agent comes second; Add VisualCI to CI gives the agent a prompt for the project, with "I'll set it up myself" for the manual way * Docs: Vitest's toMatchFileSnapshot files are uploaded as plain files (found walking the setup prompt) * MCP goldens: the new step order and the Vitest skill's description * journeys: the finished pick's next button is 'Next: connect your coding agent' * Setup: the prompt says how to connect VisualCI's MCP when it isn't; "How did you hear about VisualCI?" waits until setup is finished or hidden; prompt unit tests * Plugin 0.1.55
1 parent c1fc14f commit 9eb62ed

30 files changed

Lines changed: 256 additions & 98 deletions

File tree

‎.claude-plugin/marketplace.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"plugins": [
66
{
77
"name": "visualci",
8-
"version": "0.1.54",
8+
"version": "0.1.55",
99
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
1010
"author": { "name": "DocSpring", "url": "https://visualci.com" },
1111
"homepage": "https://visualci.com/docs/skills/",

‎.claude-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "visualci",
3-
"version": "0.1.54",
3+
"version": "0.1.55",
44
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
55
"author": { "name": "DocSpring", "url": "https://visualci.com" },
66
"homepage": "https://visualci.com/docs/skills/",

‎.cursor-plugin/plugin.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "visualci",
33
"displayName": "VisualCI",
4-
"version": "0.1.54",
4+
"version": "0.1.55",
55
"description": "Visual regression and snapshot review for PDFs, screenshots, JSON, HTML and text: VisualCI's MCP server and its skills for each CI provider and test tool.",
66
"author": {
77
"name": "DocSpring"

‎app/src/auth/setup.rs‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ pub fn routes(route: &mut Router) {
1313
route.post("/api/ui/orgs/{org}/setup", update);
1414
}
1515

16-
/// The steps, in order. Installing the GitHub App makes the projects (sc-9027), so it comes first.
17-
pub const STEPS: &[&str] = &["install_github_app", "add_to_ci", "connect_agent", "review_changes"];
16+
/// The steps, in order. Installing the GitHub App makes the projects (sc-9027), so it comes first; then the coding agent,
17+
/// which adds VisualCI to CI over MCP.
18+
pub const STEPS: &[&str] = &["install_github_app", "connect_agent", "add_to_ci", "review_changes"];
1819

1920
/// The checklist for an organization as `user_pid` sees it (a connected agent is per person: an MCP connection, or a
2021
/// personal token that has been used; with no person, such as a project token, it isn't done): each step and whether

‎app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/get_organization.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"result": {
66
"content": [
77
{
8-
"text": "{\"billing_url\":\"https://app.visualci.test/<org:1>/billing\",\"invitations\":[],\"members\":[{\"avatar_url\":null,\"email\":\"<uuid:1>@example.com\",\"id\":\"<uuid:2>\",\"identities\":[],\"login\":null,\"name\":\"owner\",\"role\":\"admin\",\"since\":\"<time:1>\",\"source\":\"created\",\"synced_at\":null}],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"<org:1>/pdfs\"},{\"last_build\":null,\"name\":\"Screenshots\",\"project\":\"<org:1>/shots\"}],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"<org:1>\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"<time:2>\",\"unlimited\":false},\"usage_history\":[]}",
8+
"text": "{\"billing_url\":\"https://app.visualci.test/<org:1>/billing\",\"invitations\":[],\"members\":[{\"avatar_url\":null,\"email\":\"<uuid:1>@example.com\",\"id\":\"<uuid:2>\",\"identities\":[],\"login\":null,\"name\":\"owner\",\"role\":\"admin\",\"since\":\"<time:1>\",\"source\":\"created\",\"synced_at\":null}],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"<org:1>/pdfs\"},{\"last_build\":null,\"name\":\"Screenshots\",\"project\":\"<org:1>/shots\"}],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"<org:1>\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"<time:2>\",\"unlimited\":false},\"usage_history\":[]}",
99
"type": "text"
1010
}
1111
],
@@ -53,14 +53,14 @@
5353
"done": false,
5454
"key": "install_github_app"
5555
},
56-
{
57-
"done": false,
58-
"key": "add_to_ci"
59-
},
6056
{
6157
"done": true,
6258
"key": "connect_agent"
6359
},
60+
{
61+
"done": false,
62+
"key": "add_to_ci"
63+
},
6464
{
6565
"done": false,
6666
"key": "review_changes"

‎app/tests/golden/mcp/a_personal_token_manages_organizations_projects_and_tokens/whoami.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"result": {
44
"content": [
55
{
6-
"text": "{\"email\":\"<uuid:1>@example.com\",\"identities\":[],\"kind\":\"user\",\"name\":\"owner\",\"organizations\":[{\"blocked\":null,\"name\":\"Org\",\"projects\":[\"<org:1>/pdfs\",\"<org:1>/shots\"],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"<org:1>\"}],\"via\":{\"source\":\"personal_token\",\"token_name\":\"agent\"},\"waiting_for_review\":[]}",
6+
"text": "{\"email\":\"<uuid:1>@example.com\",\"identities\":[],\"kind\":\"user\",\"name\":\"owner\",\"organizations\":[{\"blocked\":null,\"name\":\"Org\",\"projects\":[\"<org:1>/pdfs\",\"<org:1>/shots\"],\"role\":\"admin\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":true,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"<org:1>\"}],\"via\":{\"source\":\"personal_token\",\"token_name\":\"agent\"},\"waiting_for_review\":[]}",
77
"type": "text"
88
}
99
],
@@ -34,14 +34,14 @@
3434
"done": false,
3535
"key": "install_github_app"
3636
},
37-
{
38-
"done": false,
39-
"key": "add_to_ci"
40-
},
4137
{
4238
"done": true,
4339
"key": "connect_agent"
4440
},
41+
{
42+
"done": false,
43+
"key": "add_to_ci"
44+
},
4545
{
4646
"done": false,
4747
"key": "review_changes"

‎app/tests/golden/mcp/a_project_token_acts_as_a_member_not_an_admin/get_organization.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"result": {
66
"content": [
77
{
8-
"text": "{\"billing_url\":\"https://app.visualci.test/<org:1>/billing\",\"invitations\":[],\"members\":[],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"<org:1>/pdfs\"}],\"role\":\"project\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"<org:1>\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"<time:1>\",\"unlimited\":false},\"usage_history\":[]}",
8+
"text": "{\"billing_url\":\"https://app.visualci.test/<org:1>/billing\",\"invitations\":[],\"members\":[],\"name\":\"Org\",\"projects\":[{\"last_build\":null,\"name\":\"PDFs\",\"project\":\"<org:1>/pdfs\"}],\"role\":\"project\",\"setup\":{\"complete\":false,\"dismissed\":false,\"github\":[],\"install_url\":\"/github/install\",\"installations\":[],\"next\":\"install_github_app\",\"steps\":[{\"done\":false,\"key\":\"install_github_app\"},{\"done\":false,\"key\":\"connect_agent\"},{\"done\":false,\"key\":\"add_to_ci\"},{\"done\":false,\"key\":\"review_changes\"}]},\"slug\":\"<org:1>\",\"usage\":{\"auto_reload_packs\":4,\"billing_problem\":null,\"credit_pack\":{\"credits\":500000,\"price_cents\":1500,\"reload_below\":100000},\"credits_this_month\":0,\"included_credits\":25000,\"open_source\":{\"pool\":1000000,\"projects\":0,\"used\":0},\"out_of_credits\":false,\"pack_credits\":0,\"plan\":{\"credit_packs\":false,\"id\":\"free\",\"included_credits\":25000,\"name\":\"Free\",\"price_cents\":0,\"unlimited\":false},\"rates\":{\"image_diff\":10,\"rendered_page\":20,\"snapshot_check\":1,\"text_diff\":5},\"reloads_paused\":false,\"reloads_this_month\":0,\"renews_at\":\"<time:1>\",\"unlimited\":false},\"usage_history\":[]}",
99
"type": "text"
1010
}
1111
],
@@ -37,11 +37,11 @@
3737
},
3838
{
3939
"done": false,
40-
"key": "add_to_ci"
40+
"key": "connect_agent"
4141
},
4242
{
4343
"done": false,
44-
"key": "connect_agent"
44+
"key": "add_to_ci"
4545
},
4646
{
4747
"done": false,

0 commit comments

Comments
 (0)