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

Add foundation for displaying data of entities themselves #15

Closed
10 tasks done
versusbassz opened this issue May 29, 2021 · 2 comments
Closed
10 tasks done

Add foundation for displaying data of entities themselves #15

versusbassz opened this issue May 29, 2021 · 2 comments
Assignees
Milestone

Comments

@versusbassz
Copy link
Owner

versusbassz commented May 29, 2021

The quite large task. Added a project for that: https://github.com/versusbassz/wp-meta-viewer/projects/2

Sub-tasks

  • refactor backend of meta fields to a Fetcher-class
  • "mysql" order for entity props
    • Fix visual problems (the width and wrapping of the "DB order" column in different situations)
  • memorize a chosen tab (by entity type, stored in localStorage as a json hashmap)
  • Improve displaying of tabs/sections names (human readable names, not ids)
  • to do smth with post_content (related to Add an ability to toggle visibility of any field #2)
  • Handle wp_errors on the backend properly + display them on frontend

Misc

@versusbassz versusbassz added enhancement New feature or request promotion labels May 29, 2021
@versusbassz versusbassz added this to the Future milestone May 29, 2021
@versusbassz versusbassz self-assigned this May 29, 2021
@versusbassz versusbassz added feature-request %username% wants this and removed enhancement New feature or request labels May 30, 2021
@versusbassz versusbassz modified the milestones: Future, 0.5.0 Jun 6, 2021
@versusbassz versusbassz modified the milestones: 0.5.0, 0.3.0 Jul 17, 2021
@versusbassz versusbassz changed the title Add foundation for display data of entities themselves Add foundation for displaying data of entities themselves Jul 17, 2021
versusbassz added a commit that referenced this issue Jul 17, 2021
versusbassz added a commit that referenced this issue Jul 17, 2021
versusbassz added a commit that referenced this issue Aug 7, 2021
…lobal reorganization of codebase because of that...

== Backend
- introduced "Fetcher" PHP-classes (EntityFetcher for now)
- changed format of data that backend provides for the metabox (initial rendering or AJAX)
- only i18n-strings and "ajax_url" has been kept for the global JS-variable, others values has been moved to the metabox state ("settings" part)

== Frontend
- file "Metabox.js" has been separated to lots of component-files
- old react-components have been renamed (by meaning)
- JS-helpers separated to separate files (by purpose)
- global state of the metabox and HTTP-requests logic has been extracted to MetaboxContextProvider
- added "Tabs" react-component

== Minor changes
- installed "classnames" NPM-package
- "str()" JS-helper displays id of a string if its translation isn't found (mistakes are more obvious with such behaviour)
- fixed 2 issues with types in inc/logic.php
@versusbassz
Copy link
Owner Author

Most of the task has been done. Several sub-tasks left (polishing).

versusbassz added a commit that referenced this issue Aug 8, 2021
versusbassz added a commit that referenced this issue Aug 8, 2021
versusbassz added a commit that referenced this issue Sep 6, 2021
versusbassz added a commit that referenced this issue Sep 6, 2021
versusbassz added a commit that referenced this issue Jan 20, 2022
@versusbassz
Copy link
Owner Author

Done. This is a big step forward 🍰

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant