diff --git a/app/assets/stylesheets/classified_listings.scss b/app/assets/stylesheets/classified_listings.scss index d03684044..9d6bf55ac 100644 --- a/app/assets/stylesheets/classified_listings.scss +++ b/app/assets/stylesheets/classified_listings.scss @@ -689,11 +689,15 @@ form.listings-contact-via-connect { } } - .dashboard-listings-sorting { + .dashboard-listings-actions { padding-bottom: 15px; display: flex; justify-content: space-between; align-items: center; + + .listings-dashboard-filter-buttons { + margin-bottom: -10px; + } @media screen and (max-width: 426px) { flex-direction: column; @@ -736,7 +740,9 @@ form.listings-contact-via-connect { border-radius: 3px; position: relative; background: var(--theme-container-background, #fff); - + &.expired { + opacity: 0.7; + } .listing-org { @include themeable( background, diff --git a/app/javascript/listings/__tests__/__snapshots__/listingDashboard.test.jsx.snap b/app/javascript/listings/__tests__/__snapshots__/listingDashboard.test.jsx.snap index ddc80c851..0ee593ec5 100644 --- a/app/javascript/listings/__tests__/__snapshots__/listingDashboard.test.jsx.snap +++ b/app/javascript/listings/__tests__/__snapshots__/listingDashboard.test.jsx.snap @@ -7,18 +7,24 @@ preact-render-spy (1 nodes) Personal Yoyodyne Infotrode @@ -39,7 +45,33 @@ preact-render-spy (1 nodes) -
+
+
+ + All + + + Active + + + Expired + +
@@ -62,6 +91,8 @@ export class ListingDashboard extends Component { this.setState({ selectedListings: org.id })} className={`rounded-btn ${selectedListings === org.id ? 'active' : ''}`} + role="button" + tabIndex="0" > {org.name} @@ -100,6 +131,8 @@ export class ListingDashboard extends Component { className={`rounded-btn ${ selectedListings === 'user' ? 'active' : '' }`} + role="button" + tabIndex="0" > Personal @@ -120,7 +153,7 @@ export class ListingDashboard extends Component {
{sortingDropdown}
- {showListings(selectedListings, listings, orgListings)} + {showListings(selectedListings, listings, orgListings, filter)}
); diff --git a/app/views/classified_listings/dashboard.html.erb b/app/views/classified_listings/dashboard.html.erb index 3a95f7454..a6a5ca9a3 100644 --- a/app/views/classified_listings/dashboard.html.erb +++ b/app/views/classified_listings/dashboard.html.erb @@ -1,12 +1,12 @@