Skip to content
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
3 changes: 3 additions & 0 deletions dev/nextjs/app/HubWrapper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export default function HubWrapper({ initialToken, apiUrl, appUrl }: HubWrapperP

return (
<div className={theme}>
<p style={{ fontSize: 12, color: '#666', marginBottom: 4 }}>
Environment — api: <code>{apiUrl}</code> · app: <code>{appUrl}</code>
</p>
<div style={{ display: 'flex', gap: 8, marginBottom: 12 }}>
<input
style={{ flex: 1, padding: 6, border: '1px solid #ccc', borderRadius: 4 }}
Expand Down
3 changes: 3 additions & 0 deletions dev/vite/SuspenseMRE.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,9 @@ function SuspenseMREContent() {

{isCorsProtected && connectState.status === 'idle' && (
<div style={{ marginBottom: 16 }}>
<div style={{ fontSize: 12, color: '#666', marginBottom: 4 }}>
Environment — api: <code>{apiUrl}</code> · app: <code>{appUrl}</code>
</div>
<div style={{ fontSize: 12, color: '#666', marginBottom: 8 }}>
Paste a connect session token (the /connect_sessions endpoint is
CORS-protected on dev and production so it cannot be automatically created
Expand Down
3 changes: 3 additions & 0 deletions dev/vite/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ const HubWrapper: React.FC = () => {
<p>Current mode: {mode || 'No mode selected'}</p>
{isCorsProtected && (
<>
<p style={{ fontSize: 12, color: '#666', marginBottom: 4 }}>
Environment — api: <code>{apiUrl}</code> · app: <code>{appUrl}</code>
</p>
<p>
Paste a connect session token (the /connect_sessions endpoint is
CORS-protected on dev and production so it cannot be automatically created
Expand Down
5 changes: 4 additions & 1 deletion src/modules/integration-picker/IntegrationPicker.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Card } from '@stackone/malachite';
import { Alert, Card } from '@stackone/malachite';
import { useCallback, useMemo, useState } from 'react';
import { IntegrationPickerContent } from './components/IntegrationPickerContent';
import { IntegrationPickerTitle } from './components/IntegrationPickerTitle';
Expand Down Expand Up @@ -144,6 +144,9 @@ export const IntegrationPicker: React.FC<IntegrationPickerProps> = ({
}
}
>
{connectionState.timedOut && (
<Alert type="warning" message="Connection timed out. Please try again." hasMargin />
)}
<IntegrationPickerContent
isLoading={isLoading}
hasError={hasError}
Expand Down
Loading
Loading