-
Notifications
You must be signed in to change notification settings - Fork 698
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
feat: Added account setting screens #4119
Conversation
…h account screen implementations Signed-off-by: Hrishav <[email protected]>
…g swagger file Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
Signed-off-by: Hrishav <[email protected]>
chaoscenter/web/src/views/ProjectInvitations/ProjectInvitations.tsx
Outdated
Show resolved
Hide resolved
chaoscenter/web/src/views/UpdateProjectName/UpdateProjectName.tsx
Outdated
Show resolved
Hide resolved
chaoscenter/web/src/views/UserCreatedProjects/UserCreatedProjects.tsx
Outdated
Show resolved
Hide resolved
Signed-off-by: Hrishav <[email protected]>
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.
Backend changes look good
Signed-off-by: Hrishav <[email protected]>
return apolloClient ? <ApolloProvider client={apolloClient}>{children}</ApolloProvider> : <></>; | ||
return apolloClient ? ( | ||
<QueryClientProvider client={reactQueryClient}> | ||
<ApolloProvider client={apolloClient}>{children}</ApolloProvider> |
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.
apollo client check should wrap this
services: { | ||
auth: { | ||
url: 'https://raw.githubusercontent.com/litmuschaos/litmus/master/mkdocs/docs/auth/v3.0.0/auth-api.json', | ||
output: 'src/api/auth/index.ts', |
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.
output: 'src/api/auth/index.ts', | |
output: 'src/api/auth', |
export interface Member { | ||
userID: string; | ||
role: Role; | ||
invitation: string; | ||
joinedAt: string; | ||
} | ||
|
||
export interface Project { | ||
id: string; |
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.
delete this file...these types should be auto generated
chaoscenter/web/src/app/App.tsx
Outdated
@@ -51,7 +32,7 @@ export function AppWithoutAuthentication(): React.ReactElement { | |||
const userDetails = getUserDetails(); | |||
return ( | |||
<StringsContext.Provider value={{ data: strings as StringsMap }}> | |||
<LitmusAPIProvider config={APIEndpoints} token={userDetails.token}> | |||
<LitmusAPIProvider config={APIEndpoints} token={userDetails.accessToken}> |
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.
move userDetails.token from getUserDetails to inside LitmusAPIProvider
); | ||
}; | ||
|
||
export default function MainNav(): React.ReactElement { | ||
const accountScopedPaths = useRouteWithBaseUrl('account'); | ||
const { getString } = useStrings(); | ||
const userData = useContext(AppStoreContext); |
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.
use useAppStoreContext
instead
Signed-off-by: Hrishav <[email protected]>
aa8e9a3
into
litmuschaos:master
* feat: Done with new routing setup for account screens and started with account screen implementations Signed-off-by: Hrishav <[email protected]> * feat: Added support for React-Query and automatic API generation using swagger file Signed-off-by: Hrishav <[email protected]> * chore: Updated createAt swagger issue Signed-off-by: Hrishav <[email protected]> * chore: Updated invitation_state Signed-off-by: Hrishav <[email protected]> * chore: Updated invitation_state again Signed-off-by: Hrishav <[email protected]> * feat: Added swagger API generation and several account setting screens Signed-off-by: Hrishav <[email protected]> * feat: Added user interaction modals in settings overview Signed-off-by: Hrishav <[email protected]> * feat: Added new automatic API generations and account setting screens Signed-off-by: Hrishav <[email protected]> * chore: updated testUtils Signed-off-by: Hrishav <[email protected]> * chore: updated testUtils and fixed errors Signed-off-by: Hrishav <[email protected]> * chore: Fixed review comments Signed-off-by: Hrishav <[email protected]> * chore: updated user search function Signed-off-by: Hrishav <[email protected]> * chore: fixed request comments Signed-off-by: Hrishav <[email protected]> --------- Signed-off-by: Hrishav <[email protected]> Signed-off-by: punithnayak <[email protected]>
Proposed changes
Axios
withReact-Query
for Rest APIs.Screenshots for reference
Admin User
Non-Admin Users
Types of changes
What types of changes does your code introduce to Litmus? Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.Dependency
Special notes for your reviewer: