Skip to content

Commit

Permalink
fix(ai-explain): pause ai-explain
Browse files Browse the repository at this point in the history
Due to a controversial disscussion of this feature we're pausing it
not. We'll look into it after the weekend.
  • Loading branch information
fiji-flo committed Jul 1, 2023
1 parent 3dffdb1 commit 1bf2856
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client/src/document/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLocation, useParams } from "react-router-dom";
import { useIsServer, useLocale } from "../hooks";
import { Doc } from "../../../libs/types/document";
import { initPlayIframe } from "../playground/utils";
import { addExplainButton } from "./code/ai-explain";
// import { addExplainButton } from "./code/ai-explain";
import {
addBreakoutButton,
getCodeAndNodesForIframe,
Expand Down Expand Up @@ -85,7 +85,8 @@ export function useCopyExamplesToClipboardAndAIExplain(doc: Doc | undefined) {
.querySelectorAll("div.code-example pre:not(.hidden)")
.forEach((element) => {
const header = element.parentElement?.querySelector(".example-header");
addExplainButton(header, element);
// Paused for now
// addExplainButton(header, element);
if (!navigator.clipboard) {
console.log(
"Copy-to-clipboard disabled because your browser does not appear to support it."
Expand Down

0 comments on commit 1bf2856

Please sign in to comment.