-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH Allow status flags to be used generically
Take styling for versioned badges in their various places and centralise it as a more generic badge, plus ensure LeftAndMain breadcrumbs include status flags
- Loading branch information
1 parent
1222c65
commit fd9430a
Showing
9 changed files
with
54 additions
and
49 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.badge { | ||
display: inline-block; | ||
background-color: $color-notice; | ||
border-color: transparent; | ||
color: $body-color-dark; | ||
// Badges with no text aren't displayed | ||
&:empty { | ||
display: none; | ||
} | ||
} | ||
|
||
.badge--breadcrumbs { | ||
border-width: 1px; | ||
border-style: solid; | ||
margin-left: $btn-spacing; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
@retry @job1 | ||
Feature: Search in GridField | ||
As a content author | ||
I want to see the status flags for records in gridfields | ||
So that I can see at a glance what state my data is in | ||
|
||
Background: | ||
Given the "Company" "Walmart" with "Category"="Retail" | ||
And the "group" "EDITOR" has permissions "Access to 'Pages' section" and "Access to 'GridField Test Navigation' section" and "TEST_DATAOBJECT_EDIT" | ||
And I am logged in as a member of "EDITOR" group | ||
|
||
Scenario: I see status flags in gridfields | ||
When I go to "/admin/gridfield-test-navigation" | ||
And I should see "Walmart" in the "#Form_EditForm .col-Name" element | ||
And I should see "string-flag" in the "#Form_EditForm .col-Name .badge.status-company-status-flag1" element | ||
And I should see "array-flag" in the "#Form_EditForm .col-Name .badge.status-company-status-flag2" element | ||
Then I click "Walmart" in the "#Form_EditForm" element | ||
And I should see "Walmart" in the ".breadcrumbs-wrapper" element | ||
And I should see "string-flag" in the ".breadcrumbs-wrapper .badge.status-company-status-flag1" element | ||
And I should see "array-flag" in the ".breadcrumbs-wrapper .badge.status-company-status-flag2" element |