Skip to content

Conversation

@PritamBag
Copy link
Contributor

Description

Fixed style related to core RequestProgressBar
Ref #437

Related Issues

<!-List any related issues that this pull request addresses. -->

Testing

I have tested it in my local system, it works as expected.

Checklist

  • I have performed a thorough self-review of my code.
  • I have added or updated relevant tests for my changes.
  • My code follows the project's style guidelines and best practices.
  • I have updated the documentation if necessary.
  • I have added or updated relevant comments in my code.
  • I have resolved any merge conflicts of my branch.

Screenshots (if applicable)

Additional Notes

Reviewers


Maintainer Notes

  • Has this change been tested in a staging environment?
  • Does this change introduce any breaking changes or deprecations?

fix style related to coreRequestProgressBar

Ref #437
@PritamBag PritamBag added the bugfix Pull Requests that fixes a bug label Mar 25, 2025
@PritamBag PritamBag self-assigned this Mar 25, 2025
Copy link

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 pull request fixes styling issues for the CoreRequestProgressBar component by updating its usage in layout components and adjusting its internals to accept external style classes.

  • Updated AppContainerLayout and AppBuilderContainerLayout to pass explicit styleClasses to CoreRequestProgressBar.
  • Modified CoreRequestProgressBar to sanitize incoming props and spread them onto its container.

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
package/components/layouts/_system/AppContainerLayout.js Passes explicit styleClasses to CoreRequestProgressBar
package/components/layouts/_system/AppBuilderContainerLayout.js Updates CoreRequestProgressBar invocation with styleClasses
package/components/feedback/CoreRequestProgressBar.js Refactors to accept sanitized props and spread them to CoreBox

import { sanitizeComponentProps } from "../../utils/componentUtil";
import CoreBox from "../layouts/CoreBox";
export default function CoreRequestProgressBar() {
export default function CoreRequestProgressBar(props) {
Copy link

Copilot AI Apr 30, 2025

Choose a reason for hiding this comment

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

Consider defining default prop values for styleClasses (for example, using defaultProps or default parameters) to ensure consistent styling when the component is used without explicitly passing styleClasses.

Suggested change
export default function CoreRequestProgressBar(props) {
export default function CoreRequestProgressBar(props = { styleClasses: [] }) {

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bugfix Pull Requests that fixes a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants