Upgrade packages and interactivity api#32
Merged
Conversation
… management - Replace custom UI (table, inputs, modal, tabs, loading, pagination, etc.) with @wordpress/components and @wordpress/dataviews; remove the dead components - Use DataForm for create/edit with a block-editor description, date picker, and a two-column sectioned layout - Remove Tailwind CSS and its build pipeline; style with SCSS / WP components - Drop the top header bar; rely on the WordPress submenu (keep useMenuFix) - Add job fields: location, remote, category, experience, vacancies, salary (+negotiable), deadline, apply URL/email, featured — through model, REST schema, and migration - Add a wp-data-backed dashboard with cached job stats (/jobs/stats) - Fix status toggle: propagate API errors instead of a false success and refetch with the current filters - Fix dbDelta migrations (use CREATE TABLE so existing tables gain new columns) with version-based auto-upgrade; fix deprecated dynamic property in REST Api - Float snackbar notices bottom-right; make job titles link to the edit page
Document project architecture, commands, conventions, and the git commit policy: no automatic commits, no agent attribution, and commit as the repo owner's GitHub identity.
The lock file was regenerated on PHP 8.x, pinning doctrine/instantiator 2.0.0 (requires PHP 8.1), which made the locked install fail on the PHP 7.4 CI runners and blocked both PHPCS and PHPUnit jobs at the install step. - Pin config.platform.php to 7.4.33 and downgrade doctrine/instantiator to 1.5.0 so the lock installs on PHP 7.4. - Drop the redundant `composer update` from the PHPUnit workflow; it defeats the lock file and currently can't resolve the dev-master deps. - Update phpcs.xml for WPCS 3.0: remove the deleted StrictComparisons sniff reference, silence the relocated Universal short-array sniff, and exclude SeparateFunctionsFromOO for the main plugin bootstrap file. - Fix closure spacing in Blocks/Manager and use pre-increment in JobsController to satisfy PHPCS.
Introduce the job_categories table, link jobs via job_category_id, and provide models plus a manager for CRUD operations.
Register CRUD endpoints for categories and update the jobs controller to read and persist job_category_id.
Register a dedicated categories store slice and extend the jobs store to fetch, select, and persist job_category_id.
Provide a DataViews list page with drawer form for managing categories, add admin navigation, and let jobs pick a category in the form.
Introduce the companies table with Fortune 500 and popular brand seed data, logo metadata support, and versioned upgrade seeding for existing installs.
Replace WP user-based company lookups with full CRUD endpoints, stats, and dropdown support backed by the new companies table.
Register the companies Redux store and extend job categories with a stats resolver for dashboard aggregates.
Replace the WP Modal-based category form with a reusable side drawer that keeps the footer sticky and body scrollable on small screens.
Provide a companies management page with drawer CRUD, dashboard organization metrics, menu navigation, and inline company selection when creating jobs.
…RL sync. Dashboard stat cards now deep-link into filtered job views, and the REST API supports the new filter params used by DataViews.
Add @wordpress/interactivity, glob-based block entries, and webpack flags for experimental modules and PHP view copies.
Introduce blocks-interactivity bootstrap, JobsQuery, editor data helpers, option keys, and extend Block Manager registration.
Ship title, company, category, type, location, salary, deadline, vacancies, description, experience, and badge blocks for use inside job templates.
Introduce jobs list, template, search, pagination, count, and no-results blocks for filterable public job listings.
Render apply actions from job context on the front end with editor controls for button text.
Let editors swap jobs board and job detail layouts from registered patterns, with TemplateListEdit for in-editor previews.
Add jobs board and job detail pattern variants plus single-job page and HTML block templates.
Introduce PermalinkService, JobDetailRouter, admin permalink settings, and include permalink URLs on job API responses.
Create the public /jobs/ page on install and upgrade, with PageService for board URLs used across the plugin.
Resolve job detail block templates from plugin settings and registered patterns.
Store jobs board page, list defaults, apply button text, and job detail pattern with GET/PUT /job-place/v1/settings.
Expose a React settings screen and shared api-fetch/jobs-service modules for block editor and public jobs board behavior.
Style list cards, templates, apply button spacing, and job page layout using jobplace-prefixed SCSS.
Show company initials when logos are missing, improve form and drawer layout, remove submit icon clutter, and use dashicons-businessperson in the admin menu.
Flush permalinks on activation, defer flush via option flag, and add View/Edit Jobs Board plus Settings action links.
Expand README and agent guides with public blocks architecture, global settings, and front-end styling notes.
Document the major jobs board, settings, and admin refactor in the changelog.
Move config to the repo root, add global setup and request helpers, and cover dashboard and jobs list flows against the Job Manager admin UI.
Broaden backend matching, repair async REST fetching in the interactivity store, and sync search/page query params for reloadable board results.
Apply card styling to each repeated job item in the editor and on the frontend instead of the outer list wrapper.
Use a shared min-height so the search field and submit button line up in the board toolbar.
Replace outdated imgbb demo images with local captures of the block editor, front-end jobs board, and Job Manager admin screens.
Document all job-place/v1 endpoints including companies, categories, stats, and settings. Add an importable Postman collection and update README with local screenshots, REST summary, and e2e setup notes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.