From 72f1ff4bb5eead0b7e9ae54ccda0bc2e1799a816 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 3 Sep 2024 14:27:51 -0700 Subject: [PATCH] chore: Add decomission note to frontend (#1019) As QueryAPi is being decommissioned, this PR adds a note to the frontend and a link to the documentation, where we can provide additional details. image --- frontend/README.md | 4 ++-- frontend/widgets/src/QueryApi.Dashboard.jsx | 13 ++++++++++++- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/README.md b/frontend/README.md index ea5a8cb1..492456ea 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -21,11 +21,11 @@ npm run serve:widgets:prod // for running prod enviornment **Then, Head to `dev.near.org/flags` and enter `http://127.0.0.1:3030`** -> In order to tell our BOS gateway (near.org), where to load the local widgets from, we head to `near.org/flags` and enter the local path we got from running the previous command. If you have not changed any configurations then the default should be `http://127.0.0.1:3030` +> In order to tell our BOS gateway (near.org), where to load the local widgets from, we head to `dev.near.org/flags` and enter the local path we got from running the previous command. If you have not changed any configurations then the default should be `http://127.0.0.1:3030` **Finally**, run the following to serve the local NextJS frontend ```bash -npm dev +npm run dev ``` **Now, head to the path where the widgets are served on the BOS.** diff --git a/frontend/widgets/src/QueryApi.Dashboard.jsx b/frontend/widgets/src/QueryApi.Dashboard.jsx index 73b593ba..809cd242 100644 --- a/frontend/widgets/src/QueryApi.Dashboard.jsx +++ b/frontend/widgets/src/QueryApi.Dashboard.jsx @@ -2,6 +2,14 @@ const Wrapper = styled.div` margin-top: calc(var(--body-top-padding) * -1); `; +const Banner = styled.div` + background-color: #f8d7da; /* Light red background color */ + color: #721c24; /* Dark red text color */ + padding: 5px; /* Padding around the text */ + text-align: center; /* Center the text */ + border-radius: 4px; /* Rounded corners */ +`; + const Main = styled.div` display: block; `; @@ -63,6 +71,10 @@ const selectIndexerPage = (viewName) => { return ( + +

QueryApi is being decommissioned by Dec 9, 2024. New Indexer creation has been disabled. Please refer to documentation for more details.

+
+ {IS_DEV && ( -
{activeTab === 'launchpad' && IS_DEV && (