-
Notifications
You must be signed in to change notification settings - Fork 35
[FEATURE] Table Add data link to the table panel #488
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
base: main
Are you sure you want to change the base?
Conversation
2737172 to
02ce7e4
Compare
Signed-off-by: Seyed Mahmoud SHAHROKNI <seyedmahmoud.shahrokni@amadeus.com> Signed-off-by: Seyed Mahmoud SHAHROKNI <seyedmahmoud.shahrokni@amadeus.com> Signed-off-by: Seyed Mahmoud SHAHROKNI <seyedmahmoud.shahrokni@amadeus.com> Signed-off-by: Seyed Mahmoud SHAHROKNI <seyedmahmoud.shahrokni@amadeus.com>
Gladorme
left a comment
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.
I did not check in depth, but here is already some points that could improve the PR
| open: boolean; | ||
| setOpen: (value: boolean) => void; | ||
| }; | ||
| const LinkManagementDialogue = (props: LinkManagementDialogueProps): ReactElement => { |
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.
Rename + move to dedicated file
| const LinkManagementDialogue = (props: LinkManagementDialogueProps): ReactElement => { | |
| const LinkManagementDialog = (props: LinkManagementDialogueProps): ReactElement => { |
| }; | ||
|
|
||
| return ( | ||
| <Dialog |
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 Perses Dialog component
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.
It is Perses
The last item.
import {
AlignSelector,
FormatControls,
OptionsEditorColumn,
OptionsEditorControl,
OptionsEditorGrid,
OptionsEditorGroup,
SortSelectorButtons,
Dialog,
} from '@perses-dev/components';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.
Ok, I'm crazy I though I saw it in MUI import 😓
| <DialogTitle>{actionTitle}</DialogTitle> | ||
| <DialogContent> | ||
| <Stack spacing={2}> | ||
| <FormControl> |
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.
We already have a form for editing links LinksEditor/LinkControl, can it be re-used (UI consistency and code re-usage)?
Signed-off-by: Seyed Mahmoud SHAHROKNI <seyedmahmoud.shahrokni@amadeus.com>
02ce7e4 to
4883b7c
Compare
Relates to perses/perses#3483
Description 🖊️
This PR adds Links and Actions setting section into the column settings.
Using this feature users will be able to generate dynamic links for each column of the table plugin.
The dynamic part of the URL is taken from the Cell Value.
As @AntoineThebaud explains in the issue A link should ...
Dynamic Link Settings 🔧 🔗
In settings users can define a link which includes three properties. URL, Title, and Open_New_Tab option.
The settings could be added, edited, and removed.
Test 🧪
You should be able to save/edit/remove link settings from column settings.
Checklist
[<catalog_entry>] <commit message>naming convention using one of thefollowing
catalog_entryvalues:FEATURE,ENHANCEMENT,BUGFIX,BREAKINGCHANGE,DOC,IGNORE.UI Changes