From b2163cafe10381d2c1e3b8b7d1a94f703b8c046a Mon Sep 17 00:00:00 2001 From: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Date: Thu, 28 Nov 2024 12:33:16 +0100 Subject: [PATCH 1/2] Remove beta announcement bar Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> Co-Authored-By: Damian Stasik <920747+damianstasik@users.noreply.github.com> --- frontend/announcement.md | 1 - frontend/src/components/AnnouncementBar/content.ts | 12 +++++++----- frontend/src/components/AnnouncementBar/index.tsx | 6 +++++- 3 files changed, 12 insertions(+), 7 deletions(-) diff --git a/frontend/announcement.md b/frontend/announcement.md index 4a2458c0..e69de29b 100644 --- a/frontend/announcement.md +++ b/frontend/announcement.md @@ -1 +0,0 @@ -This is the **beta** preview of the OpenTofu Registry Search. The data in this interface may not be up to date. diff --git a/frontend/src/components/AnnouncementBar/content.ts b/frontend/src/components/AnnouncementBar/content.ts index bb8139b7..c53a0846 100644 --- a/frontend/src/components/AnnouncementBar/content.ts +++ b/frontend/src/components/AnnouncementBar/content.ts @@ -4,8 +4,10 @@ import remarkRehype from "remark-rehype"; import rehypeStringify from "rehype-stringify"; import announcement from "../../../announcement.md?raw"; -export const content = unified() - .use(remarkParse) - .use(remarkRehype) - .use(rehypeStringify) - .processSync(announcement).value; +export function getContent() { + return unified() + .use(remarkParse) + .use(remarkRehype) + .use(rehypeStringify) + .processSync(announcement).value; +} diff --git a/frontend/src/components/AnnouncementBar/index.tsx b/frontend/src/components/AnnouncementBar/index.tsx index 01e38eb9..9e180ac7 100644 --- a/frontend/src/components/AnnouncementBar/index.tsx +++ b/frontend/src/components/AnnouncementBar/index.tsx @@ -1,6 +1,10 @@ -import { content } from "./content" with { type: "macro" }; +import {getContent} from "@/components/AnnouncementBar/content.ts"; export function AnnouncementBar() { + const content = getContent() + if (!content) { + return null; + } return (
Date: Thu, 28 Nov 2024 12:37:03 +0100 Subject: [PATCH 2/2] Updating OpenAPI to no longer refer to the version as beta Signed-off-by: AbstractionFactory <179820029+abstractionfactory@users.noreply.github.com> --- .github/ISSUE_TEMPLATE/beta-feedback.yml | 11 ----------- .github/ISSUE_TEMPLATE/beta-inclusion.yml | 12 ------------ backend/internal/server/openapi.go | 2 +- backend/internal/server/openapi.yml | 2 +- 4 files changed, 2 insertions(+), 25 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/beta-feedback.yml delete mode 100644 .github/ISSUE_TEMPLATE/beta-inclusion.yml diff --git a/.github/ISSUE_TEMPLATE/beta-feedback.yml b/.github/ISSUE_TEMPLATE/beta-feedback.yml deleted file mode 100644 index 0ab49df0..00000000 --- a/.github/ISSUE_TEMPLATE/beta-feedback.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: "Beta: Feedback" -description: "General feedback for the beta." -labels: ["feedback"] -body: - - type: textarea - id: text - attributes: - label: Feedback - value: - validations: - required: true diff --git a/.github/ISSUE_TEMPLATE/beta-inclusion.yml b/.github/ISSUE_TEMPLATE/beta-inclusion.yml deleted file mode 100644 index 3770bdee..00000000 --- a/.github/ISSUE_TEMPLATE/beta-inclusion.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: "Beta: Add a provider/module" -description: "The beta does not include the full registry dataset. Use this issue to request the inclusion of a provider." -labels: ["feedback"] -body: - - type: textarea - id: repository - attributes: - label: Repository URL - placeholder: https://github.com/... - value: - validations: - required: true diff --git a/backend/internal/server/openapi.go b/backend/internal/server/openapi.go index 75d647cd..b94d4731 100644 --- a/backend/internal/server/openapi.go +++ b/backend/internal/server/openapi.go @@ -2,7 +2,7 @@ // // The API to fetch documentation index and documentation files from the OpenTofu registry. // -// Version: 1.0.0-beta +// Version: 1.0.0 // License: MPL-2.0 // Host: api.opentofu.org // Schemes: https diff --git a/backend/internal/server/openapi.yml b/backend/internal/server/openapi.yml index 6c8f90c7..a18971cf 100644 --- a/backend/internal/server/openapi.yml +++ b/backend/internal/server/openapi.yml @@ -794,7 +794,7 @@ info: license: name: MPL-2.0 title: OpenTofu Registry Docs API - version: 1.0.0-beta + version: 1.0.0 paths: /registry/docs/modules/{namespace}/{name}/{target}/{version}/README.md: get: