[MGNLCDEP-88] Update activation states using new status icons Created: 01/Mar/16  Updated: 11/Jan/17  Resolved: 10/Jan/17

Status: Closed
Project: Content Dependencies
Component/s: None
Affects Version/s: None
Fix Version/s: 1.6.3

Type: Improvement Priority: Major
Reporter: Hieu Nguyen Duc Assignee: Khuong Nguyen
Resolution: Fixed Votes: 0
Labels: dependencies
Remaining Estimate: 0d
Time Spent: 2d 7h
Original Estimate: 1.5d

Attachments: PNG File dependencyTab.png    
Issue Links:
dependency
depends upon MGNLUI-3596 Indicate the activation state using n... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:
Sprint: Saigon 76 (xmas), Saigon 77, Saigon 78
Story Points: 3

 Description   
  • In workbench we updated activation states using new icons. Please update DependenciesField to use the new activation state icons.
  • We created the CSS constants in StatusColumnFormatter that you can reuse.
    public static final String ACTIVATION_STATUS_MODIFIED_STYLE = "activation-status icon-status-orange color-yellow";
    public static final String ACTIVATION_STATUS_ACTIVATED_STYLE = "activation-status icon-status-green color-green";
    public static final String ACTIVATION_STATUS_NOT_ACTIVATED_STYLE = "activation-status icon-status-red color-red";
    
  • Result after fixing.


 Comments   
Comment by Khuong Nguyen [ 05/Jan/17 ]

Currently the CSS constants in StatusColumnFormatter is out of update. The newest codes are:

public enum ActivationStatus {

        ACTIVATED("icon-status-green", "color-green"),
        MODIFIED("icon-status-orange", "color-yellow"),
        NOT_ACTIVATED("icon-status-red", "color-red");

        private final String baseStyleName = "activation-status";
        private String icon;
        private String color;

        ActivationStatus(String icon, String color) {
            this.icon = icon;
            this.color = color;
        }

        public String getStyleName() {
            return baseStyleName + " " + icon + " " + color;
        }

        public String getBaseStyleName() {
            return baseStyleName;
        }

        public String getIcon() {
            return icon;
        }

        public String getColor() {
            return color;
        }
    }
Generated at Mon Feb 12 00:12:26 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.