-
Notifications
You must be signed in to change notification settings - Fork 556
Fixing schema designer and table designer profiles before init #20753
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
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
8cbc29e
Adding telemetry and prepare conn profile to table designer and schem…
8043f50
Merge remote-tracking branch 'origin/main' into aasim/feat/sdTelemetry
8c3731d
remove dup confirmTokenValidity call.
ac05b73
Fixing ordering
192d79d
Fixing tests
9216ad7
Add error handling and user feedback for Schema Designer initializati…
1d0edb8
Fixed
57c981b
Merge remote-tracking branch 'origin/main' into aasim/feat/sdTelemetry
f54d3a4
Fixing rpc registration.
6542363
Fixing lint issues.
4780b82
fixed name
ba27102
Adding more error handling and fixng message.
c256ebc
Added loc
d93c1d8
Fixing error telemetry
87eea0a
Made dialogs conditional.
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,72 @@ | ||
| /*--------------------------------------------------------------------------------------------- | ||
| * Copyright (c) Microsoft Corporation. All rights reserved. | ||
| * Licensed under the MIT License. See License.txt in the project root for license information. | ||
| *--------------------------------------------------------------------------------------------*/ | ||
|
|
||
| import { | ||
| Button, | ||
| Dialog, | ||
| DialogActions, | ||
| DialogBody, | ||
| DialogContent, | ||
| DialogSurface, | ||
| DialogTitle, | ||
| makeStyles, | ||
| shorthands, | ||
| } from "@fluentui/react-components"; | ||
| import { ErrorCircleRegular } from "@fluentui/react-icons"; | ||
| import React from "react"; | ||
|
|
||
| const useStyles = makeStyles({ | ||
| dialogSurface: { | ||
| minWidth: "320px", | ||
| maxWidth: "420px", | ||
| }, | ||
| title: { | ||
| display: "flex", | ||
| alignItems: "center", | ||
| columnGap: "8px", | ||
| }, | ||
| icon: { | ||
| fontSize: "32px", | ||
| }, | ||
| content: { | ||
| ...shorthands.marginBlock("16px", "0"), | ||
| }, | ||
| }); | ||
|
|
||
| export interface ErrorDialogProps { | ||
| open: boolean; | ||
| title: string; | ||
| message: string; | ||
| retryLabel: string; | ||
| onRetry: () => void; | ||
| } | ||
|
|
||
| export const ErrorDialog: React.FC<ErrorDialogProps> = ({ | ||
| open, | ||
| title, | ||
| message, | ||
| retryLabel, | ||
| onRetry, | ||
| }) => { | ||
| const classes = useStyles(); | ||
| return ( | ||
| <Dialog open={open} modalType="modal" inertTrapFocus> | ||
| <DialogSurface className={classes.dialogSurface}> | ||
| <DialogBody> | ||
| <DialogTitle className={classes.title}> | ||
| <ErrorCircleRegular className={classes.icon} /> | ||
| {title} | ||
| </DialogTitle> | ||
| <DialogContent className={classes.content}>{message}</DialogContent> | ||
| <DialogActions> | ||
| <Button appearance="primary" onClick={onRetry}> | ||
| {retryLabel} | ||
| </Button> | ||
| </DialogActions> | ||
| </DialogBody> | ||
| </DialogSurface> | ||
| </Dialog> | ||
| ); | ||
| }; | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.