From b6426e5a003d5ee028e0c08cc25e145f0df49a0f Mon Sep 17 00:00:00 2001 From: James Morris Date: Wed, 9 Mar 2022 15:02:36 +0000 Subject: [PATCH] Cleaned up members activity flow between that and details refs: https://github.com/TryGhost/Team/issues/1373 --- .../components/gh-member-details-activity.hbs | 23 ++---- .../app/styles/layouts/member-activity.css | 77 +++++++++++++++++-- .../admin/app/templates/members-activity.hbs | 4 +- ghost/admin/public/assets/icons/member.svg | 3 + 4 files changed, 79 insertions(+), 28 deletions(-) create mode 100644 ghost/admin/public/assets/icons/member.svg diff --git a/ghost/admin/app/components/gh-member-details-activity.hbs b/ghost/admin/app/components/gh-member-details-activity.hbs index 7dc97e7bbd..8a76b613b9 100644 --- a/ghost/admin/app/components/gh-member-details-activity.hbs +++ b/ghost/admin/app/components/gh-member-details-activity.hbs @@ -21,26 +21,15 @@ New member {{/if}} {{/unless}} + + {{#if (and @member.name @member.email)}} +  · {{@member.email}} + {{/if}} +

- {{#if (and @member.name @member.email)}} - {{@member.email}} - {{/if}} + {{svg-jar "member"}} See member details

- {{#unless @member.isNew}} -

- {{#if @member.geolocation}} - {{#if (and (eq @member.geolocation.country_code "US") @member.geolocation.region)}} - {{@member.geolocation.region}}, US - {{else}} - {{or @member.geolocation.country "Unknown location"}} - {{/if}} - {{else}} - Unknown location - {{/if}} - – Created on {{moment-format @member.createdAtUTC "D MMM YYYY"}} -

- {{/unless}} diff --git a/ghost/admin/app/styles/layouts/member-activity.css b/ghost/admin/app/styles/layouts/member-activity.css index 45299e13bc..28566ca0fe 100644 --- a/ghost/admin/app/styles/layouts/member-activity.css +++ b/ghost/admin/app/styles/layouts/member-activity.css @@ -1,29 +1,90 @@ +.gh-members-activity { + width: 100%; + max-width: 100%; + padding-left: 0; + padding-right: 0; +} + +.gh-members-activity .gh-canvas-header { + padding-left: 48px; + padding-right: 48px; + margin: 0 auto; + max-width: 1320px; +} + .gh-member-details-activity { - padding: 32px 0; - border-top: 1px solid var(--whitegrey); + margin: 0 auto; + max-width: 1320px; +} + +.gh-member-details-activity .gh-main-section-block { + padding: 15px 0 20px; + margin: 0 48px; + border-top: 1px solid var(--whitegrey); +} + +.gh-member-details-activity .gh-main-section-content { + margin: 0 -4px; } .gh-member-details-activity h3 { margin: 0; padding: 0; - font-size: 1.7rem; + font-size: 1.6rem; font-weight: 600; + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; } .gh-member-details-activity p { margin: 0; padding: 0; - color: var(--midgrey); - font-size: 1.3rem; + font-size: 1.4rem; + color: #40474f; } -.gh-member-details-activity a, -.gh-member-details-activity a:hover { - color: var(--black); +.gh-member-details-activity-link { + margin: 0 0 0 -2px; + padding: 0; + font-size: 1.4rem; + color: var(--green); + display: flex; + align-items: center; +} + +.gh-member-details-activity-link svg { + width: 1.6rem; + height: 1.6rem; + margin-right: 0.6rem; +} + +.gh-member-details-activity-link svg path { + fill: var(--green); +} + +.gh-member-details-activity-email { + margin: 0; + padding: 0; + font-size: 1.4rem; + color: var(--midgrey); } .gh-members-activity .gh-list-scrolling { height: calc(100vh - 96px); + margin-left: 0; + margin-right: 0; +} + +.gh-members-activity .gh-list-scrolling { + height: calc(100vh - 96px); +} + +.gh-members-activity .gh-list-scrolling .gh-list { + padding: 0 48px 48px; + margin: 0 auto; + max-width: 1320px; } .gh-members-activity .gh-list-scrolling thead th:last-child { diff --git a/ghost/admin/app/templates/members-activity.hbs b/ghost/admin/app/templates/members-activity.hbs index 9d6eed1fe2..9f74aa9d25 100644 --- a/ghost/admin/app/templates/members-activity.hbs +++ b/ghost/admin/app/templates/members-activity.hbs @@ -25,9 +25,7 @@
{{#if this.memberRecord}} - - - + {{/if}} {{#let (members-event-fetcher filter=(members-event-filter excludedEvents=this.fullExcludedEvents member=this.member) pageSize=50) as |eventsFetcher|}} {{#if eventsFetcher.data}} diff --git a/ghost/admin/public/assets/icons/member.svg b/ghost/admin/public/assets/icons/member.svg new file mode 100644 index 0000000000..d9c22fbc09 --- /dev/null +++ b/ghost/admin/public/assets/icons/member.svg @@ -0,0 +1,3 @@ + + +