Skip to content

Commit

Permalink
Add beta badge and callout
Browse files Browse the repository at this point in the history
  • Loading branch information
bryophyta committed Feb 20, 2025
1 parent f202256 commit e535d6f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
11 changes: 11 additions & 0 deletions newswires/client/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import {
EuiBadge,

Check warning on line 2 in newswires/client/src/App.tsx

View workflow job for this annotation

GitHub Actions / Build and upload to riffraff

'EuiBadge' is defined but never used. Allowed unused vars must match /^_/u
EuiBetaBadge,
EuiButton,
EuiEmptyPrompt,
EuiHeader,
Expand All @@ -9,6 +11,7 @@ import {
EuiProvider,
EuiResizableContainer,
EuiShowFor,
EuiSpacer,

Check warning on line 14 in newswires/client/src/App.tsx

View workflow job for this annotation

GitHub Actions / Build and upload to riffraff

'EuiSpacer' is defined but never used. Allowed unused vars must match /^_/u
EuiTitle,
EuiToast,
} from '@elastic/eui';
Expand Down Expand Up @@ -103,6 +106,14 @@ export function App() {
>
Newswires
</EuiLink>
<EuiBetaBadge
label="Beta"
color={'accent'}
size="s"
css={css`
margin-left: 8px;
`}
></EuiBetaBadge>
</h1>
</EuiTitle>
</EuiHeaderSectionItem>
Expand Down
18 changes: 18 additions & 0 deletions newswires/client/src/SideNav.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import {
EuiAccordion,

Check warning on line 2 in newswires/client/src/SideNav.tsx

View workflow job for this annotation

GitHub Actions / Build and upload to riffraff

'EuiAccordion' is defined but never used. Allowed unused vars must match /^_/u
EuiBadge,
EuiBadgeGroup,
EuiCallOut,
EuiCollapsibleNav,
EuiCollapsibleNavGroup,
EuiHeaderSectionItemButton,
Expand Down Expand Up @@ -239,6 +241,22 @@ export const SideNav = () => {
onChange={toggleAutoUpdate}
/>
</div>
<div>
<EuiCallOut
title="Please use with caution"
iconType="iInCircle"
color="primary"
>
<p>
This is a beta product. Feedback or questions? We'd love to hear

Check failure on line 251 in newswires/client/src/SideNav.tsx

View workflow job for this annotation

GitHub Actions / Build and upload to riffraff

`'` can be escaped with `&apos;`, `&lsquo;`, `&#39;`, `&rsquo;`
from you at{' '}
<a href="mailto:media.and.feeds@theguardian.com">
Media & Feeds team
</a>
.
</p>
</EuiCallOut>
</div>
</EuiCollapsibleNav>
</>
);
Expand Down
4 changes: 4 additions & 0 deletions newswires/client/src/icons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ import { icon as doubleArrowLeft } from '@elastic/eui/es/components/icon/assets/
import { icon as empty } from '@elastic/eui/es/components/icon/assets/empty';
import { icon as faceSad } from '@elastic/eui/es/components/icon/assets/face_sad';
import { icon as heart } from '@elastic/eui/es/components/icon/assets/heart';
import { icon as iInCircle } from '@elastic/eui/es/components/icon/assets/iInCircle';
import { icon as launch } from '@elastic/eui/es/components/icon/assets/launch';
import { icon as link } from '@elastic/eui/es/components/icon/assets/link';
import { icon as menu } from '@elastic/eui/es/components/icon/assets/menu';
import { icon as menuLeft } from '@elastic/eui/es/components/icon/assets/menuLeft';
import { icon as menuRight } from '@elastic/eui/es/components/icon/assets/menuRight';
import { icon as pin } from '@elastic/eui/es/components/icon/assets/pin_filled';
import { icon as popout } from '@elastic/eui/es/components/icon/assets/popout';
import { icon as refresh } from '@elastic/eui/es/components/icon/assets/refresh';
import { icon as returnKey } from '@elastic/eui/es/components/icon/assets/return_key';
Expand Down Expand Up @@ -57,4 +59,6 @@ appendIconComponentCache({
link,
copyClipboard,
popout,
pin,
iInCircle,
});

0 comments on commit e535d6f

Please sign in to comment.