Skip to content

feat: add plugin-ui dependency and integrate DataViews#3133

Open
kzamanbd wants to merge 21 commits intofeature/tailwind-v4-migrationfrom
migrate/dataviews
Open

feat: add plugin-ui dependency and integrate DataViews#3133
kzamanbd wants to merge 21 commits intofeature/tailwind-v4-migrationfrom
migrate/dataviews

Conversation

@kzamanbd
Copy link
Copy Markdown
Contributor

  • Added @wedevs/plugin-ui as a dependency in package.json.
  • Imported styles from @wedevs/plugin-ui in base-tailwind.css.
  • Updated index.tsx to export DataViews from @wedevs/plugin-ui instead of local component.

All Submissions:

  • My code follow the WordPress' coding standards
  • My code satisfies feature requirements
  • My code is tested
  • My code passes the PHPCS tests
  • My code has proper inline documentation
  • I've included related pull request(s) (optional)
  • I've included developer documentation (optional)
  • I've added proper labels to this pull request

Changes proposed in this Pull Request:

Related Pull Request(s)

  • Full PR Link

Closes

  • Closes #

How to test the changes in this Pull Request:

  • Steps or issue link

Changelog entry

Title

Detailed Description of the pull request. What was previous behaviour
and what will be changed in this PR.

Before Changes

Describe the issue before changes with screenshots(s).

After Changes

Describe the issue after changes with screenshot(s).

Feature Video (optional)

Link of detailed video if this PR is for a feature.

PR Self Review Checklist:

  • Code is not following code style guidelines
  • Bad naming: make sure you would understand your code if you read it a few months from now.
  • KISS: Keep it simple, Sweetie (not stupid!).
  • DRY: Don't Repeat Yourself.
  • Code that is not readable: too many nested 'if's are a bad sign.
  • Performance issues
  • Complicated constructions that need refactoring or comments: code should almost always be self-explanatory.
  • Grammar errors.

FOR PR REVIEWER ONLY:

As a reviewer, your feedback should be focused on the idea, not the person. Seek to understand, be respectful, and focus on constructive dialog.

As a contributor, your responsibility is to learn from suggestions and iterate your pull request should it be needed based on feedback. Seek to collaborate and produce the best possible contribution to the greater whole.

  • Correct — Does the change do what it’s supposed to? ie: code 100% fulfilling the requirements?
  • Secure — Would a nefarious party find some way to exploit this change? ie: everything is sanitized/escaped appropriately for any SQL or XSS injection possibilities?
  • Readable — Will your future self be able to understand this change months down the road?
  • Elegant — Does the change fit aesthetically within the overall style and architecture?

- Added @wedevs/plugin-ui as a dependency in package.json.
- Imported styles from @wedevs/plugin-ui in base-tailwind.css.
- Updated index.tsx to export DataViews from @wedevs/plugin-ui instead of local component.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Mar 28, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: ce1ff71d-6b25-400c-93d4-223575d3be9c

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch migrate/dataviews

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Add @source reference to @wedevs/plugin-ui in base-tailwind.css and integrate the PluginUI ThemeProvider in the app layout. Imports PluginUIThemeProvider, defines pluginUITokens (primary color), and wraps ThemeContext children with <PluginUIThemeProvider pluginId='dokan-lite' tokens={pluginUITokens}>, enabling plugin-ui token theming across the app.
@kzamanbd kzamanbd changed the title feat: add @wedevs/plugin-ui dependency and integrate DataViews component feat: add plugin-ui dependency and integrate DataViews Mar 28, 2026
kzamanbd added 17 commits March 28, 2026 15:30
Update @wordpress/dataviews dependency to ^11.3.0 (package.json) and regenerate package-lock.json to reflect the upgraded package and its dependency tree. Remove the direct import of dataviews build CSS from src/components/dataviews/style.scss and change the visibility toggle class in AdminDataViewTable.tsx from '!hidden' to 'hidden' to align with the updated styling/utility classes.
Significantly expand the dataviews-table-migration SKILL.md: add full end-to-end guide for building vendor dashboard DataViews lists from scratch (types, hook, list component, module entry, route, PHP nav), clarify when to use vs not use, detail status-count patterns (A/B/C), provide migration scenarios, patterns, and checklists, and reorganize legacy migration guidance. Also update package-lock.json to point @wedevs/plugin-ui to a new commit hash.
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.

1 participant