Coder Social home page Coder Social logo

widoz / wp-entities-search Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 6.39 MB

A WordPress UI library to search Entities by Kind

Home Page: https://widoz.github.io/wp-entities-search/

License: GNU General Public License v2.0

PHP 5.91% TypeScript 88.98% JavaScript 4.26% Shell 0.86%
react ui ux wordpress

wp-entities-search's People

Contributors

dependabot[bot] avatar szepeviktor avatar widoz avatar

Watchers

 avatar  avatar

Forkers

szepeviktor

wp-entities-search's Issues

Make possible to use the state from within hooks once it has been instantiated the first time

Currently the only way to retrieve the state and the dispatch is to use the useEntitiesOptionsStorage hook, but that would mean that if I have to consume one of the two mentioned above I have to pass them and that requires additional parameters we can avoid if we allow the components and other hooks to access the state and dispatch directly by calling useEntitiesOptionsStorage.

Nodejs Yarn version collision

The Yarn lock file seems to be Yarn2, but Yarn2 needs Nodejs 18.

Usage Error: This tool requires a Node version compatible with >=18.12.0 (got 16.20.2).

๐Ÿ’ฅ What to do now?

Introduce styled components

Introduce styles for the built in controls, maybe producing something with more appealing for the end user.

Flag unexisting entities

One or more posts stored somewhere might no longer be available.

Ideally you would be informed about this case.

An idea is to add custom styles via a flag property for each of the posts that no longer exists.

See how's possible to perform this at once when the posts options list is retrieved rather than making an additional request to the server.

Do not forget the REST Response is merged with the hardcoded options.

Write GitHub Action to produce the build

  • Configure Eslint
  • Export to a new generic package for re-usage reasons
  • Introduce Logging
  • Optimize Build
  • Do not forget Package License
  • Allow to run the assets compilation manually? If so, how to deal with the tag creation?
  • Add @WordPress eslint rules?
  • Use prettier for grouping imports or?
  • Add Array type consistency via eslint
  • Solve Husky issue which is running during non github actions changes

Create Enriched Control Option

We want to include informations in a formatted pleasant way

  • Entity Title
  • Thumbnail
  • Excerpt / Truncate Content
  • Date?
  • ... what else?

Add Psalm

The project does not have psalm configuration

Wp Styles from scripts package are not applied

The styles from the @wordpress/scripts package are not applied. It might be because of the prettier dependency or some configuration. Maybe related to .editorconfig not sure.

Main problems are spacings.

Update env configuration and peer dependencies

  • Update to node 20
  • Install the peer dependencies missed
โžค YN0060: โ”‚ react is listed by your project with version 18.2.0, which doesn't satisfy what @wordpress/components (p1eae0) and other dependencies request (but they have non-overlapping ranges!).
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide @babel/core (p6481a), requested by @wordpress/eslint-plugin.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide @playwright/test (pe303c), requested by @wordpress/scripts.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide @types/node (pf38a4), requested by ts-node.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide eslint (p6a31a), requested by @wordpress/eslint-plugin.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide eslint (p7cd0e), requested by eslint-import-resolver-typescript.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide eslint-plugin-import (p4bf4d), requested by eslint-import-resolver-typescript.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide react-dom (p55682), requested by @wordpress/components.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide react-dom (p690a8), requested by @wordpress/scripts.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide react-dom (p9d909), requested by @testing-library/react.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide webpack (p192f6), requested by @wordpress/dependency-extraction-webpack-plugin.
โžค YN0002: โ”‚ wp-entities-search@workspace:. doesn't provide webpack (paf466), requested by ts-loader.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.