From fa773e5b4b980072ba1acc39b1a7500a5b2de6f4 Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 26 Aug 2024 13:39:22 -0700 Subject: [PATCH 1/3] Add decomission note --- 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..d84971bd 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 decommisioned by 2025. New Indexer creation has been disabled. Please refer to documentation for more details.

+
+ {IS_DEV && ( -
{activeTab === 'launchpad' && IS_DEV && (
From 606f3fa7b5cc43301f339271ff31ceeb8f8a3ffc Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Mon, 26 Aug 2024 13:41:00 -0700 Subject: [PATCH 2/3] Spelling --- frontend/widgets/src/QueryApi.Dashboard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/widgets/src/QueryApi.Dashboard.jsx b/frontend/widgets/src/QueryApi.Dashboard.jsx index d84971bd..f1f72ae6 100644 --- a/frontend/widgets/src/QueryApi.Dashboard.jsx +++ b/frontend/widgets/src/QueryApi.Dashboard.jsx @@ -72,7 +72,7 @@ const selectIndexerPage = (viewName) => { return ( -

QueryApi is being decommisioned by 2025. New Indexer creation has been disabled. Please refer to documentation for more details.

+

QueryApi is being decommissioned by 2025. New Indexer creation has been disabled. Please refer to documentation for more details.

From e05c8f76e9c1cbca2c2c552657a5c7310fbe567a Mon Sep 17 00:00:00 2001 From: Darun Seethammagari Date: Tue, 3 Sep 2024 14:08:41 -0700 Subject: [PATCH 3/3] Update decomission date --- frontend/widgets/src/QueryApi.Dashboard.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/widgets/src/QueryApi.Dashboard.jsx b/frontend/widgets/src/QueryApi.Dashboard.jsx index f1f72ae6..809cd242 100644 --- a/frontend/widgets/src/QueryApi.Dashboard.jsx +++ b/frontend/widgets/src/QueryApi.Dashboard.jsx @@ -72,7 +72,7 @@ const selectIndexerPage = (viewName) => { return ( -

QueryApi is being decommissioned by 2025. New Indexer creation has been disabled. Please refer to documentation for more details.

+

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