Skip to content

Commit

Permalink
Merge branch 'main' into 312-api-channel-proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
ghengeveld authored Aug 29, 2024
2 parents 9277872 + b781bdf commit 67b13f2
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
# v1.8.0 (Thu Aug 29 2024)

#### 🚀 Enhancement

- Add `paramKey: "chromatic"` to allow disabling the VTA panel through story parameters [#334](https://github.com/chromaui/addon-visual-tests/pull/334) ([@mellm0](https://github.com/mellm0))

#### Authors: 1

- Mell ([@mellm0](https://github.com/mellm0))

---

# v1.7.0 (Tue Aug 20 2024)

#### 🚀 Enhancement
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chromatic-com/storybook",
"version": "1.7.0",
"version": "1.8.0",
"description": "Catch unexpected visual changes & UI bugs in your stories",
"keywords": [
"storybook-addons",
Expand Down
1 change: 1 addition & 0 deletions src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ export const SELECTED_BROWSER_ID = `${ADDON_ID}/selectedBrowserId`;
export const TELEMETRY = `${ADDON_ID}/telemetry`;
export const ENABLE_FILTER = `${ADDON_ID}/enableFilter`;
export const REMOVE_ADDON = `${ADDON_ID}/removeAddon`;
export const PARAM_KEY = "chromatic";

export const FETCH_ABORTED = `${ADDON_ID}/ChannelFetch/aborted`;
export const FETCH_REQUEST = `${ADDON_ID}ChannelFetch/request`;
Expand Down
3 changes: 2 additions & 1 deletion src/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import React from "react";

import { SidebarBottom } from "./components/SidebarBottom";
import { SidebarTop } from "./components/SidebarTop";
import { ADDON_ID, PANEL_ID, SIDEBAR_BOTTOM_ID, SIDEBAR_TOP_ID } from "./constants";
import { ADDON_ID, PANEL_ID, PARAM_KEY, SIDEBAR_BOTTOM_ID, SIDEBAR_TOP_ID } from "./constants";
import { Panel } from "./Panel";

let heartbeatTimeout: NodeJS.Timeout;
Expand All @@ -18,6 +18,7 @@ addons.register(ADDON_ID, (api) => {
addons.add(PANEL_ID, {
type: Addon_TypesEnum.PANEL,
title: "Visual Tests",
paramKey: PARAM_KEY,
match: ({ viewMode }) => viewMode === "story",
render: ({ active }) => <Panel active={!!active} api={api} />,
});
Expand Down

0 comments on commit 67b13f2

Please sign in to comment.