-
Notifications
You must be signed in to change notification settings - Fork 39
Metadata panel #746
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?
Metadata panel #746
Conversation
Each page in the metadata widget is now a tab, I implemented this according to the designs in okfn#670. Each tab contains the Resource metadata with its pages and the form that corresponds to each page, as tabs they're positioned side by side just like in the design and this makes it easier to view each page. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
The forms were moved to tabs as that's where they're now being used, also to avoid circular imports. Each tab is now a separate widget with buttons pointing to the forms in that tab, they all conform to the same interface. This makes the tabs modular and also easier to find and fix issues when they arise. I've only added the forms that exist and commented out the ones yet to exist. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
The push buttons occupy every space the QVBoxLayout gives it, this commit pushes the buttons to the top and also sets the spacing between buttons. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
This makes it so child widgets don't fill the entire space given by the parent. I've also added basic css to some widgets, I'll put them all in a css file to make it easier as there will be shared by the various tabs. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
I've improved the style of metadata panel by directly applying stylesheets to some of the widgets and also using a stylesheet file to read some styles for other widgets. The aim in the end is to keep the changes to widget in a stylesheet so it's easier to manage. I also set a RowWrapPolicy for the forms, this makes the form look more like the initial design, although QFormLayout lays out its children in a two-column form, with the labels in the left column and the field widgets in the right column. This makes it a bit difficult to completely follow the design as it has two field widgets in each row, so we'll have to rethink this if we want to stick to the design. I thought about achieving the same thing using a grid, just haven't tried it yet. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
Also adhere to existing pattern by using self.tr Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
|
HI @chimosky! First of all, thank you very much for contributing to the ODE. It's great to see that the ODE is getting contributions! I managed to see your implementations. A couple of comments based on what I see:
Idea: distribute fields across the screen as we did for the stable version:
Additional comments If possible, could you remove the Metadata term serving as the section title? General style: can we apply to the metadata panel the same font and style that we have for the rest of the application? Thank you so much for collaborating with the ODE, @chimosky ! |
Items in the form are now in a grid and placed where we want them. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
Improve the style of QLineEdit and QLabel. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
Adjust spacing in layouts to fit correctly. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
Using QTabWidget made it difficult to style the tab, and tab text, switching to push buttons makes it easier to style the text and buttons, which in turn gives us the flexibility to maintain the existing design. Signed-off-by: Chihurumnaya Ibiam <ibiamchihurumnaya@gmail.com>
|
@romicolman I've addressed some of the issues you mentioned, kindly test. I'm also trying to resolve the issue of applying the same font and style to the metadata panel, I'll get to it once I can. |
|
@romicolman any info on this? |



I've made some changes to the metadata panel, and I'd like to know if I'm headed in the right direction and how to proceed.
@romicolman kindly review, this is from #727 and I was told you'll help point me in the right direction.
Please make sure that all the checks pass. Please add here any additional information regarding this pull request. It's highly recommended that you link this PR to an issue (please create one if it doesn't exist for this PR)