Commit Graph

5364 Commits

Author SHA1 Message Date
Peter Zimon
20b113909c Fixed slash menu positioning bug
no refs.

- fixed visual bug that made Slash menu appear on top of the text
2020-04-21 11:12:47 +02:00
Kevin Ansfield
bdf7a1ba8a Hid slash menu when there are no items to display
no issue

- doesn't make sense to show a plain white box with a shadow
2020-04-21 09:16:13 +01:00
Rish
cd832a15bb Fixed members loading spinner alignment
refs https://github.com/TryGhost/Ghost/issues/11755

Loading spinner on members screen was not vertically centered, this updates the spinner position.
2020-04-21 13:42:34 +05:30
Nazar Gargol
4d23d0f0ca Added billing "update" CTA button
no issue

- Added billing update button to navigation menu. Ghost-Admin communicates with billing iframe and displays this button based on the plan data that iframe returns
- Ghost-Admin communicates with an iframe using same mechanism as with token exchange - throu `window.postMessage` API
2020-04-21 18:54:29 +12:00
Peter Zimon
e6998afb40 Icon fixes on integrations night shift
refs. https://github.com/TryGhost/Ghost/issues/11342

- replaced Zapier and Amp logos for SVGs with transparent background so that there's no white background in night shift
- inverted Unsplash icon in night shift (similarly to Mailchimp, Typeform etc.)
- replaced ellipsis icon for SVG and handled night shift color change
- removed unnecessary icon container drop shadow in integration detail pages for night shift
2020-04-20 17:51:56 +02:00
Daniel Lockyer
932032c792 v3.13.4 2020-04-20 16:30:34 +01:00
Kevin Ansfield
4a596d232e Fixed formatting only being applied to first replacement string in email card
no issue
2020-04-20 12:15:11 +01:00
renovate[bot]
957fa52c54 Update dependency ember-composable-helpers to v4 (#1549)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-20 08:50:20 +01:00
renovate[bot]
0b70157e21 Update dependency ember-composable-helpers to v3.2.0 (#1548)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-20 08:44:51 +01:00
Renovate Bot
cd8eb2f31e Update dependency pretender to v3.4.1 2020-04-20 05:37:58 +00:00
Kevin Ansfield
06849869a2 Fixed linting 2020-04-17 17:59:08 +01:00
Kevin Ansfield
abcb9da445 Prevent {} text replacements from receiving any formatting
no issue

- we don't want to allow text replacement strings to be split in half by html tags so we disallow any formats to be applied to them
- in the `<KoenigTextReplacementHtmlInput>`'s mobiledoc editor's `didUpdatePost` hook handler we loop over all markers in the post and if they have a code markup (we use this to represent replacement strings) then we strip any other markups
2020-04-17 17:49:16 +01:00
Kevin Ansfield
01faf606a6 Fixed <code> being persisted to email card payload
no issue

- `<code>` formatting is internal to the text replacement html input and shouldn't be persisted in the payload html
- adjust `cleanTextReplacementHtml` to strip out all `<code>` tags
- adjust `<CleanTextReplacementHtmlInput>` to strip `<code>` formatting when outputting html via the `onChange` action and to also put the `<code>` formatting back when receiving html
- adjust `<KoenigEmailCard>` to add the `<code>` formatting back around any replacement strings so that they are visible in the editor
2020-04-17 16:00:19 +01:00
Kevin Ansfield
2da73cf8ea Fixed {} chars being removed when applying text replacement format
no issue

- we want to keep the `{` and `}` chars when applying/removing formatting from text replacement strings so that you can see the full string with formatting
- added ability to specify a non-replaced special format which is used by the <kbd>Backspace</kbd> handler
- added helper utility to the text expansions for applying formatting to a match without replacing the "markdown" characters
2020-04-17 14:49:54 +01:00
Kevin Ansfield
00ccf68764 Fixed "special markups" not being separate across different editors
no issue

- if the character used to define a special markup is different such as in the text replacement editor, pressing Backspace was not inserting the correct characters
2020-04-17 14:11:19 +01:00
Kevin Ansfield
e5acb34a81 Fixed mobiledoc-kit automatically upgrading document version
refs 6f5c2a9557

- we previously set a fixed mobiledoc spec version in blank documents but when the editor was serializing to a json string after editing it was bumping the spec version
- makes the specific version a constant to be used when serializing any mobiledoc
2020-04-16 22:12:01 +01:00
Renovate Bot
4afa33e936 Update dependency testem to v3.0.4 2020-04-15 22:15:02 +00:00
Daniel Lockyer
2b69bb6564 v3.13.3 2020-04-15 14:06:16 +01:00
Daniel Lockyer
d1e6877e7a v3.13.2 2020-04-15 11:40:33 +01:00
renovate[bot]
01cf9f2460 Update dependency walk-sync to v2.1.0 (#1547)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-14 17:37:47 +01:00
renovate[bot]
00d5dae216 Update dependency @tryghost/kg-parser-plugins to v0.10.0 (#1546)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-14 14:49:17 +01:00
Renovate Bot
504a43c887 Update dependency @tryghost/timezone-data to v0.2.24 2020-04-13 18:17:06 +00:00
Renovate Bot
f726eb0141 Update dependency @tryghost/helpers to v1.1.27 2020-04-13 16:21:21 +00:00
renovate[bot]
2bf48616bb Update dependency ember-cli-htmlbars to v4.3.1 (#1543)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-13 09:33:51 +01:00
renovate[bot]
94992204bf Update dependency ember-resolver to v8 (#1545)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-13 09:17:55 +01:00
Renovate Bot
38500794d7 Update dependency @tryghost/timezone-data to v0.2.23 2020-04-10 21:18:05 +00:00
Renovate Bot
c8482d27d2 Update dependency @tryghost/helpers to v1.1.26 2020-04-10 21:17:29 +00:00
Renovate Bot
05354db4d2 Update dependency @tryghost/string to v0.1.9 2020-04-10 18:47:26 +00:00
Nazar Gargol
11e59e1f7e Moved billing page to a popup
no issue

- To simplify styling and give a better separation feeling from UI perspective
2020-04-09 17:26:11 +12:00
Renovate Bot
9316b2c467 Update dependency @tryghost/kg-parser-plugins to v0.9.3 2020-04-08 15:21:12 +00:00
Renovate Bot
2c0952c49d Update dependency @tryghost/kg-clean-basic-html to v0.1.8 2020-04-08 13:57:05 +00:00
Peter Zimon
48bbb23174 Added email indicator icon, card menu style bugfix
no refs.
- added indicator icon to appropriately show which card is a newsletter email one
- fixed bug of card menu staying the same height when triggered via "/" menu
2020-04-08 14:01:04 +02:00
Peter Zimon
9ecc808c3a Added email icon to Koenig card menu
no refs.
- added appropriate icon to Koenig menu to support newsletter email cards
2020-04-08 13:52:48 +02:00
Daniel Lockyer
bcd4059ac5 v3.13.1 2020-04-07 16:03:38 +01:00
Daniel Lockyer
a730a990a5 v3.13.0 2020-04-07 11:12:52 +01:00
Renovate Bot
55cb6e1dbf Update dependency autoprefixer to v9.7.6 2020-04-06 21:22:32 +00:00
Rish
2e1fc80849 Fixed save test
no issue
2020-04-06 18:02:19 +05:30
Daniel Lockyer
4f8e9b9bd8 Switched to using built-in Node.js for tests
no issue

- setup-node was randomly failing to download because of an upstream Node issue
- this commit switches to using the build in Node version
2020-04-06 13:14:13 +01:00
Kevin Ansfield
40f2b11524 Removed errant console.log 2020-04-06 13:12:17 +01:00
Rishabh Garg
c3883d4c6f 💄Updated save buttons to reset state (#1522)
* Updated save buttons to reset state

no issue

Currently the save buttons across Admin don't auto-reset to idle state after success/failure on run which can give false impression once user changes any value. This PR auto-resets the button to idle state after a fixed timeout if no subsequent action is performed as a short term UX improvement.

* Fixed success check for auto reset

* Updated timeout value

* Added explicit save button reset for pages

* Updated save buttons to reset via shortcut

Auto-reset for save buttons wasn't working if not done through manual click on task button previously, this handles by splitting the original save task in controller to handle shortcut saves.

* Updated reset check for only successful tasks

* Added save reset to code-injection and design settings

Co-authored-by: Peter Zimon <peter.zimon@gmail.com>
2020-04-06 16:17:28 +05:30
Daniel Lockyer
36bcae2205 Revert "Switched to Node.js container in Action"
- this reverts commit 3e3a2af71a.
- the tests require more components than Node, which the container
  doesn't have
2020-04-06 11:35:51 +01:00
Daniel Lockyer
3e3a2af71a Switched to Node.js container in Action
no issue

- using the setup-node action is currently failing because of an
  upstream issue - https://github.com/nodejs/node/issues/32683
- this commit switches to using a Docker container
2020-04-06 11:27:54 +01:00
Kevin Ansfield
a9b9b2f3ae Added first draft of email-only card
no issue

- adds "Email" card to the card menus when developer experiments is turned on
- adds `<KoenigTextReplacementHtmlInput>` implementing most of Koenig except:
  - uses html as it's input/output format
  - replaces backtick "code" formatting with `{replacement}`
  - no headings
  - no cards at all
  - minimal toolbar but all formatting is still available using markdown text expansions or keyboard shortcuts
2020-04-06 10:56:40 +01:00
Kevin Ansfield
07850fd319 🐛 Fixed Ctrl/Cmd+Enter toggling cards into edit mode
no issue

- the card wrapper component was registering an event handler for keyboard events when entering edit mode. This was a problem because those events were also picking up the initial ctrl/cmd+enter and then immediately toggling back out of edit mode
- added a 20ms timeout for registering the event handlers so that they're not working cross-purposes
2020-04-06 10:49:23 +01:00
Renovate Bot
0ec149e28c Update dependency chai-dom to v1.8.2 2020-04-03 16:35:09 +00:00
Renovate Bot
0eb208e131 Update dependency @tryghost/timezone-data to v0.2.22 2020-04-03 12:56:11 +00:00
Renovate Bot
cf7e982771 Update dependency @tryghost/string to v0.1.8 2020-04-03 10:18:25 +00:00
Renovate Bot
3ecdda8cf0 Update dependency @tryghost/helpers to v1.1.25 2020-04-03 08:17:15 +00:00
renovate[bot]
bb6474ba99 Update dependency broccoli-merge-trees to v4.2.0 (#1539)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2020-04-02 09:36:31 +01:00
Renovate Bot
fc67b60999 Update dependency ember-fetch to v8.0.1 2020-03-30 21:56:13 +00:00