-
Notifications
You must be signed in to change notification settings - Fork 1
Fetaure: Add Analytics Admin Page, Navigation & Controls #203
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alaca
wants to merge
22
commits into
develop
Choose a base branch
from
feature/analytics-admin-page
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 18 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
bb2b53c
initial commit
alaca 788e015
chore: fix eslint
alaca b2fc3b4
chore: fix eslint
alaca 4cf99c1
chore: formatting
alaca b907922
feature: add chart.umd.min.js
alaca 583086a
refactor: date handling and format
alaca 49c418c
feature: analytics test
alaca 7e39221
refactor: use proper css class, use include once
alaca 04d6ac0
refactor: implement copilot suggestion
alaca ed38519
refactor: copilot suggestion
alaca 0410267
refactor: update the styles to look more like in figma - needs more work
alaca dc88a3f
refactor: update test
alaca b7d2717
chore: formatting
alaca ee4b337
refactor: use Mailchimp_List_Subscribe_Form_Blocks class to get list
alaca 5b35917
Revert add submenu implementation.
iamdharmesh 5c48ef9
Update footer text on analytics page.
iamdharmesh 8d1a451
- Overall design improvements
iamdharmesh 328e992
Add datepicker.
iamdharmesh 9e6fa24
Fix set Date
iamdharmesh 09f2559
Apply suggestions from copilot
iamdharmesh 7501fd3
ignore chartjs from eslint.
iamdharmesh 1f3f392
Ignore "uncaught:exception" to prevent test from failing.
iamdharmesh File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,269 @@ | ||
| /** | ||
| * Mailchimp Analytics Page Styles | ||
| * | ||
| * @package Mailchimp | ||
| */ | ||
|
|
||
| .mailchimp-sf-analytics-filters { | ||
| display: flex; | ||
| flex-wrap: wrap; | ||
| align-items: flex-end; | ||
| gap: 16px; | ||
| margin-bottom: 20px; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-filter-group { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 4px; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-filter-group > label { | ||
| font-size: 14px; | ||
| font-weight: 400; | ||
| color: #1d2327; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-filter-group select { | ||
| min-width: 180px; | ||
| height: 36px; | ||
| padding: 0 8px; | ||
| border: 1px solid #8c8f94; | ||
| border-radius: 4px; | ||
| font-size: 14px; | ||
| color: #1d2327; | ||
| background-color: #fff; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-filter-group select:focus { | ||
| border-color: var(--mailchimp-color-link, #017e89); | ||
| box-shadow: 0 0 0 1px var(--mailchimp-color-link, #017e89); | ||
| outline: none; | ||
| } | ||
|
|
||
| /* Date picker trigger */ | ||
| .mailchimp-sf-date-picker { | ||
| position: relative; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-trigger { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| justify-content: space-between; | ||
| gap: 8px; | ||
| min-width: 220px; | ||
| height: 40px; | ||
| padding: 0 10px; | ||
| border: 1px solid #c3ced5; | ||
| color: var(--mailchimp-color-text);; | ||
| border-radius: 6px; | ||
| font-size: 14px; | ||
| background-color: #fff; | ||
| cursor: pointer; | ||
| text-align: left; | ||
| transition: all 0.2s; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-trigger:hover { | ||
| border-color: var(--mailchimp-color-link, #017e89); | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-trigger:focus { | ||
| border-color: var(--mailchimp-color-link, #017e89); | ||
| box-shadow: 0 0 0 1px var(--mailchimp-color-link, #017e89); | ||
| outline: none; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker.is-open .mailchimp-sf-date-picker-trigger { | ||
| border-color: var(--mailchimp-color-link, #017e89); | ||
| box-shadow: 0 0 0 1px var(--mailchimp-color-link, #017e89); | ||
| background-color: rgba(1, 126, 137, 0.08); | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-trigger .dashicons { | ||
| font-size: 18px; | ||
| width: 18px; | ||
| height: 18px; | ||
| line-height: 18px; | ||
| color: #50575e; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-trigger .indicator-date-picker { | ||
| display: flex; | ||
| position: absolute; | ||
| top: 0; | ||
| bottom: 0; | ||
| right: 0; | ||
| pointer-events: none; | ||
| justify-content: center; | ||
| padding: 0 8px; | ||
| width: 24px; | ||
| } | ||
|
|
||
| /* Date picker popover */ | ||
| .mailchimp-sf-date-picker-popover { | ||
| display: none; | ||
| position: absolute; | ||
| top: calc(100% + 6px); | ||
| left: 0; | ||
| z-index: 100; | ||
| min-width: 480px; | ||
| padding: 20px; | ||
| background: #fff; | ||
| border: 1px solid #dcdcde; | ||
| border-radius: 8px; | ||
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-popover.is-open { | ||
| display: block; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-popover-row { | ||
| display: flex; | ||
| gap: 12px; | ||
| margin-bottom: 16px; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-field { | ||
| display: flex; | ||
| flex-direction: column; | ||
| gap: 6px; | ||
| flex: 1; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-field label { | ||
| font-size: 14px; | ||
| font-weight: 400; | ||
| color: #4A5565; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-input-wrap { | ||
| position: relative; | ||
| width: 100%; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-field-calendar { | ||
| align-items: center; | ||
| bottom: 0; | ||
| display: flex; | ||
| justify-content: center; | ||
| padding: 0 6px; | ||
| pointer-events: none; | ||
| position: absolute; | ||
| right: 0; | ||
| top: 0; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-field-calendar svg { | ||
| display: block; | ||
| fill: #50575e; | ||
| height: 18px; | ||
| width: 18px; | ||
| } | ||
|
|
||
| #mailchimp-sf-settings-page .mailchimp-sf-date-picker-field select, | ||
| #mailchimp-sf-settings-page .mailchimp-sf-date-picker-field input[type="text"] { | ||
| height: 36px; | ||
| font-size: 14px; | ||
| color: #1d2327; | ||
| background-color: #fff; | ||
| width: 100%; | ||
| } | ||
|
|
||
| #mailchimp-sf-settings-page .mailchimp-sf-date-picker-field .mailchimp-sf-date-picker-input-wrap input[type="text"] { | ||
| padding-right: 30px; | ||
| } | ||
|
|
||
| #mailchimp-sf-settings-page .mailchimp-sf-date-picker-field select:focus, | ||
| #mailchimp-sf-settings-page .mailchimp-sf-date-picker-field input[type="text"]:focus { | ||
| border-color: var(--mailchimp-color-link, #017e89); | ||
| box-shadow: 0 0 0 1px var(--mailchimp-color-link, #017e89); | ||
| outline: none; | ||
| } | ||
|
|
||
| /* Popover actions — .mailchimp-sf-button.btn-primary / .btn-secondary.btn-small; pill shape to match design */ | ||
| .mailchimp-sf-date-picker-actions { | ||
| display: flex; | ||
| justify-content: flex-end; | ||
| gap: 8px; | ||
| } | ||
|
|
||
|
|
||
| /* Content area */ | ||
| .mailchimp-sf-analytics-content { | ||
| border: 1px solid #D3D0C8; | ||
| border-radius: 8px; | ||
| width: 100%; | ||
| overflow: auto; | ||
| padding: 24px; | ||
| background: #fff; | ||
| min-height: 200px; | ||
| margin-bottom: 20px; | ||
| box-sizing: border-box; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-placeholder { | ||
| display: flex; | ||
| align-items: center; | ||
| justify-content: center; | ||
| min-height: 200px; | ||
| color: #8c8f94; | ||
| font-size: 15px; | ||
| } | ||
|
|
||
| /* Deep link */ | ||
| .mailchimp-sf-analytics-deep-link { | ||
| margin-top: 16px; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-deep-link a { | ||
| display: inline-flex; | ||
| align-items: center; | ||
| gap: 6px; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-deep-link a:hover { | ||
| color: var(--mailchimp-color-text, #1d2327); | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-deep-link .dashicons { | ||
| font-size: 16px; | ||
| width: 16px; | ||
| height: 16px; | ||
| line-height: 16px; | ||
| } | ||
|
|
||
| /* Responsive */ | ||
| @media screen and (max-width: 782px) { | ||
| .mailchimp-sf-analytics-filters { | ||
| flex-direction: column; | ||
| align-items: stretch; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-popover { | ||
| min-width: auto; | ||
| width: calc(100vw - 60px); | ||
| left: 0; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-popover-row { | ||
| flex-direction: column; | ||
| } | ||
|
|
||
| .mailchimp-sf-date-picker-trigger { | ||
| width: 100%; | ||
| min-width: auto; | ||
| } | ||
|
|
||
| .mailchimp-sf-analytics-filter-group select { | ||
| min-width: auto; | ||
| width: 100%; | ||
| } | ||
| } | ||
|
|
||
| /* Datepicker */ | ||
| .datepicker-cell.selected, .datepicker-cell.selected:hover { | ||
| background-color: var(--mailchimp-color-link, #017e89); | ||
| color: #fff; | ||
| } | ||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.