Skip to content

Conversation

@RaduCristianPopescu
Copy link
Contributor

@RaduCristianPopescu RaduCristianPopescu commented Sep 26, 2025

All Submissions:

Changes proposed in this Pull Request:

  • Added an offload image metric box in Dashboard
  • Added shortcuts for PRO users to go to the corresponding settings easily.

Pro Plan with Offloading

CleanShot 2025-10-06 at 16 40 17@2x

Free user

CleanShot 2025-10-06 at 17 00 59@2x

Other information:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds a new "Offloaded images" metric box to the Optimole dashboard, allowing users to view the count of images offloaded to the cloud and providing easy access to manage image offloading settings.

  • Added new metric card showing offloaded images count with management button
  • Enhanced existing metric cards with action buttons for quick navigation
  • Added localized strings for the new metric and button labels

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
inc/admin.php Added localized strings for the new offloaded images metric and action buttons
assets/src/dashboard/parts/connected/dashboard/index.js Added offloaded images metric card, action buttons for all metrics, and navigation logic

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@pirate-bot
Copy link
Collaborator

pirate-bot commented Sep 26, 2025

Plugin build for 9e1d87b is ready 🛎️!

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

assets/src/dashboard/parts/connected/dashboard/index.js:105

  • The property offload_image is not defined in the settingsTab object. This will cause the navigation function to receive undefined when the offload images button is clicked.
		value: () => navigate( settingsTab.offload_image )

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@RaduCristianPopescu RaduCristianPopescu changed the title Feat/offload metric feat: add offloads metrics with optional shortcuts Sep 26, 2025
@Soare-Robert-Daniel Soare-Robert-Daniel self-assigned this Oct 1, 2025
@Soare-Robert-Daniel Soare-Robert-Daniel force-pushed the feat/offload_metric branch 2 times, most recently from 2f31604 to ca57c50 Compare October 1, 2025 15:29
@Soare-Robert-Daniel Soare-Robert-Daniel self-requested a review October 1, 2025 15:39
@Soare-Robert-Daniel Soare-Robert-Daniel merged commit 5df00c9 into development Oct 8, 2025
11 checks passed
@Soare-Robert-Daniel Soare-Robert-Daniel deleted the feat/offload_metric branch October 8, 2025 12:20
@pirate-bot
Copy link
Collaborator

🎉 This PR is included in version 4.1.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@pirate-bot pirate-bot added the released Indicate that an issue has been resolved and released in a particular version of the product. label Oct 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Indicate that an issue has been resolved and released in a particular version of the product.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants