Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add decomission note to frontend #1019

Merged
merged 3 commits into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions frontend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.**
Expand Down
13 changes: 12 additions & 1 deletion frontend/widgets/src/QueryApi.Dashboard.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
`;
Expand Down Expand Up @@ -63,6 +71,10 @@ const selectIndexerPage = (viewName) => {

return (
<Wrapper>
<Banner>
<p>QueryApi is being decommissioned by Dec 9, 2024. New Indexer creation has been disabled. Please refer to <a href="https://docs.near.org/build/data-infrastructure/query-api/intro">documentation</a> for more details. </p>
</Banner>

<Tabs>
{IS_DEV && (
<TabsButton
Expand Down Expand Up @@ -98,7 +110,6 @@ return (
</TabsButton>
</Tabs>


<Main>
{activeTab === 'launchpad' && IS_DEV && (
<Section >
Expand Down
Loading