From 241c385e82f3757b95b045423fbb01e512772bfd Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Tue, 7 Nov 2023 19:40:26 +0300 Subject: [PATCH 01/18] fix: change the classname and remove extra code --- src/constants.ts | 2 -- src/utils/dom-utils/addDescriptionGenerator.ts | 6 ++---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index a2183cfe..f087bdd4 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -32,8 +32,6 @@ export const OPEN_SAUCED_EMOJIS_ENDPOINT = `${OPEN_SAUCED_API_ENDPOINT}/emojis`; export const GITHUB_PROFILE_MENU_SELECTOR = ".p-nickname.vcard-username.d-block"; export const GITHUB_PROFILE_EDIT_MENU_SELECTOR = "button.js-profile-editable-edit-button"; export const GITHUB_PR_COMMENT_HEADER_SELECTOR = "timeline-comment-header clearfix d-flex"; -export const GITHUB_NEW_PR_COMMENT_EDITOR_SELECTOR = "flex-nowrap d-none d-md-inline-block mr-md-0 mr-3"; -export const GITHUB_PR_COMMENT_EDITOR_SELECTOR = "flex-nowrap d-inline-block mr-3"; export const GITHUB_REVIEW_SUGGESTION_SELECTOR = "js-suggestion-button-placeholder"; export const GITHUB_REPO_ACTIONS_SELECTOR = ".pagehead-actions"; export const GITHUB_PR_COMMENT_TEXT_AREA_SELECTOR = "pull_request[body]"; diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index 1c75f2b0..44595412 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -1,6 +1,4 @@ import { DescriptionGeneratorButton } from "../../content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton"; -import { GITHUB_NEW_PR_COMMENT_EDITOR_SELECTOR, GITHUB_PR_COMMENT_EDITOR_SELECTOR } from "../../constants"; -import { isGithubPullRequestPage } from "../urlMatchers"; import { isPublicRepository } from "../fetchGithubAPIData"; import { SettingsConfig } from "../../popup/pages/settings"; @@ -23,8 +21,8 @@ const injectDescriptionGeneratorButton = async () => { } } - const selector = isGithubPullRequestPage(window.location.href) ? GITHUB_PR_COMMENT_EDITOR_SELECTOR : GITHUB_NEW_PR_COMMENT_EDITOR_SELECTOR; - const commentFormatRow = document.getElementsByClassName(selector)[0]; + const prActionsClassName = "ActionBar-item-container"; + const commentFormatRow = document.getElementsByClassName(prActionsClassName)[0]; const addGeneratorButton = DescriptionGeneratorButton(); commentFormatRow.insertBefore(addGeneratorButton, commentFormatRow.firstChild); From c654b826d2443adc6cffbeaa61970b6294596ca6 Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Tue, 7 Nov 2023 20:10:04 +0300 Subject: [PATCH 02/18] fix: elemenet to the dom if it's not added already --- src/utils/dom-utils/addDescriptionGenerator.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index 44595412..398a678f 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -22,10 +22,13 @@ const injectDescriptionGeneratorButton = async () => { } const prActionsClassName = "ActionBar-item-container"; - const commentFormatRow = document.getElementsByClassName(prActionsClassName)[0]; + const actionBars = document.getElementsByClassName(prActionsClassName); + const actionBarsArray = Array.from(actionBars); const addGeneratorButton = DescriptionGeneratorButton(); + if (!actionBarsArray[0].querySelector("#ai-description-button")) { + actionBarsArray[0].insertBefore(addGeneratorButton, actionBarsArray[0].firstChild); - commentFormatRow.insertBefore(addGeneratorButton, commentFormatRow.firstChild); + } }; export default injectDescriptionGeneratorButton; From 84932392d19bbe2a84436fa30669f5c286d65129 Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Tue, 7 Nov 2023 20:20:01 +0300 Subject: [PATCH 03/18] chore: lint and format --- src/utils/dom-utils/addDescriptionGenerator.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index 398a678f..cb3ef2cf 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -25,10 +25,17 @@ const injectDescriptionGeneratorButton = async () => { const actionBars = document.getElementsByClassName(prActionsClassName); const actionBarsArray = Array.from(actionBars); const addGeneratorButton = DescriptionGeneratorButton(); + const firstChild = actionBarsArray[0].firstChild; if (!actionBarsArray[0].querySelector("#ai-description-button")) { - actionBarsArray[0].insertBefore(addGeneratorButton, actionBarsArray[0].firstChild); + actionBarsArray[0].insertBefore(addGeneratorButton, actionBar.firstChild); } + + actionBarsArray.forEach(actionBar => { + if (!actionBar.querySelector("#ai-description-button")) { + actionBar.insertBefore(addGeneratorButton, actionBar.firstChild); + } + }); }; export default injectDescriptionGeneratorButton; From 50486f1ea8364d62f5a937b3632481a0f32a713d Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Wed, 8 Nov 2023 07:08:39 +0300 Subject: [PATCH 04/18] chore: fix the build --- src/utils/dom-utils/addDescriptionGenerator.ts | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index cb3ef2cf..6a1d679a 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -25,17 +25,11 @@ const injectDescriptionGeneratorButton = async () => { const actionBars = document.getElementsByClassName(prActionsClassName); const actionBarsArray = Array.from(actionBars); const addGeneratorButton = DescriptionGeneratorButton(); - const firstChild = actionBarsArray[0].firstChild; - if (!actionBarsArray[0].querySelector("#ai-description-button")) { - actionBarsArray[0].insertBefore(addGeneratorButton, actionBar.firstChild); + const firstPrDescription = actionBarsArray[0]; + if (!firstPrDescription.querySelector("#ai-description-button")) { + firstPrDescription.insertBefore(addGeneratorButton, firstPrDescription.firstChild); } - - actionBarsArray.forEach(actionBar => { - if (!actionBar.querySelector("#ai-description-button")) { - actionBar.insertBefore(addGeneratorButton, actionBar.firstChild); - } - }); }; export default injectDescriptionGeneratorButton; From 22a7a6d3d57253ea33a2a8127e0df730d4f3caaa Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Thu, 9 Nov 2023 18:10:35 +0300 Subject: [PATCH 05/18] chore: refactor the code --- src/utils/dom-utils/addDescriptionGenerator.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index 6a1d679a..4db70cb3 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -21,13 +21,11 @@ const injectDescriptionGeneratorButton = async () => { } } - const prActionsClassName = "ActionBar-item-container"; - const actionBars = document.getElementsByClassName(prActionsClassName); - const actionBarsArray = Array.from(actionBars); - const addGeneratorButton = DescriptionGeneratorButton(); - const firstPrDescription = actionBarsArray[0]; + const firstPrDescription = document.querySelector(".ActionBar-item-container"); + + if (firstPrDescription && !firstPrDescription.querySelector("#ai-description-button")) { + const addGeneratorButton = DescriptionGeneratorButton(); - if (!firstPrDescription.querySelector("#ai-description-button")) { firstPrDescription.insertBefore(addGeneratorButton, firstPrDescription.firstChild); } }; From cc7427c6fba1ac8526b77edc1e9c6457cb95725f Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Thu, 9 Nov 2023 18:17:01 +0300 Subject: [PATCH 06/18] chore: lint and format --- src/utils/dom-utils/addDescriptionGenerator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index 4db70cb3..81eb9653 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -22,7 +22,7 @@ const injectDescriptionGeneratorButton = async () => { } const firstPrDescription = document.querySelector(".ActionBar-item-container"); - + if (firstPrDescription && !firstPrDescription.querySelector("#ai-description-button")) { const addGeneratorButton = DescriptionGeneratorButton(); From bc44a669e6dfa892431739069b27baa7c04d883f Mon Sep 17 00:00:00 2001 From: Nick Taylor Date: Thu, 9 Nov 2023 16:42:27 +0000 Subject: [PATCH 07/18] chore(patch): release 1.14.3-beta.1 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.14.3-beta.1](https://github.com/open-sauced/ai/compare/v1.14.2...v1.14.3-beta.1) (2023-11-09) ### 🐛 Bug Fixes * change the classname and remove extra code ([241c385](https://github.com/open-sauced/ai/commit/241c385e82f3757b95b045423fbb01e512772bfd)) * elemenet to the dom if it's not added already ([c654b82](https://github.com/open-sauced/ai/commit/c654b826d2443adc6cffbeaa61970b6294596ca6)) --- CHANGELOG.md | 8 ++++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2c6d6304..fdf8c4c2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ > All notable changes to this project will be documented in this file +## [1.14.3-beta.1](https://github.com/open-sauced/ai/compare/v1.14.2...v1.14.3-beta.1) (2023-11-09) + + +### 🐛 Bug Fixes + +* change the classname and remove extra code ([241c385](https://github.com/open-sauced/ai/commit/241c385e82f3757b95b045423fbb01e512772bfd)) +* elemenet to the dom if it's not added already ([c654b82](https://github.com/open-sauced/ai/commit/c654b826d2443adc6cffbeaa61970b6294596ca6)) + ## [1.14.2](https://github.com/open-sauced/ai/compare/v1.14.1...v1.14.2) (2023-11-06) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index db15227e..f9f94a9a 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "opensauced-browser-extension", - "version": "1.14.2", + "version": "1.14.3-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opensauced-browser-extension", - "version": "1.14.2", + "version": "1.14.3-beta.1", "dependencies": { "date-fns": "^2.30.0", "gpt-tokenizer": "^1.0.5", diff --git a/package.json b/package.json index 2464b7d3..68fa5406 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensauced-browser-extension", "private": true, - "version": "1.14.2", + "version": "1.14.3-beta.1", "files": [ "dist" ], From d0de1e28f259054065151d1980721b14e9253826 Mon Sep 17 00:00:00 2001 From: Jasmine <105261487+codewithjazzy@users.noreply.github.com> Date: Thu, 9 Nov 2023 11:32:47 -0800 Subject: [PATCH 08/18] Renamed all content-scripts selectors as classes --- src/constants.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index f087bdd4..ce900859 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -29,15 +29,15 @@ export const OPEN_SAUCED_HIGHLIGHTS_LIST_ENDPOINT = `${OPEN_SAUCED_API_ENDPOINT} export const OPEN_SAUCED_EMOJIS_ENDPOINT = `${OPEN_SAUCED_API_ENDPOINT}/emojis`; // Content-scripts selectors -export const GITHUB_PROFILE_MENU_SELECTOR = ".p-nickname.vcard-username.d-block"; -export const GITHUB_PROFILE_EDIT_MENU_SELECTOR = "button.js-profile-editable-edit-button"; -export const GITHUB_PR_COMMENT_HEADER_SELECTOR = "timeline-comment-header clearfix d-flex"; -export const GITHUB_REVIEW_SUGGESTION_SELECTOR = "js-suggestion-button-placeholder"; -export const GITHUB_REPO_ACTIONS_SELECTOR = ".pagehead-actions"; -export const GITHUB_PR_COMMENT_TEXT_AREA_SELECTOR = "pull_request[body]"; -export const GITHUB_PR_SUGGESTION_TEXT_AREA_SELECTOR = "[name='comment[body]']"; -export const GITHUB_PR_BASE_BRANCH_SELECTOR = "css-truncate css-truncate-target"; -export const LINKEDIN_PROJECT_FORM_SELECTOR = ".artdeco-text-input--input"; +export const GITHUB_PROFILE_MENU_CLASS = ".p-nickname.vcard-username.d-block"; +export const GITHUB_PROFILE_EDIT_MENU_CLASS = "button.js-profile-editable-edit-button"; +export const GITHUB_PR_COMMENT_HEADER_CLASS = "timeline-comment-header clearfix d-flex"; +export const GITHUB_REVIEW_SUGGESTION_CLASS = "js-suggestion-button-placeholder"; +export const GITHUB_REPO_ACTIONS_CLASS = ".pagehead-actions"; +export const GITHUB_PR_COMMENT_TEXT_AREA_CLASS = "pull_request[body]"; +export const GITHUB_PR_SUGGESTION_TEXT_AREA_CLASS = "[name='comment[body]']"; +export const GITHUB_PR_BASE_BRANCH_CLASS = "css-truncate css-truncate-target"; +export const LINKEDIN_PROJECT_FORM_CLASS = ".artdeco-text-input--input"; // External Links export const EXTERNAL_RESOURCES = [ From 3087cdfc6d355d40ada1723042f42713dcacf2dc Mon Sep 17 00:00:00 2001 From: Jasmine <105261487+codewithjazzy@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:01:15 -0800 Subject: [PATCH 09/18] Resolved renaming issue and updated code base --- src/constants.ts | 8 ++++---- .../components/AICodeReview/AICodeReviewMenu.ts | 4 ++-- .../GenerateAIDescription/DescriptionGeneratorButton.ts | 4 ++-- src/utils/dom-utils/addPRToHighlights.ts | 4 ++-- src/utils/dom-utils/changeSuggestorButton.ts | 4 ++-- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index ce900859..470753b3 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -29,15 +29,15 @@ export const OPEN_SAUCED_HIGHLIGHTS_LIST_ENDPOINT = `${OPEN_SAUCED_API_ENDPOINT} export const OPEN_SAUCED_EMOJIS_ENDPOINT = `${OPEN_SAUCED_API_ENDPOINT}/emojis`; // Content-scripts selectors -export const GITHUB_PROFILE_MENU_CLASS = ".p-nickname.vcard-username.d-block"; +export const GITHUB_PROFILE_MENU_SELECTOR = ".p-nickname.vcard-username.d-block"; export const GITHUB_PROFILE_EDIT_MENU_CLASS = "button.js-profile-editable-edit-button"; export const GITHUB_PR_COMMENT_HEADER_CLASS = "timeline-comment-header clearfix d-flex"; export const GITHUB_REVIEW_SUGGESTION_CLASS = "js-suggestion-button-placeholder"; -export const GITHUB_REPO_ACTIONS_CLASS = ".pagehead-actions"; +export const GITHUB_REPO_ACTIONS_SELECTOR = ".pagehead-actions"; export const GITHUB_PR_COMMENT_TEXT_AREA_CLASS = "pull_request[body]"; -export const GITHUB_PR_SUGGESTION_TEXT_AREA_CLASS = "[name='comment[body]']"; +export const GITHUB_PR_SUGGESTION_TEXT_AREA_Attribute = "[name='comment[body]']"; export const GITHUB_PR_BASE_BRANCH_CLASS = "css-truncate css-truncate-target"; -export const LINKEDIN_PROJECT_FORM_CLASS = ".artdeco-text-input--input"; +export const LINKEDIN_PROJECT_FORM_SELECTOR = ".artdeco-text-input--input"; // External Links export const EXTERNAL_RESOURCES = [ diff --git a/src/content-scripts/components/AICodeReview/AICodeReviewMenu.ts b/src/content-scripts/components/AICodeReview/AICodeReviewMenu.ts index 9c52ba7a..dc5c05a2 100644 --- a/src/content-scripts/components/AICodeReview/AICodeReviewMenu.ts +++ b/src/content-scripts/components/AICodeReview/AICodeReviewMenu.ts @@ -1,4 +1,4 @@ -import { GITHUB_PR_SUGGESTION_TEXT_AREA_SELECTOR } from "../../../constants"; +import { GITHUB_PR_SUGGESTION_TEXT_AREA_Attribute } from "../../../constants"; import { insertTextAtCursor } from "../../../utils/ai-utils/cursorPositionInsert"; import { DescriptionConfig, @@ -130,7 +130,7 @@ const handleSubmit = async ( return console.error("No description was generated!"); } const textArea = commentNode.querySelector( - GITHUB_PR_SUGGESTION_TEXT_AREA_SELECTOR, + GITHUB_PR_SUGGESTION_TEXT_AREA_Attribute, )!; insertTextAtCursor(textArea as HTMLTextAreaElement, suggestionStream); diff --git a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts index dd6a1a61..8c65d4e0 100644 --- a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts +++ b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts @@ -3,7 +3,7 @@ import openSaucedLogoIcon from "../../../assets/opensauced-icon.svg"; import { getPullRequestAPIURL } from "../../../utils/urlMatchers"; import { getDescriptionContext, isOutOfContextBounds } from "../../../utils/fetchGithubAPIData"; import { generateDescription } from "../../../utils/ai-utils/openai"; -import { GITHUB_PR_COMMENT_TEXT_AREA_SELECTOR } from "../../../constants"; +import { GITHUB_PR_COMMENT_TEXT_AREA_CLASS } from "../../../constants"; import { insertTextAtCursor } from "../../../utils/ai-utils/cursorPositionInsert"; import { getAIDescriptionConfig } from "../../../utils/ai-utils/descriptionconfig"; import { getAuthToken, isLoggedIn, optLogIn } from "../../../utils/checkAuthentication"; @@ -50,7 +50,7 @@ const handleSubmit = async () => { logo.classList.toggle("animate-spin"); button.classList.toggle("pointer-events-none"); - const textArea = document.getElementsByName(GITHUB_PR_COMMENT_TEXT_AREA_SELECTOR)[0] as HTMLTextAreaElement; + const textArea = document.getElementsByName(GITHUB_PR_COMMENT_TEXT_AREA_CLASS)[0] as HTMLTextAreaElement; insertTextAtCursor(textArea, descriptionStream); } catch (error: unknown) { diff --git a/src/utils/dom-utils/addPRToHighlights.ts b/src/utils/dom-utils/addPRToHighlights.ts index 4d2f5792..26709de7 100644 --- a/src/utils/dom-utils/addPRToHighlights.ts +++ b/src/utils/dom-utils/addPRToHighlights.ts @@ -1,5 +1,5 @@ import { AddPRToHighlightsButton } from "../../content-scripts/components/AddPRToHighlights/AddPRToHighlightsButton"; -import { GITHUB_PR_COMMENT_HEADER_SELECTOR } from "../../constants"; +import { GITHUB_PR_COMMENT_HEADER_CLASS } from "../../constants"; import { isLoggedIn } from "../checkAuthentication"; import { isPublicRepository } from "../fetchGithubAPIData"; @@ -9,7 +9,7 @@ const injectAddPRToHighlightsButton = async () => { } const commentFormatRow = document.getElementsByClassName( - GITHUB_PR_COMMENT_HEADER_SELECTOR, + GITHUB_PR_COMMENT_HEADER_CLASS, )[0]; const addPRToHighlightsButton = AddPRToHighlightsButton(); diff --git a/src/utils/dom-utils/changeSuggestorButton.ts b/src/utils/dom-utils/changeSuggestorButton.ts index d91ccdda..5d70e334 100644 --- a/src/utils/dom-utils/changeSuggestorButton.ts +++ b/src/utils/dom-utils/changeSuggestorButton.ts @@ -1,5 +1,5 @@ import { AICodeReviewButton } from "../../content-scripts/components/AICodeReview/AICodeReviewButton"; -import { GITHUB_REVIEW_SUGGESTION_SELECTOR } from "../../constants"; +import { GITHUB_REVIEW_SUGGESTION_CLASS } from "../../constants"; import { isPublicRepository } from "../fetchGithubAPIData"; import { SettingsConfig } from "../../popup/pages/settings"; @@ -22,7 +22,7 @@ const injectChangeSuggestorButton = async (commentNode: HTMLElement) => { } } - const suggestChangesIcon = commentNode.getElementsByClassName(GITHUB_REVIEW_SUGGESTION_SELECTOR)[0]; + const suggestChangesIcon = commentNode.getElementsByClassName(GITHUB_REVIEW_SUGGESTION_CLASS)[0]; const changeSuggestorButton = AICodeReviewButton(commentNode); if (suggestChangesIcon.querySelector("#os-ai-change-gen")) { From f1c29ff9e219c46a768bc46b22553bb8a436e6c1 Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Fri, 12 Jan 2024 09:59:22 +0300 Subject: [PATCH 10/18] fix: chunk processing in Chat component (#289) * fix: chunk processing in Chat component. * chore: format and lint the code --- src/repo-query/pages/chat.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/repo-query/pages/chat.tsx b/src/repo-query/pages/chat.tsx index 2b40cd5c..7717bc45 100644 --- a/src/repo-query/pages/chat.tsx +++ b/src/repo-query/pages/chat.tsx @@ -18,7 +18,8 @@ export const Chat = ({ ownerName, repoName }: { ownerName: string, repoName: str const processChunk = (chunk: string) => { const chunkLines = chunk.split("\n"); - const [eventLine, dataLine] = chunkLines; + const indexOfEvent = chunkLines.findIndex(e => e.includes("event: ")); + const [eventLine, dataLine] = [chunkLines[indexOfEvent], chunkLines[indexOfEvent + 1]]; const event = eventLine.split(": ")[1]; let data:any; @@ -26,7 +27,7 @@ export const Chat = ({ ownerName, repoName }: { ownerName: string, repoName: str try { data = JSON.parse(dataLine.split(": ")[1]); } catch (e) { - console.error(dataLine); + console.error("The recieved data line", dataLine); // remove quotes from string data = dataLine.split("data: ")[1].substring(1, dataLine.split("data: ")[1].length - 2); From a6279eaea274922b16b8854ab7b4fb39b66de69c Mon Sep 17 00:00:00 2001 From: Ayu Adiati <45172775+adiati98@users.noreply.github.com> Date: Fri, 12 Jan 2024 07:59:55 +0100 Subject: [PATCH 11/18] fix: add `.gitattributes` file and normalize all the line endings (#301) * Add .gitattributes file * Add LF normalization setting for .ts files * Add LF normalization setting for .tsx files * feat: add line endings rules for .js .json and .md --- .gitattributes | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..b5733b4b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,6 @@ +# Explicitly declare text files you want to always be normalized and converted to native line endings on checkout. +*.ts text eol=lf +*.tsx text eol=lf +*.js text eol=lf +*.json text eol=lf +*.md text eol=lf From 2f85bba220538f2b36a1ba6190b68a846297edcc Mon Sep 17 00:00:00 2001 From: Ayu Adiati <45172775+adiati98@users.noreply.github.com> Date: Fri, 12 Jan 2024 07:01:04 +0000 Subject: [PATCH 12/18] chore(patch): release 1.14.3-beta.2 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.14.3-beta.2](https://github.com/open-sauced/ai/compare/v1.14.3-beta.1...v1.14.3-beta.2) (2024-01-12) ### 🐛 Bug Fixes * add `.gitattributes` file and normalize all the line endings ([#301](https://github.com/open-sauced/ai/issues/301)) ([a6279ea](https://github.com/open-sauced/ai/commit/a6279eaea274922b16b8854ab7b4fb39b66de69c)) * chunk processing in Chat component ([#289](https://github.com/open-sauced/ai/issues/289)) ([f1c29ff](https://github.com/open-sauced/ai/commit/f1c29ff9e219c46a768bc46b22553bb8a436e6c1)) --- CHANGELOG.md | 8 ++++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fdf8c4c2..1daf1f0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,14 @@ > All notable changes to this project will be documented in this file +## [1.14.3-beta.2](https://github.com/open-sauced/ai/compare/v1.14.3-beta.1...v1.14.3-beta.2) (2024-01-12) + + +### 🐛 Bug Fixes + +* add `.gitattributes` file and normalize all the line endings ([#301](https://github.com/open-sauced/ai/issues/301)) ([a6279ea](https://github.com/open-sauced/ai/commit/a6279eaea274922b16b8854ab7b4fb39b66de69c)) +* chunk processing in Chat component ([#289](https://github.com/open-sauced/ai/issues/289)) ([f1c29ff](https://github.com/open-sauced/ai/commit/f1c29ff9e219c46a768bc46b22553bb8a436e6c1)) + ## [1.14.3-beta.1](https://github.com/open-sauced/ai/compare/v1.14.2...v1.14.3-beta.1) (2023-11-09) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index f9f94a9a..b1a7c45e 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "opensauced-browser-extension", - "version": "1.14.3-beta.1", + "version": "1.14.3-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opensauced-browser-extension", - "version": "1.14.3-beta.1", + "version": "1.14.3-beta.2", "dependencies": { "date-fns": "^2.30.0", "gpt-tokenizer": "^1.0.5", diff --git a/package.json b/package.json index 68fa5406..45f6ced8 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensauced-browser-extension", "private": true, - "version": "1.14.3-beta.1", + "version": "1.14.3-beta.2", "files": [ "dist" ], From ba5cef65dad7c2bc8340e274195b8a5b37e57b4f Mon Sep 17 00:00:00 2001 From: Ayu Adiati <45172775+adiati98@users.noreply.github.com> Date: Fri, 12 Jan 2024 09:02:17 +0100 Subject: [PATCH 13/18] fix: Link to Usage Guide and Update README (#298) * fix: link to usage guide on README and update Documentation section for better read * fix: link to Docs in constants.ts * docs(README.md): Update Contributing and Community sections by adding more info for clarification * fix(README.md): Title capitalizations * chores(constants.ts): Add semicolon to fix lint problem --- README.md | 28 +++++++++++++++++----------- src/constants.ts | 10 ++++++++-- 2 files changed, 25 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 9b0080d5..2ce5b251 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,12 @@ Leverage AI to generate pull request descriptions based on the diff & commit mes ## Documentation -The developer documentation for the project can be found [here](./docs/). For a usage guide, click [here](https://docs.opensauced.pizza/chrome-extension/introduction-to-the-chrome-extension/). +You can find the documentation for the Chrome extension below: -## Running the project locally +- [Developer documentation](./docs/) for the project +- [Usage guide](https://docs.opensauced.pizza/tools/chrome-extension/introduction-to-the-chrome-extension/) + +## Running the Project Locally To run the project, you'll need the following software binaries installed on your development machines: @@ -38,32 +41,33 @@ To install the project dependencies: npm ci ``` +To run a local instance of the project on: -To run a local instance of the project: - -### On development environment +### Development Environment ```shell npm run dev ``` -### On Production environment +### Production Environment ```shell npm run build npm run preview ``` +## Installing the Local Build on a Chromium-Based Browser: -## Installing the local build on a Chromium based browser: After running the above commands, -1. Navigate to `chrome://extensions`. + +1. Navigate to `chrome://extensions`. 2. Enable the `Developer Mode`. 3. Select `Load unpacked` and choose the generated `dist` directory from the project folder to install it. You should now have the extension installed and running. ## 🙌🏼 Core Team +

@@ -79,7 +83,9 @@ You should now have the extension installed and running. ## 🤝 Contributing -We encourage you to contribute to OpenSauced! Please check out the [Contributing guide](https://docs.opensauced.pizza/contributing/introduction-to-contributing/) for guidelines about how to proceed. +_We encourage contributors to open issues or take a look at the [Bugs](https://github.com/orgs/open-sauced/projects/6). If you would like to find **good first issues**, please check out the `#good-first-issues` channel in our [Discord](https://discord.gg/opensauced)._ + +We encourage you to contribute to OpenSauced! Please check out the [Contributing Guide](https://docs.opensauced.pizza/contributing/introduction-to-contributing/) for guidelines about how to self-assign an issue and how to get started. We have a commit utility called [@open-sauced/conventional-commit](https://github.com/open-sauced/conventional-commit) that helps you write your commits in a way that is easy to understand and process by others. @@ -91,12 +97,12 @@ The `beta` branch is the default branch. We squash & merge PRs to the `beta` bra A merge to `beta` will trigger a beta release. A merge to `main` will trigger a full release. -Make sure to checkout the beta branch for the latest changes, and follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification when writing commit messages. +Make sure to checkout the `beta` branch for the latest changes, and follow the [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/) specification when writing commit messages. ## 🍕 Community Got Questions? Join the conversation in our [Discord](https://discord.gg/U2peSNf23P). -Find Open Sauced videos and release overviews on our [YouTube Channel](https://www.youtube.com/channel/UCklWxKrTti61ZCROE1e5-MQ). +Find Open Sauced videos and release overviews on our [YouTube Channel](https://www.youtube.com/channel/UCklWxKrTti61ZCROE1e5-MQ), and check out the resources on our [Dev.to org](https://dev.to/opensauced). ## ⚖️ LICENSE diff --git a/src/constants.ts b/src/constants.ts index 470753b3..67875aef 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -41,7 +41,13 @@ export const LINKEDIN_PROJECT_FORM_SELECTOR = ".artdeco-text-input--input"; // External Links export const EXTERNAL_RESOURCES = [ - { link: "https://docs.opensauced.pizza/chrome-extension/introduction-to-the-chrome-extension/", key: "Docs" }, + { + link: "https://docs.opensauced.pizza/tools/chrome-extension/introduction-to-the-chrome-extension/", + key: "Docs", + }, { link: "https://github.com/open-sauced/ai/issues", key: "Issues" }, - { link: "https://github.com/orgs/open-sauced/discussions", key: "Discussions" }, + { + link: "https://github.com/orgs/open-sauced/discussions", + key: "Discussions", + }, ]; From 57ff4f1d61978a276664b564e7ac598cb514c18a Mon Sep 17 00:00:00 2001 From: Ayu Adiati <45172775+adiati98@users.noreply.github.com> Date: Fri, 12 Jan 2024 08:03:25 +0000 Subject: [PATCH 14/18] chore(patch): release 1.14.3-beta.3 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.14.3-beta.3](https://github.com/open-sauced/ai/compare/v1.14.3-beta.2...v1.14.3-beta.3) (2024-01-12) ### 🐛 Bug Fixes * Link to Usage Guide and Update README ([#298](https://github.com/open-sauced/ai/issues/298)) ([ba5cef6](https://github.com/open-sauced/ai/commit/ba5cef65dad7c2bc8340e274195b8a5b37e57b4f)) --- CHANGELOG.md | 7 +++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1daf1f0e..ee5a4789 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ > All notable changes to this project will be documented in this file +## [1.14.3-beta.3](https://github.com/open-sauced/ai/compare/v1.14.3-beta.2...v1.14.3-beta.3) (2024-01-12) + + +### 🐛 Bug Fixes + +* Link to Usage Guide and Update README ([#298](https://github.com/open-sauced/ai/issues/298)) ([ba5cef6](https://github.com/open-sauced/ai/commit/ba5cef65dad7c2bc8340e274195b8a5b37e57b4f)) + ## [1.14.3-beta.2](https://github.com/open-sauced/ai/compare/v1.14.3-beta.1...v1.14.3-beta.2) (2024-01-12) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index b1a7c45e..8fddd6a8 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "opensauced-browser-extension", - "version": "1.14.3-beta.2", + "version": "1.14.3-beta.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opensauced-browser-extension", - "version": "1.14.3-beta.2", + "version": "1.14.3-beta.3", "dependencies": { "date-fns": "^2.30.0", "gpt-tokenizer": "^1.0.5", diff --git a/package.json b/package.json index 45f6ced8..884a5d70 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensauced-browser-extension", "private": true, - "version": "1.14.3-beta.2", + "version": "1.14.3-beta.3", "files": [ "dist" ], From a30380b1def14b97cf28f3945a1608cca6e3ba54 Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Fri, 12 Jan 2024 13:07:00 +0300 Subject: [PATCH 15/18] feat: enable AI description generator on comments (#285) * feat: show PR description generator on comments * feat: generalize the ai description generator * chore: add inject on new page * chore: lint the files * chore: format * chore: format * Update GitHub constants and fix text area bug in DescriptionGeneratorButton * chore: format * feat: enable comments button with focus and blur field * chore: format lint --- src/constants.ts | 1 - .../DescriptionGeneratorButton.ts | 29 +++++++++---------- src/content-scripts/github.ts | 1 + src/utils/ai-utils/cursorPositionInsert.ts | 5 +++- .../dom-utils/addDescriptionGenerator.ts | 12 ++++---- 5 files changed, 25 insertions(+), 23 deletions(-) diff --git a/src/constants.ts b/src/constants.ts index 67875aef..68fe569e 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -34,7 +34,6 @@ export const GITHUB_PROFILE_EDIT_MENU_CLASS = "button.js-profile-editable-edit-b export const GITHUB_PR_COMMENT_HEADER_CLASS = "timeline-comment-header clearfix d-flex"; export const GITHUB_REVIEW_SUGGESTION_CLASS = "js-suggestion-button-placeholder"; export const GITHUB_REPO_ACTIONS_SELECTOR = ".pagehead-actions"; -export const GITHUB_PR_COMMENT_TEXT_AREA_CLASS = "pull_request[body]"; export const GITHUB_PR_SUGGESTION_TEXT_AREA_Attribute = "[name='comment[body]']"; export const GITHUB_PR_BASE_BRANCH_CLASS = "css-truncate css-truncate-target"; export const LINKEDIN_PROJECT_FORM_SELECTOR = ".artdeco-text-input--input"; diff --git a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts index 8c65d4e0..12803465 100644 --- a/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts +++ b/src/content-scripts/components/GenerateAIDescription/DescriptionGeneratorButton.ts @@ -3,14 +3,13 @@ import openSaucedLogoIcon from "../../../assets/opensauced-icon.svg"; import { getPullRequestAPIURL } from "../../../utils/urlMatchers"; import { getDescriptionContext, isOutOfContextBounds } from "../../../utils/fetchGithubAPIData"; import { generateDescription } from "../../../utils/ai-utils/openai"; -import { GITHUB_PR_COMMENT_TEXT_AREA_CLASS } from "../../../constants"; import { insertTextAtCursor } from "../../../utils/ai-utils/cursorPositionInsert"; import { getAIDescriptionConfig } from "../../../utils/ai-utils/descriptionconfig"; import { getAuthToken, isLoggedIn, optLogIn } from "../../../utils/checkAuthentication"; -export const DescriptionGeneratorButton = () => { +export const DescriptionGeneratorButton = (number: number) => { const descriptionGeneratorButton = createHtmlElement("a", { - id: "ai-description-button", + id: `ai-description-button-${number}`, innerHTML: ` @@ -21,41 +20,39 @@ export const DescriptionGeneratorButton = () => { return descriptionGeneratorButton; }; -const handleSubmit = async () => { - const logo = document.getElementById("ai-description-button-logo"); - const button = document.getElementById("ai-description-button"); +const handleSubmit = async (event: Event) => { + const button = event.currentTarget as HTMLElement; + const logo = button.querySelector("#ai-description-button-logo"); + try { if (!(await isLoggedIn())) { return void optLogIn(); } - if (!logo || !button) { - return; - } - const descriptionConfig = await getAIDescriptionConfig(); if (!descriptionConfig) { return; } - logo.classList.toggle("animate-spin"); + logo?.classList.toggle("animate-spin"); button.classList.toggle("pointer-events-none"); const { protocol, hostname, pathname } = window.location; const descriptionStream = await getAiDescription(`${protocol}//${hostname}${pathname}`); - logo.classList.toggle("animate-spin"); + logo?.classList.toggle("animate-spin"); button.classList.toggle("pointer-events-none"); + const textArea = button.closest(".Box.CommentBox")?.querySelector("textarea"); - const textArea = document.getElementsByName(GITHUB_PR_COMMENT_TEXT_AREA_CLASS)[0] as HTMLTextAreaElement; - - insertTextAtCursor(textArea, descriptionStream); + if (textArea) { + insertTextAtCursor(textArea, descriptionStream); + } } catch (error: unknown) { logo?.classList.toggle("animate-spin"); - button?.classList.toggle("pointer-events-none"); + button.classList.toggle("pointer-events-none"); if (error instanceof Error) { alert(error.message); diff --git a/src/content-scripts/github.ts b/src/content-scripts/github.ts index 1c8ba0aa..26fcc681 100644 --- a/src/content-scripts/github.ts +++ b/src/content-scripts/github.ts @@ -30,6 +30,7 @@ const processGithubPage = async () => { prReviewWatch(injectChangeSuggestorButton, 500); } else if (isGithubPullRequestPage(window.location.href)) { prEditWatch(injectDescriptionGeneratorButton, 500); + void injectDescriptionGeneratorButton(); void injectAddPRToHighlightsButton(); } else if (isGithubProfilePage(window.location.href)) { const username = getGithubUsername(window.location.href); diff --git a/src/utils/ai-utils/cursorPositionInsert.ts b/src/utils/ai-utils/cursorPositionInsert.ts index e9fbcb8d..688db207 100644 --- a/src/utils/ai-utils/cursorPositionInsert.ts +++ b/src/utils/ai-utils/cursorPositionInsert.ts @@ -1,11 +1,14 @@ // This function is used to insert text at the cursor position in the text area export const insertTextAtCursor = (textArea: HTMLTextAreaElement, text: string) => { let length = 0; + + textArea.focus(); const typewriter = setInterval(() => { textArea.setRangeText(text[length++], textArea.selectionStart, textArea.selectionEnd, "end"); if (length >= text.length) { clearInterval(typewriter); - textArea.setRangeText("\n\n_Generated using [OpenSauced](https://opensauced.ai/)._", textArea.selectionStart, textArea.selectionEnd, "end"); + textArea.ownerDocument.execCommand("insertText", false, "\n\n_Generated using [OpenSauced](https://opensauced.ai/)_"); + textArea.blur(); } }, 10); }; diff --git a/src/utils/dom-utils/addDescriptionGenerator.ts b/src/utils/dom-utils/addDescriptionGenerator.ts index 81eb9653..22534a46 100644 --- a/src/utils/dom-utils/addDescriptionGenerator.ts +++ b/src/utils/dom-utils/addDescriptionGenerator.ts @@ -21,13 +21,15 @@ const injectDescriptionGeneratorButton = async () => { } } - const firstPrDescription = document.querySelector(".ActionBar-item-container"); + const firstPrDescription = document.querySelectorAll(".ActionBar-item-container"); - if (firstPrDescription && !firstPrDescription.querySelector("#ai-description-button")) { - const addGeneratorButton = DescriptionGeneratorButton(); + firstPrDescription.forEach((item, index) => { + if (!item.querySelector(`#ai-description-button-${index}`)) { + const addGeneratorButton = DescriptionGeneratorButton(index); - firstPrDescription.insertBefore(addGeneratorButton, firstPrDescription.firstChild); - } + item.insertBefore(addGeneratorButton, item.firstChild); + } + }); }; export default injectDescriptionGeneratorButton; From 82794666d87004bb4b53390135bf0230563e806c Mon Sep 17 00:00:00 2001 From: Abdurrahman Rajab Date: Fri, 12 Jan 2024 10:08:22 +0000 Subject: [PATCH 16/18] chore(minor): release 1.15.0-beta.1 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.15.0-beta.1](https://github.com/open-sauced/ai/compare/v1.14.3-beta.3...v1.15.0-beta.1) (2024-01-12) ### 🍕 Features * enable AI description generator on comments ([#285](https://github.com/open-sauced/ai/issues/285)) ([a30380b](https://github.com/open-sauced/ai/commit/a30380b1def14b97cf28f3945a1608cca6e3ba54)) --- CHANGELOG.md | 7 +++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ee5a4789..7a85ce1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ > All notable changes to this project will be documented in this file +## [1.15.0-beta.1](https://github.com/open-sauced/ai/compare/v1.14.3-beta.3...v1.15.0-beta.1) (2024-01-12) + + +### 🍕 Features + +* enable AI description generator on comments ([#285](https://github.com/open-sauced/ai/issues/285)) ([a30380b](https://github.com/open-sauced/ai/commit/a30380b1def14b97cf28f3945a1608cca6e3ba54)) + ## [1.14.3-beta.3](https://github.com/open-sauced/ai/compare/v1.14.3-beta.2...v1.14.3-beta.3) (2024-01-12) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 8fddd6a8..bf9381b2 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "opensauced-browser-extension", - "version": "1.14.3-beta.3", + "version": "1.15.0-beta.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opensauced-browser-extension", - "version": "1.14.3-beta.3", + "version": "1.15.0-beta.1", "dependencies": { "date-fns": "^2.30.0", "gpt-tokenizer": "^1.0.5", diff --git a/package.json b/package.json index 884a5d70..abd4749e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensauced-browser-extension", "private": true, - "version": "1.14.3-beta.3", + "version": "1.15.0-beta.1", "files": [ "dist" ], From 693d45998dba2cacc18be10b397fdc624668fb03 Mon Sep 17 00:00:00 2001 From: John McBride Date: Wed, 24 Jan 2024 12:52:32 -0700 Subject: [PATCH 17/18] feat: Upgrade to v2 API Signed-off-by: John McBride --- .env.development | 4 ++-- .env.production | 4 ++-- .env.test | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.env.development b/.env.development index ceb179c3..7ef52858 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ VITE_OPEN_SAUCED_INSIGHTS_DOMAIN = "beta.app.opensauced.pizza" -VITE_OPEN_SAUCED_API_ENDPOINT = "https://beta.api.opensauced.pizza/v1" -VITE_OPEN_SAUCED_SUPABASE_ID = "fcqqkxwlntnrtjfbcioz" \ No newline at end of file +VITE_OPEN_SAUCED_API_ENDPOINT = "https://beta.api.opensauced.pizza/v2" +VITE_OPEN_SAUCED_SUPABASE_ID = "fcqqkxwlntnrtjfbcioz" diff --git a/.env.production b/.env.production index 055ccdde..df6b0f36 100644 --- a/.env.production +++ b/.env.production @@ -1,3 +1,3 @@ VITE_OPEN_SAUCED_INSIGHTS_DOMAIN = "app.opensauced.pizza" -VITE_OPEN_SAUCED_API_ENDPOINT = "https://api.opensauced.pizza/v1" -VITE_OPEN_SAUCED_SUPABASE_ID = "ibcwmlhcimymasokhgvn" \ No newline at end of file +VITE_OPEN_SAUCED_API_ENDPOINT = "https://api.opensauced.pizza/v2" +VITE_OPEN_SAUCED_SUPABASE_ID = "ibcwmlhcimymasokhgvn" diff --git a/.env.test b/.env.test index ceb179c3..7ef52858 100644 --- a/.env.test +++ b/.env.test @@ -1,3 +1,3 @@ VITE_OPEN_SAUCED_INSIGHTS_DOMAIN = "beta.app.opensauced.pizza" -VITE_OPEN_SAUCED_API_ENDPOINT = "https://beta.api.opensauced.pizza/v1" -VITE_OPEN_SAUCED_SUPABASE_ID = "fcqqkxwlntnrtjfbcioz" \ No newline at end of file +VITE_OPEN_SAUCED_API_ENDPOINT = "https://beta.api.opensauced.pizza/v2" +VITE_OPEN_SAUCED_SUPABASE_ID = "fcqqkxwlntnrtjfbcioz" From 7ed4c658de9d7a69e265b258234e7d23f941806c Mon Sep 17 00:00:00 2001 From: John McBride Date: Thu, 25 Jan 2024 23:23:36 +0000 Subject: [PATCH 18/18] chore(minor): release 1.15.0-beta.2 on beta channel [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.15.0-beta.2](https://github.com/open-sauced/ai/compare/v1.15.0-beta.1...v1.15.0-beta.2) (2024-01-25) ### 🍕 Features * Upgrade to v2 API ([693d459](https://github.com/open-sauced/ai/commit/693d45998dba2cacc18be10b397fdc624668fb03)) --- CHANGELOG.md | 7 +++++++ npm-shrinkwrap.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7a85ce1a..2b9c4849 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ > All notable changes to this project will be documented in this file +## [1.15.0-beta.2](https://github.com/open-sauced/ai/compare/v1.15.0-beta.1...v1.15.0-beta.2) (2024-01-25) + + +### 🍕 Features + +* Upgrade to v2 API ([693d459](https://github.com/open-sauced/ai/commit/693d45998dba2cacc18be10b397fdc624668fb03)) + ## [1.15.0-beta.1](https://github.com/open-sauced/ai/compare/v1.14.3-beta.3...v1.15.0-beta.1) (2024-01-12) diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index bf9381b2..ae64c6bb 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "opensauced-browser-extension", - "version": "1.15.0-beta.1", + "version": "1.15.0-beta.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opensauced-browser-extension", - "version": "1.15.0-beta.1", + "version": "1.15.0-beta.2", "dependencies": { "date-fns": "^2.30.0", "gpt-tokenizer": "^1.0.5", diff --git a/package.json b/package.json index abd4749e..3e6701ba 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opensauced-browser-extension", "private": true, - "version": "1.15.0-beta.1", + "version": "1.15.0-beta.2", "files": [ "dist" ],