Skip to content

Fix alignment issue on Admin - Subscription Creation Workflow Approval#1184

Open
RakinduM wants to merge 10 commits intowso2:mainfrom
RakinduM:fix/Admin-Alignment-issue-in-workflow-approval-#3479
Open

Fix alignment issue on Admin - Subscription Creation Workflow Approval#1184
RakinduM wants to merge 10 commits intowso2:mainfrom
RakinduM:fix/Admin-Alignment-issue-in-workflow-approval-#3479

Conversation

@RakinduM
Copy link
Copy Markdown
Contributor

@RakinduM RakinduM commented Oct 13, 2025

Problem

  • Table Columns were not evenly distributed, causing inconsistent spacing
  • Approve/Reject buttons were stacked oddly in the action column

Before Fix

Screenshot 2025-10-13 at 12 21 48

Changes Made

✅ Make Column widths responsive
✅ Make action buttons responsive

After fix

Screenshot 2025-10-13 at 12 22 01

Fixes wso2/api-manager#3479

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 13, 2025

CLA assistant check
All committers have signed the CLA.

@RakinduM
Copy link
Copy Markdown
Contributor Author

Hi @tharikaGitHub, Could I ignore this code duplication error on the code or should I fix it. I’d appreciate any guidance on this.

@tharikaGitHub
Copy link
Copy Markdown
Member

Hi @RakinduM, yes you can ignore them as they are not related to your changes.

@RakinduM
Copy link
Copy Markdown
Contributor Author

Hi @RakinduM, yes you can ignore them as they are not related to your changes.

Thanks for confirming, I'll ignore those errors.

@RakinduM
Copy link
Copy Markdown
Contributor Author

Hi @tharikaGitHub, is it possible to re run the workflow ? The cypress failure looks like unrelated to my UI changes and seems like the socket ended up null during request cloning.

@RakinduM
Copy link
Copy Markdown
Contributor Author

@tharikaGitHub , Could we run the workflow again ? I updated my branch with the main as it was not updated when the last time workflow ran. However It showed that 1 test failing because

  • cypress couldn't able to find #itest-api-details-portal-config-acc within the timeout window.

Since this selector part is from Publisher portal and my changes are only done in Admin portal, it is seems like a timeout error as I guess, but I'm not sure though.

@tharikaGitHub
Copy link
Copy Markdown
Member

Hi @RakinduM,

I applied your fix locally. It is working fine. Following are my observations.

With smaller screen sizes like mobile, the Reject button get's cut off like below.

Screenshot 2025-10-28 at 18 53 58

But this was not the case previously.

Screenshot 2025-10-28 at 18 52 51

Do you think there would be a possibility to fix that behaviour?

Also shall we check if this behaviour is the same for other types of approval workflows and fix them if possible? Not only for subscription creation.

@RakinduM
Copy link
Copy Markdown
Contributor Author

Hi @tharikaGitHub,

Thanks for the feedback. I'm checking the feasibility to get that behaviour. I'll give an update soon.

@RakinduM
Copy link
Copy Markdown
Contributor Author

Hi @tharikaGitHub,

I fixed that issue on buttons get cut off when the screen gets smaller and now it is working as expected.

Additionally I have checked and fixed other necessary approval screens Subscription Update, Subscription Delete, Application Create, Application Delete, API State Change, API Revision Deployment, Registration Creation and User Creation.

  • Subscription Creation Workflow Screen After fix
Screenshot 2025-10-31 at 03 52 56 Screenshot 2025-10-31 at 03 53 37

@tharikaGitHub
Copy link
Copy Markdown
Member

Great! Thanks @RakinduM. I will review this PR and get back.

@tharikaGitHub
Copy link
Copy Markdown
Member

Hi @RakinduM, I applied your changes locally and observed the behaviour of different approval workflows. My observations are the following.

For workflows where the following change is not there, the action buttons seem to have some extra padding from the right side. For others it looked okay.

const setDefaultCellProps = () => ({ style: { width: '25%' } });
Screenshot 2025-10-31 at 13 03 26 Screenshot 2025-10-31 at 13 03 46

I think we will have to add setDefaultCellProps to the files that are missing it.

Also shall we add the same changes to APIRevisionDeployment.jsx as well?

@RakinduM
Copy link
Copy Markdown
Contributor Author

RakinduM commented Oct 31, 2025

Hi @tharikaGitHub,

Ohh, I thought that in the Application Registration Workflow that extra bit space in the action buttons is okay. That's why I didn't apply DefaultCellProps and fixed only the button alignment when they stack up in smaller screen like below image
Screenshot 2025-10-31 at 16 08 41

Also in APIRevisionDeployment, it looked fine and so I didn't make any changes there. But yeah I'll add those changes as needed and share an update soon.

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
87.4% Duplication on New Code (required ≤ 3%)

See analysis details on SonarQube Cloud

@RakinduM
Copy link
Copy Markdown
Contributor Author

Hi @tharikaGitHub,

I have fixed it on the Application Registration, API State Change and API Revision Deployment screens. I have attached some images for your reference.

Screenshot 2025-10-31 at 23 09 04 Screenshot 2025-11-01 at 00 49 06

YasasRangika pushed a commit to YasasRangika/apim-apps that referenced this pull request Dec 18, 2025
YasasRangika pushed a commit to YasasRangika/apim-apps that referenced this pull request Dec 18, 2025
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.

[Admin] Alignment issue in workflow approval

3 participants