-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Show errors if fetching ParameterPicker suggestions fails #25703
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
Changes from all commits
7f23453
8b75bf4
0f140ce
78182ba
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,19 +37,20 @@ import { | |
| ResourceSearchErrorsItem, | ||
| TypeToSearchItem, | ||
| } from './ActionPicker'; | ||
| import { SuggestionsError } from './ParameterPicker'; | ||
| import { ResultList } from './ResultList'; | ||
|
|
||
| import type * as uri from 'teleterm/ui/uri'; | ||
|
|
||
| export default { | ||
| title: 'Teleterm/Search/ActionPicker', | ||
| title: 'Teleterm/Search', | ||
| }; | ||
|
|
||
| const clusterUri: uri.ClusterUri = '/clusters/teleport-local'; | ||
| const longClusterUri: uri.ClusterUri = | ||
| '/clusters/teleport-very-long-cluster-name-with-uuid-2f96e498-88ec-442f-a25b-569fa915041c'; | ||
|
|
||
| export const Items = (props: { maxWidth: string }) => { | ||
| export const Results = (props: { maxWidth: string }) => { | ||
| const { maxWidth = '600px' } = props; | ||
|
|
||
| return ( | ||
|
|
@@ -92,8 +93,8 @@ export const Items = (props: { maxWidth: string }) => { | |
| ); | ||
| }; | ||
|
|
||
| export const ItemsNarrow = () => { | ||
| return <Items maxWidth="300px" />; | ||
| export const ResultsNarrow = () => { | ||
| return <Results maxWidth="300px" />; | ||
| }; | ||
|
|
||
| const SearchResultItems = () => { | ||
|
|
@@ -397,6 +398,11 @@ const AuxiliaryItems = () => ( | |
| ), | ||
| ]} | ||
| /> | ||
| <SuggestionsError | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I moved the story from
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's fine to me. |
||
| statusText={ | ||
| '2 UNKNOWN: Unable to connect to ssh proxy at teleport.local:443. Confirm connectivity and availability.\n dial tcp: lookup teleport.local: no such host' | ||
| } | ||
| /> | ||
| <TypeToSearchItem hasNoRemainingFilterActions={false} /> | ||
| <TypeToSearchItem hasNoRemainingFilterActions={true} /> | ||
| </> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't have better idea for a name. 🤕
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tried to come up with a suggestion and I couldn't either. Sounds like its good enough to me