Skip to content
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

Do not display Grid View button in metadata panels #405

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

guergana
Copy link
Collaborator

@guergana guergana commented May 24, 2024

@guergana
Copy link
Collaborator Author

We might need to remove the 'Grid View' button altogether in the future if we no longer need it. I would suggest we don't remove it for now because this button is used in other panels/sections in the application.

@romicolman The grid view button exists in other parts of the application as well. Do we want to remove this button from everywhere? For example, if you upload a chart. You can use the file attached to this comment... you see again the button in the metadata panels Channels, Transforms and Layers. Same for when you upload a datapackage. You can also find a data package attached to this message. I know we are centering now on tabular data but since all the app is connected it is better to know the details because the code will be different if we remove it only in tables or everywhere.

chart.json
datapackage.json

@romicolman
Copy link
Collaborator

Hi @guergana! First question. Is it possible to hide the button instead of removing it? Question for @pdelboca: Is the grid view useful for technical users like CKAN publishers when working on json files? For non-technical users the grid view does not add any value.

@guergana
Copy link
Collaborator Author

guergana commented May 24, 2024

Hi @guergana! First question. Is it possible to hide the button instead of removing it? Question for @pdelboca: Is the grid view useful for technical users like CKAN publishers when working on json files? For non-technical users the grid view does not add any value.

@romicolman yes. Right now on the code I pushed I am only hiding it for tabular data. We can merge this and discuss if we need the Grid view Button at all later on if it's needed. I just wanted to bring it up since the button doesn't look very useful in the other panels either in my opinion 🙈

@pdelboca
Copy link
Member

@romicolman @guergana my opinion is that Grid View is the kind of feature that do not provide greater value and makes the code unnecessarily more complex. (Since we are reusing components we need to either play around with CSS or create more hierarchies to handle the scenario.)

The list view is clear enough, and I don't understand the value that provides switching between them. Yes I guess we could fix it to display the information better but I'm in favor of less features, less UIs and less code.

Current List View vs Grid View:
image

image

@guergana
Copy link
Collaborator Author

@romicolman @guergana my opinion is that Grid View is the kind of feature that do not provide greater value and makes the code unnecessarily more complex. (Since we are reusing components we need to either play around with CSS or create more hierarchies to handle the scenario.)

The list view is clear enough, and I don't understand the value that provides switching between them. Yes I guess we could fix it to display the information better but I'm in favor of less features, less UIs and less code.

Current List View vs Grid View:
image

image

Yep. I would also remove it from the whole application. Hence my question.

@romicolman
Copy link
Collaborator

Yes, please, remove the grid view from the app.

Copy link

cloudflare-workers-and-pages bot commented May 27, 2024

Deploying opendataeditor with  Cloudflare Pages  Cloudflare Pages

Latest commit: 099d6d3
Status: ✅  Deploy successful!
Preview URL: https://b40e3a1b.opendataeditor.pages.dev
Branch Preview URL: https://393-remove-grid-view-button.opendataeditor.pages.dev

View logs

@guergana guergana requested review from roll and pdelboca May 27, 2024 16:20
@roll
Copy link
Collaborator

roll commented May 28, 2024

As we discussed with Romina the Grid View is useful for tabular data having many columns

@guergana
Copy link
Collaborator Author

As we discussed with Romina the Grid View is useful for tabular data having many columns

Hi, I am confused. The grid view is a button in the metadata sections like "contributors", " licenses" etc. how is this related to the amount of columns?

I have removed the grid view Button because I thought this is what the last instructions said @romicolman could you please clarify? :)

@guergana
Copy link
Collaborator Author

Yes, please, remove the grid view from the app.

@roll this is the last comment from the last discussion

@romicolman
Copy link
Collaborator

Please, remove grid view from all metadata fields.

Thanks!

@guergana
Copy link
Collaborator Author

guergana commented Jun 4, 2024

@roll @pdelboca this is ready for a final review. :)

@pdelboca
Copy link
Member

pdelboca commented Jun 5, 2024

@guergana could you as well remove the onGridClick attribute from the Editors and isGrid from the states?

This code will be orphan since it is only triggered by the button we are removing :)

Copy link
Member

@pdelboca pdelboca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good @guergana ! See my comment above :)

@guergana
Copy link
Collaborator Author

guergana commented Jun 6, 2024

@guergana could you as well remove the onGridClick attribute from the Editors and isGrid from the states?

This code will be orphan since it is only triggered by the button we are removing :)

Good catch! That was an oversight. Will remove it.

@guergana guergana requested a review from pdelboca June 6, 2024 16:35
Copy link
Member

@pdelboca pdelboca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect @guergana 🚀

@guergana guergana merged commit 8f4eae0 into main Jun 7, 2024
8 checks passed
@guergana guergana deleted the 393-remove-grid-view-button branch June 7, 2024 10:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remove grid view - Metadata panel
4 participants