-
Notifications
You must be signed in to change notification settings - Fork 3
feat: static team settings page #531
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 11 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
f0e6fa7
feat: start of team settings page
dennisvankekem 684f543
feat: keyvalue extension and premission table
dennisvankekem bb193e8
feat: added validator
dennisvankekem 3fe1057
feat: backported redux logic
dennisvankekem 8dff7e2
feat: new api setup
dennisvankekem 6315810
Merge branch 'main' into APL-540
dennisvankekem 48e7c04
feat: static forms team settings pt.2
dennisvankekem adcbb70
fix: temp solution for test
dennisvankekem 25c9109
Merge branch 'main' into APL-540
dennisvankekem 4304f10
fix: crud, quota and policy fixes
dennisvankekem 277e2b0
fix: minor bugs
dennisvankekem 2da5c28
fix: altered colors
dennisvankekem 6bc642f
fix: removed ts-nocheck
dennisvankekem ad42c75
fix: delete button fix + minor delete modal styling tweaks
dennisvankekem a59c0ce
fix: additional disabled fields
dennisvankekem 32495a6
Merge branch 'main' into APL-540
dennisvankekem ff2f760
fix: teams alert bug
dennisvankekem ec4df3d
fix: reverted resourceQuota while keeping ui
dennisvankekem 2f24baf
fix: overview id to name
dennisvankekem 0a0f7c2
Merge remote-tracking branch 'origin/main' into APL-540
dennisvankekem 689af39
fix: textfield input props order
ferruhcihan 722911e
feat: readonly page for non admins
dennisvankekem 977122c
fix: Capital letter in Information banner
dennisvankekem 6243074
fix: team name disabled override prevention
dennisvankekem 76b9272
fix: team name disabled
dennisvankekem 0694e33
fix: removed comma
dennisvankekem 1aa4006
fix: styling changes
dennisvankekem ebd0175
fix: api reverted
dennisvankekem 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,77 @@ | ||
| import React, { useState } from 'react' | ||
| import { styled } from '@mui/material/styles' | ||
| import { Accordion, AccordionDetails, AccordionSummary } from '@mui/material' | ||
| import { KeyboardArrowRight } from '@mui/icons-material' | ||
| import { Typography } from './Typography' | ||
|
|
||
| const StyledTitle = styled(Typography)(({ theme }) => ({ | ||
| marginTop: 0, | ||
| color: theme.palette.cl.text.title, | ||
| })) | ||
|
|
||
| const StyledDescription = styled(Typography)(({ theme }) => ({ | ||
| color: theme.palette.cl.text.subTitle, | ||
| })) | ||
|
|
||
| const StyledAccordion = styled(Accordion)(({ theme }) => ({ | ||
| backgroundColor: 'transparent', | ||
| boxShadow: 'none !important', | ||
| margin: '0px !important', | ||
| '&:before': { | ||
| display: 'none', // Remove the default border above the accordion | ||
| }, | ||
| })) | ||
|
|
||
| const StyledAccordionDetails = styled(AccordionDetails)(({ theme }) => ({ | ||
| backgroundColor: 'transparent', | ||
| boxShadow: 'none', | ||
| marginTop: '0px', | ||
| padding: 0, | ||
| '&:before': { | ||
| display: 'none', // Remove the default border above the accordion | ||
| }, | ||
| })) | ||
|
|
||
| const StyledAccordionSummary = styled(AccordionSummary)(({ theme }) => ({ | ||
| padding: '0', | ||
| '.MuiAccordionSummary-content': { | ||
| margin: '0', // Remove margin between text and icon | ||
| }, | ||
| marginTop: '0px !important', | ||
| display: 'inline-flex', | ||
| })) | ||
|
|
||
| interface Props { | ||
| description?: string | ||
| title?: string | ||
| children?: React.ReactNode | ||
| noPaddingTop?: boolean | ||
| } | ||
|
|
||
| export default function AdvancedSettings(props: Props) { | ||
| const { title = 'Advanced Settings', description, children, noPaddingTop } = props | ||
| const [expanded, setExpanded] = useState(true) | ||
|
|
||
| const handleAccordionChange = () => { | ||
| setExpanded((prev) => !prev) | ||
| } | ||
|
|
||
| return ( | ||
| <StyledAccordion disableGutters expanded={expanded} onChange={handleAccordionChange}> | ||
| <StyledAccordionSummary | ||
| expandIcon={<KeyboardArrowRight />} | ||
| sx={{ | ||
| '& .MuiAccordionSummary-expandIconWrapper.Mui-expanded': { | ||
| transform: 'rotate(90deg)', | ||
| }, | ||
| }} | ||
| > | ||
| <div> | ||
| {title && <StyledTitle variant='subtitle1'>{title}</StyledTitle>} | ||
| {description && <StyledDescription>{description}</StyledDescription>} | ||
| </div> | ||
| </StyledAccordionSummary> | ||
| <StyledAccordionDetails>{children}</StyledAccordionDetails> | ||
| </StyledAccordion> | ||
| ) | ||
| } |
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,16 @@ | ||
| import Box, { BoxProps } from '@mui/material/Box' | ||
| import { styled } from '@mui/material/styles' | ||
|
|
||
| interface ControlledBoxProps extends BoxProps { | ||
| disabled?: boolean | ||
| } | ||
|
|
||
| const ControlledBox = styled(Box, { | ||
| shouldForwardProp: (prop) => prop !== 'disabled', | ||
| })<ControlledBoxProps>(({ disabled }) => ({ | ||
| opacity: disabled ? 0.5 : 1, | ||
| pointerEvents: disabled ? 'none' : 'auto', | ||
| cursor: disabled ? 'default' : 'text', | ||
| })) | ||
|
|
||
| export default ControlledBox |
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.
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.