Skip to content

cleanup: whats new page assets and unused codes#1808

Open
sapayth wants to merge 2 commits intoweDevsOfficial:developfrom
sapayth:cleanup/whats_new_page_assets
Open

cleanup: whats new page assets and unused codes#1808
sapayth wants to merge 2 commits intoweDevsOfficial:developfrom
sapayth:cleanup/whats_new_page_assets

Conversation

@sapayth
Copy link
Member

@sapayth sapayth commented Feb 6, 2026

Summary

This PR removes unused assets and code tied to the What’s New admin page. Dedicated What’s New CSS/LESS files are deleted, their registration and enqueue are removed from Assets and Admin, and the Grunt build no longer compiles those styles. The main admin stylesheet is trimmed so it no longer includes the removed What’s New rules. Built/minified assets and the .pot template are updated to match. Admin behavior is unchanged; only unused styles and references are removed to simplify the codebase and reduce asset size.

Testing Guideline
Check if all page are rendering with proper styling and without any broken CSS in the admin dashboard

Summary by CodeRabbit

  • Chores
    • Removed the What's New notice and its associated styling from the admin interface.

@coderabbitai
Copy link

coderabbitai bot commented Feb 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: e3984ef9-9769-4f91-b33a-71fe199c79e6

📥 Commits

Reviewing files that changed from the base of the PR and between 0a15b7d and 6f2db93.

📒 Files selected for processing (4)
  • Gruntfile.js
  • assets/css/admin.css
  • assets/less/admin.less
  • includes/Admin.php
💤 Files with no reviewable changes (4)
  • Gruntfile.js
  • assets/less/admin.less
  • assets/css/admin.css
  • includes/Admin.php

Walkthrough

This change removes the entire "What's New" notice feature from the codebase, including LESS and CSS stylesheets, build configuration rules, and PHP asset enqueue logic.

Changes

Cohort / File(s) Summary
Build Configuration
Gruntfile.js
Removed LESS compilation mapping for admin/whats-new.css build step.
LESS Stylesheets
assets/less/admin.less, assets/less/whats-new.less
Deleted whats-new.less entirely and removed its import from admin.less.
Compiled CSS
assets/css/admin.css, assets/css/admin/whats-new.css
Removed whats-new notice styling and related UI rules (101 lines) from admin.css; deleted entire whats-new.css file.
PHP Asset Management
includes/Admin.php, includes/Assets.php
Removed wpuf-whats-new stylesheet enqueue from Admin.php and style registration from Assets.php.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Suggested labels

needs: dev review, needs: testing

Poem

🐰 What's new is gone, the feature's past,
No notices here will ever last,
The CSS cleared, the LESS removed,
Our stylesheets sleek and smoothly grooved!
Hop along, the cleanup's done,
What's old is new when features run! ✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: removing unused 'What's New' page assets and related code from the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

@Rubaiyat-E-Mohammad
Copy link
Contributor

Some UI breaks @sapayth vai

Post-Forms-.-wpuf-.-WordPress.mp4

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants