-
Notifications
You must be signed in to change notification settings - Fork 451
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(connect): integrations list (#2749)
## Describe your changes Contributes to https://linear.app/nango/issue/NAN-1703/create-ui - Create the integrations list page [[figma](https://www.figma.com/design/wBPwGMlopg8tcMFRekYLgE/Auth-UI?node-id=4107-456&node-type=canvas&m=dev)] - Setup react correctly: error boundary, router, fetcher, <img width="488" alt="Screenshot 2024-09-20 at 13 54 26" src="https://github.com/user-attachments/assets/9954f917-c3b4-4846-9849-8506341abd45"> ## 🧪 Tests ``` npm run dw npm run dwa # temp to be able to use API touch packages/connect-ui/.env VITE_LOCAL_SECRET_KEY=__SECRET_KEY__ npm run connect-ui:dev:watch ```
- Loading branch information
1 parent
204a757
commit fe98a46
Showing
17 changed files
with
497 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,27 @@ | ||
import { QueryClientProvider, QueryErrorResetBoundary } from '@tanstack/react-query'; | ||
import { RouterProvider, createRouter, createRootRoute } from '@tanstack/react-router'; | ||
import { ErrorBoundary } from 'react-error-boundary'; | ||
|
||
import { ErrorFallback } from './components/ErrorFallback.js'; | ||
import { queryClient } from './lib/query.js'; | ||
import { IntegrationsList } from './views/IntegrationsList.js'; | ||
|
||
const rootRoute = createRootRoute({ | ||
component: IntegrationsList | ||
}); | ||
|
||
const routeTree = rootRoute.addChildren([]); | ||
|
||
const router = createRouter({ routeTree }); | ||
|
||
export const App: React.FC = () => { | ||
return <div className="text-3xl font-bold underline">Coucou</div>; | ||
return ( | ||
<QueryErrorResetBoundary> | ||
<ErrorBoundary FallbackComponent={ErrorFallback}> | ||
<QueryClientProvider client={queryClient}> | ||
<RouterProvider router={router} /> | ||
</QueryClientProvider> | ||
</ErrorBoundary> | ||
</QueryErrorResetBoundary> | ||
); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const ErrorFallback: React.FC = () => { | ||
return <div className="p-4 text-red-base">An error occurred. Please refresh your page or contact us, support@nango.dev</div>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
@layer base { | ||
:root { | ||
--radius: 0.5rem; | ||
} | ||
} | ||
|
||
body { | ||
font-size: 14px; | ||
} |
Oops, something went wrong.