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

1.11 #186

Merged
merged 31 commits into from
Mar 10, 2024
Merged

1.11 #186

merged 31 commits into from
Mar 10, 2024

Conversation

methnen
Copy link
Owner

@methnen methnen commented Feb 18, 2024

  • Added a Chart Block for the WordPress Block Editor
    • Send your thanks to webconstructor for lion's share of the work on this
  • Added a CSV Delimiter contro and setting to allow for differences in CSV files from different regions
  • Fixed an issue where data points weren't being cleaned well enough and it could confuse Chart.js
  • Fixed an issue where Chart.js tooltips sometimes duplicated a label
  • Fixed an issue with entities inside of labels

#184
#134

Inigo I.J.C.Grimbergen and others added 26 commits July 4, 2023 11:40
…ngle title without image support, added aspect ratio to single view no image support based on dimensions of graph with defaults for better feeling of amount of space taken by real graph
…oved the limiting of the amount of results from the render to the composing of the list for it is more effecient to cut down early
… fetching in general to an api call default 24 most recent or with a search term with some debouncing instead of keeping 1000 in memory of the browser and filtering
- Moved block code aroudn a bit so it's orgnized inside of `components` and named in a way that's easier to identify
- Added some stuff to the deploy rules to manage the new block code
- Rewrote the block interface styels
	- They're simpler now
	- WP Admin break points are honored
	- Hover behavior is a different
	- Charts are centered vertically in the rows/columns
	- Some block interfact text was inheriting styles from the theme
	- Probably more things I'm forgeting
- Readme tweaks
- Added a simple DEVELOPERS.md to provide a quick list of commands that are useful when working on the plugin
- Adjusted the .gitignore a bit
- Added a Delimiter setting so CSV import/export can use CSV files for other regions better
@methnen methnen mentioned this pull request Feb 18, 2024
@webconstructor
Copy link

Nice, 2 things only

  • I would like a little margin bottom in the backend on the block: wp-block m-chart-selector so the borders have some breathing space
  • I am very happy with the import seperator option yet I would more expect it on the import / create graph page instead of as a general setting.
    That way it is easier to have a different seperator for each graph. I tested switching after uploading and all already downloaded graphs still worked so there is a way to do so now but still...

The code is nicely organised. Perhaps remove the commented boxshadow.

@methnen
Copy link
Owner Author

methnen commented Feb 21, 2024

Thanks @webconstructor, I'll get that margin added in.

And that's a greatidea on the CSV handling. I'll make it work that way instead.

@methnen
Copy link
Owner Author

methnen commented Feb 24, 2024

@webconstructor can you clarify on the margins a bit? I'm not quite sure where you're referring to.

- Added a screenshot of the block interface
- Updated the settings screenshot
- Refactored the CSV Delimiter settings a bit
	- The setting is now a default
	- When importing a Delimiter (set to the default) appear and can be overridden on a case by case basis
- Fixed an issue where labels were sometime duplicated
@methnen
Copy link
Owner Author

methnen commented Feb 24, 2024

@webconstructor This has been updated to include the CSV import changes and a fix for the doubled labels on the tooltips. Let me know if that seems good on your end?

Also still looking for some clarification on the additional margin you wanted.

@webconstructor
Copy link

Wow Methen, great stuff.

  • Label issue fixed
  • A separator default and an option to change it per graph

Very very nice.

Considering the margin
This is in the backend mainly (although the frontend may need it as well).
Blocks are stacked vertically so the borders of the chart-selector when using multiple charts without text in between hit each other.
.m-chart-selector: 1.5rem;
would fix that

@methnen
Copy link
Owner Author

methnen commented Mar 2, 2024

When I'm in the block view I see something that looks like this:

image

There's already some reasonable padding between block elements. I think this might be a theme related issue.

@methnen
Copy link
Owner Author

methnen commented Mar 2, 2024

@webconstructor Just a heads up I think this is ready to go out. Unless you see any last minute issues my plan is to merge this tonight and then push submit it to wordpress.org. Probably around 10PM Pacific.

@webconstructor
Copy link

No, no issues here
You're right about the margin in your screenshot
Can't wait for the release
A small step for man...

@methnen
Copy link
Owner Author

methnen commented Mar 4, 2024

I meant to get this out on the weekend but life intervened. I'll be shooting to launch it sometime this evening now instead.

@methnen methnen merged commit 6d2f372 into master Mar 10, 2024
@methnen methnen deleted the 1.11 branch March 13, 2024 21:48
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.

2 participants