-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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: Add element for subset of data to info panel #2622
base: alpha
Are you sure you want to change the base?
Conversation
Thanks for opening this pull request!
|
Screen.Recording.2024-10-24.033012.mp4Hey @mtrezza, I have added a subset element that allows loading another Cloud Code function on demand. I’m not sure about the styles; could you please let me know what changes and features are required after reviewing the current progress? |
Uffizzi Ephemeral Environment
|
That is amazing! Just what I had in mind. From a first look I things all that's needed is to refine the design of the section. Let me come up with a mock up... Nice work! Maybe @404-html wants to give this a quick review as well. |
Hi again Gents! 👋
With pleasure! |
@@ -95,3 +97,116 @@ export const ButtonElement = ({ item, showNote }) => { | |||
</div> | |||
); | |||
}; | |||
|
|||
export const PanelElement = ({ item, showNote, objectId, depth = 0 }) => { |
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.
Instead of introducing another PanelElement
I would suggest to extend existing one (in AggregationPanel.js
), and adopt it to loading data subset and being used recessively. This way we should avoid code duplication.
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 have tried doing in the latest commits, can you please review it?
Hi @404-html, I have updated the code as requested. Could you please review it? |
Let me wait for Manuel's UI suggestions, and after they will be addressed I will do another review. |
Not sure why, but for some reason I cannot get the "Show panel" button to show, despite running the same setup like in the previous PR where it worked. @vardhan0604 could you try to rebuild it with the latest commit here and see whether it still works for you? |
Yeah, it is working for me. I rebuilt it with the latest commit, and the 'Show panel' button appears as expected. @mtrezza, could you check if parse-dashboard-config.json is configured properly? |
Still trying to get this to work. Meanwhile I found this:
Only remotely related to this PR, but maybe we can clean it up at once. Why was |
#2623 is the reason why the "Show Panel" button isn't showing. Could you take a look? |
@@ -591,7 +591,7 @@ export default class DataBrowser extends React.Component { | |||
<ResizableBox | |||
width={this.state.panelWidth} | |||
height={Infinity} | |||
minConstraints={[100, Infinity]} | |||
minConstraints={[400, Infinity]} |
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.
Please revert if not required for this PR; the panel should be resizable to min. 100 px width.
panelWidth: 300, | ||
panelWidth: 400, |
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.
Why this change?
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.
Sorry, both of them were unintentional changes, i will revert them back in next commit.
Yeah sure. I will take a look |
New PR please. It's a fix unrelated to this new feature. |
New Pull Request Checklist
Issue Description
Closes: #2610
Approach
TODOs before merging