WEB-722 Standardize all action buttons in the checker inbox#3152
Conversation
|
Note
|
| Cohort / File(s) | Summary |
|---|---|
Checker Inbox Button Styling src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.html, src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.scss |
In the template, the Approve and Reject buttons had their class names changed to mat-success tasks-action-btn and mat-reject tasks-action-btn. SCSS was refactored: new .tasks-action-btn utility, consolidated .mat-mdc-raised-button.mat-success and .mat-mdc-raised-button.mat-reject rules, and a new button.mat-mdc-raised-button.action-button variant with updated box-shadow, border-radius, typography, spacing, and transitions. Layout/search styles remain present. |
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Suggested reviewers
- IOhacker
- alberto-art3ch
🚥 Pre-merge checks | ✅ 3 | ❌ 1
❌ Failed checks (1 warning)
| Check name | Status | Explanation | Resolution |
|---|---|---|---|
| Merge Conflict Detection | ❌ Merge conflicts detected (35 files): ⚔️ README.md (content)⚔️ angular.json (content)⚔️ docker-compose.yml (content)⚔️ env.sample (content)⚔️ proxy.conf.js (content)⚔️ proxy.localhost.conf.js (content)⚔️ src/app/clients/client-stepper/client-general-step/client-general-step.component.html (content)⚔️ src/app/clients/client-stepper/client-general-step/client-general-step.component.scss (content)⚔️ src/app/clients/client-stepper/client-general-step/client-general-step.component.ts (content)⚔️ src/app/clients/clients.service.ts (content)⚔️ src/app/clients/edit-client/edit-client.component.html (content)⚔️ src/app/clients/edit-client/edit-client.component.scss (content)⚔️ src/app/clients/edit-client/edit-client.component.ts (content)⚔️ src/app/products/share-products/share-product-stepper/share-product-market-price-step/share-product-market-price-step.component.ts (content)⚔️ src/app/shared/footer/footer.component.scss (content)⚔️ src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.html (content)⚔️ src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.scss (content)⚔️ src/assets/env.js (content)⚔️ src/assets/env.template.js (content)⚔️ src/assets/translations/cs-CS.json (content)⚔️ src/assets/translations/de-DE.json (content)⚔️ src/assets/translations/en-US.json (content)⚔️ src/assets/translations/es-CL.json (content)⚔️ src/assets/translations/es-MX.json (content)⚔️ src/assets/translations/fr-FR.json (content)⚔️ src/assets/translations/it-IT.json (content)⚔️ src/assets/translations/ko-KO.json (content)⚔️ src/assets/translations/lt-LT.json (content)⚔️ src/assets/translations/lv-LV.json (content)⚔️ src/assets/translations/ne-NE.json (content)⚔️ src/assets/translations/pt-PT.json (content)⚔️ src/assets/translations/sw-SW.json (content)⚔️ src/environments/environment.prod.ts (content)⚔️ src/environments/environment.ts (content)⚔️ src/typings.d.ts (content)These conflicts must be resolved before merging into dev. |
Resolve conflicts locally and push changes to this branch. |
✅ 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 clearly and accurately summarizes the main change: standardizing action button styling in the checker inbox component. |
| 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
⚔️ Resolve merge conflicts (beta)
- Auto-commit resolved conflicts to branch
WEB-722-standardize-all-action-buttons-in-the-checker-inbox - Post resolved changes as copyable diffs in a comment
No actionable comments were generated in the recent review. 🎉
🧹 Recent nitpick comments
src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.scss (2)
66-72:!importanton icon-button but not on raised-button — inconsistent override strategy.Lines 66–67 use
!importantto override Angular Material's default icon-button colours, but the raised-button overrides at lines 77–78 rely solely on selector specificity. If the component's specificity is enough for raised buttons, it should be enough for icon buttons too (both live under.tab-container). Conversely, if!importantis genuinely needed here, the raised-button rules may silently fail to apply.Pick one strategy and apply it consistently — prefer higher specificity (e.g. adding
buttonor the host-scoped attribute) over!important.
81-83:.tasks-action-btnduplicates the existing.action-buttonrule at line 132.Both
.tasks-action-btn(line 81) and.action-button(line 132) set onlymargin: 0. If both classes serve the same purpose of resetting button margins, consolidate into one class to avoid confusion.
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.
Comment @coderabbitai help to get the list of available commands and usage tips.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In
`@src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.scss`:
- Around line 79-83: The CSS selectors target legacy Angular Material classes
(".mat-raised-button.mat-success" and ".mat-raised-button.mat-reject") which MDC
renders as ".mat-mdc-raised-button", so update the selectors to use the MDC
class names (e.g., ".mat-mdc-raised-button.mat-success" and
".mat-mdc-raised-button.mat-reject") so the color and background-color rules
apply to the Approve/Reject buttons; keep the same declarations (color: `#fff`;
background-color: `#111`;) and adjust any other similar selectors in
checker-inbox.component.scss that use ".mat-raised-button" to their
".mat-mdc-raised-button" equivalents.
🧹 Nitpick comments (3)
src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.scss (2)
66-67: Avoid!important— prefer increased specificity instead.Using
!importantonbackgroundandcolormakes future overrides and theming difficult. Since you're already scoping under.tab-container button.mat-mdc-icon-button, the specificity should be sufficient without!important.♻️ Proposed removal of `!important`
- background: `#232323` !important; - color: `#fff` !important; + background: `#232323`; + color: `#fff`;
89-101:action-buttonstyles are now only used by the Delete button — consider cleanup.The Approve and Reject buttons were changed from
action-buttontotasks-action-btn, so thisbutton.mat-mdc-raised-button.action-buttonrule now only targets the Delete button. If those enhanced shadow/font styles are intended for all three action buttons, they should target.tasks-action-btnas well, or be consolidated. If only for the Delete button, the selector name is misleading.src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.html (1)
31-37: Inconsistent class naming across sibling action buttons.Approve and Reject now use
tasks-action-btn, while Delete (line 34) still usesaction-button. Since these are all peer action buttons in the same row, using a single shared class for common styling (spacing, shadow, typography) would be cleaner and easier to maintain.
src/app/tasks/checker-inbox-and-tasks-tabs/checker-inbox/checker-inbox.component.scss
Outdated
Show resolved
Hide resolved
b6dbaef to
f904673
Compare
|
@IOhacker Thank You for the review |
Changes Made :-
-Updated SCSS to set a solid black background for Approve, Reject, and dropdown buttons in the checker inbox.
WEB-722
Before :-
After :-
Summary by CodeRabbit