Commit Graph

263 Commits

Author SHA1 Message Date
James Morris
a2e3b06548 Basic modal but needs more work
- This modal style is mostly there
- It needs key behaviours to work with React properly
- It triggers only when there isn't a name present
- It doesn't save yet or anything fancy

refs https://github.com/TryGhost/Team/issues/1682
2022-07-20 18:40:04 +01:00
James Morris
360c5f9779 Uncommented the reporting action
refs https://github.com/TryGhost/Team/issues/1685
2022-07-20 17:36:38 +01:00
James Morris
55f650f964 Updated some of the logic for the dropdowns for hidden, etc
refs https://github.com/TryGhost/Team/issues/1693
2022-07-20 17:26:29 +01:00
James Morris
48b4aaf838 Fixed up the loading state with proper positioning and adjusted colours
refs https://github.com/TryGhost/Team/issues/1692
2022-07-20 16:36:15 +01:00
Simon Backx
6eb32599bd Added darkmode support for loading spinner 2022-07-20 17:03:45 +02:00
Simon Backx
28921a8dbf Fixed randomly not loading comments area
refs https://github.com/TryGhost/Team/issues/1696

- Wait for the iframe to load before sending messages to it
- High chance this fixes the issue, but still need to monitor if this was the real cause.
2022-07-20 16:30:28 +02:00
Simon Backx
723b35bfa6 Added CSS support for custom local setup for Safari 2022-07-20 16:03:07 +02:00
Simon Backx
e4c9ecc621 Wired up really basic reply pagination
refs https://github.com/TryGhost/Team/issues/1689

Needs input on https://github.com/TryGhost/Team/issues/1689#issuecomment-1190189896
2022-07-20 14:16:06 +02:00
James Morris
e4d90f7a82 Basic working empty comments that needs further styling
refs https://github.com/TryGhost/Team/issues/1698
2022-07-20 12:58:28 +01:00
James Morris
75ac4dcdc3 Added a dummy reply pagination button ready to wire up
refs https://github.com/TryGhost/Team/issues/1689
2022-07-20 12:31:35 +01:00
Simon Backx
4a4db114f0 Updated loading state to kick in earlier
refs https://github.com/TryGhost/Team/issues/1692

- Moved Loading component to App (so it shows as a placeholder)
- Disabled loading settings from the API (not used for now), to speed up loading
2022-07-20 11:01:30 +02:00
Simon Backx
2657af11f6 Restricted actions for logged in members and paid members
refs https://github.com/TryGhost/Team/issues/1693

- Added a new data attribute to the injected stript tag: `data-comments-enabled`. This contains the commentsEnabled setting, and can be 'all' or 'paid' (when it is off the comments section is never injected).
- Added a new component `<NotPaidBox>`, which is visible when a member is signed in but doesn't have paid access to comment
- Prevented clicking the reply and like buttons when a member doesn't have access
2022-07-20 10:38:21 +02:00
James Morris
dd5a4bb35e Added a member check for showing more menu or not
- This should stop people who are not logged in from showing more menu

refs https://github.com/TryGhost/Team/issues/1693
2022-07-19 17:51:17 +01:00
James Morris
28b566f95a Added a member check for toggling on and off likes
- This should stop people who are not logged in from liking comments

refs https://github.com/TryGhost/Team/issues/1693
2022-07-19 17:45:22 +01:00
James Morris
dce15950cd Added a proper loading component for comments plus a few tweaks
- New loader component for when comments come in
- New spinner used for loader and the report button progress
- We don't seem to have a working loading state to show it though

refs https://github.com/TryGhost/Team/issues/1692
2022-07-19 17:23:02 +01:00
Simon Backx
a1b1dd9dad Fixed appVersion attribute warning 2022-07-19 16:55:47 +02:00
Simon Backx
98486d159b Added temporary working test 2022-07-19 16:46:16 +02:00
James Morris
4b504130d8 Working progress of the button when sending reporting
refs https://github.com/TryGhost/Team/issues/1685
2022-07-19 15:35:32 +01:00
Simon Backx
0424fcd099 Fixed context menus for comment of deleted member 2022-07-19 16:28:33 +02:00
Simon Backx
0da39ddeeb Added support for deleted members' comments
fixes https://github.com/TryGhost/Team/issues/1690
2022-07-19 16:22:09 +02:00
James Morris
6768ae2d55 First version of basic reporting modal
refs https://github.com/TryGhost/Team/issues/1685
2022-07-19 13:05:42 +01:00
Simon Backx
e84b4e5320 Added temporary report functionality without confirmation 2022-07-18 17:36:09 +02:00
Simon Backx
a0eb8af4ac Fixed empty member names in comments
refs https://github.com/TryGhost/Team/issues/1681

Default to 'Anonymous' for members without a name. Still need some UI to ask for a name.
2022-07-18 09:52:03 +02:00
Rishabh
fc3f091e2d 🐛 Fixed internal css leaking outside iframe
refs https://github.com/TryGhost/Team/issues/1675

- the main css file was imported in the root js script, causing it to be included alongside the final minified bundle and get injected outside the iframe.
- the main css is pushed as a separate file outside of bundle and used directly as link inside the iframe instead
2022-07-13 08:19:52 +05:30
Simon Backx
072574ee71 Fixed autofocus cursor position when editing comments 2022-07-12 16:18:26 +02:00
Simon Backx
e002904ce7 v0.1.2 2022-07-12 15:48:50 +02:00
James Morris
e7c2a0bbf6 Little tweak to make the transition work again on the form opening 2022-07-11 16:23:10 +01:00
Peter Zimon
3a5813fbf5 Fixed bug for darkmode
- Fixed a bug for darkmode not being loaded properly
2022-07-11 15:23:20 +02:00
Simon Backx
eea1bf19a1 Moved AuthFrame back to use useEffect 2022-07-08 13:29:04 +02:00
Peter Zimon
08cc74c894 Added sequential load for CSS
- Loading CSS from external source might take time which can result in
content appearing for a split-second without any formatting. To avoid
this, we added a CSS class that hides all content until the CSS is
properly loaded.
2022-07-08 13:28:39 +02:00
Simon Backx
6cb29e434a Fixed reply Form autofocus 2022-07-08 13:24:50 +02:00
Simon Backx
ef84ab2f40 Moved Avatar to new style 2022-07-08 13:21:37 +02:00
Peter Zimon
5f9f05d60e Fixed missing animation
- added animation CSS definitions for heartbeat animation
2022-07-08 13:18:27 +02:00
Peter Zimon
d44571be16 Fixed port for local development
- updated helpers to use port 4000 for local development
2022-07-08 13:16:03 +02:00
Simon Backx
4ac29fc40a Moved NotAuthorContextMenu to newer syntax 2022-07-08 13:14:32 +02:00
Peter Zimon
d89ff82582 Added animation to Like button
- added a heartbeat animation to the Like button for a little delight
2022-07-08 13:13:35 +02:00
Simon Backx
de6ea5aa45 Moved CommentContextMenu to newer syntax 2022-07-08 13:11:02 +02:00
Fabien "egg" O'Carroll
8b72c0ec8d v0.1.1 2022-07-08 13:09:02 +02:00
Fabien "egg" O'Carroll
b7fbd4e74e Setup app to support prod published flow 2022-07-08 13:09:02 +02:00
Simon Backx
aa8b729180 Moved AuthorContextMenu to newer syntax 2022-07-08 13:07:11 +02:00
Simon Backx
65eb942c73 Moved AdminContextMenu to newer style 2022-07-08 13:04:30 +02:00
Simon Backx
250df54a14 Removed onLoad again from useEffect 2022-07-08 13:03:49 +02:00
Simon Backx
54344c218e Fixed useEffect warnings 2022-07-08 12:55:02 +02:00
Simon Backx
99f0038633 Moved Pagination to newer React syntax 2022-07-08 12:49:56 +02:00
Simon Backx
2837f67f97 Updated edit form to set selection to end 2022-07-08 12:34:58 +02:00
James Morris
714ef334a0 Fixed up the reply box no having proper margins 2022-07-08 12:27:44 +02:00
James Morris
7aa4a4a44f Fixed position bugs for when form is with no comments and as edited 2022-07-08 12:21:02 +02:00
Peter Zimon
f1248435ba Fixed spaces not rendered in FF issue 2022-07-08 12:19:13 +02:00
James Morris
d7df229927 Fixed the missing semicolon problem with compiling 2022-07-08 12:13:41 +02:00
James Morris
8893b701b0 Fixed up the margin problem when there are no comments 2022-07-08 12:12:46 +02:00
Peter Zimon
880dc77044 Fix FF outline bug 2022-07-08 12:10:07 +02:00
Peter Zimon
45655fecd3 Updated CTA 2022-07-08 11:59:43 +02:00
James Morris
8fd5c5bb77 Tiny tweaks for alignment for boxes 2022-07-08 11:56:42 +02:00
James Morris
6b8232c637 Fixed up positioning problems 2022-07-08 11:55:48 +02:00
Simon Backx
bc6c1e0470 Added accent color to css variables 2022-07-08 11:47:14 +02:00
Peter Zimon
da21656b14 Added theme variables to context 2022-07-08 11:38:58 +02:00
Simon Backx
1550f582be Added blockquotes 2022-07-08 11:03:19 +02:00
James Morris
9f11eaf547 Refactored edit form down into base form, still needs fixes 2022-07-08 10:50:59 +02:00
Simon Backx
d55ffafb43 Fixed replies hidden if all removed or hidden 2022-07-08 10:49:01 +02:00
Simon Backx
0c8c89c651 Fixed linting warning in Comment component 2022-07-08 10:45:59 +02:00
Simon Backx
ff036bba90 Fixed iframe linting error 2022-07-08 10:45:14 +02:00
Peter Zimon
1fb189cae9 Added accent color 2022-07-08 10:44:18 +02:00
Simon Backx
c677f60f0b Added Tiptap core dependency 2022-07-08 10:43:33 +02:00
Simon Backx
a10c73ac89 Removed Tiptap starter kit from package.json 2022-07-08 10:41:17 +02:00
Simon Backx
8dfb77182e Removed Tailwind classes from comment contents 2022-07-08 10:39:13 +02:00
James Morris
19d2fba350 Combined add and reply form into one and adjusted styles 2022-07-08 10:33:25 +02:00
Simon Backx
10626d9bf7 Added editor to EditForm 2022-07-08 10:24:52 +02:00
James Morris
1a894e3120 Tweaks styles for add form now new editor is in there 2022-07-08 10:13:39 +02:00
Simon Backx
52d96c1bf0 Added editor to replyForm 2022-07-08 10:13:28 +02:00
Simon Backx
a2d5e51c76 Moved editor configuration to separate file 2022-07-08 10:07:43 +02:00
Simon Backx
d9a7062454 Disable editor autofocus 2022-07-08 10:00:32 +02:00
Simon Backx
6f0573ccb0 Added TipTap editor 2022-07-08 09:58:55 +02:00
Peter Zimon
50b7c089f8 Updated colors for textarea 2022-07-08 09:49:43 +02:00
Peter Zimon
200717f779 Making add form width dynamic based on comment count 2022-07-07 17:47:34 +02:00
Peter Zimon
81bb2fb441 More dark mode refinements 2022-07-07 17:39:36 +02:00
Peter Zimon
d0b069d2bb Dark mode refinements 2022-07-07 17:33:26 +02:00
Peter Zimon
3a79597c9a Add form darkmode 2022-07-07 17:23:00 +02:00
Simon Backx
6a11c5ed8d Revert "Added TipTap editor"
This reverts commit f2c1b3397c.
2022-07-07 17:18:40 +02:00
Simon Backx
f2c1b3397c Added TipTap editor 2022-07-07 17:12:24 +02:00
Peter Zimon
7376d5383d Added min width to context menu 2022-07-07 16:39:27 +02:00
Peter Zimon
b0f0d412e8 Updated add box styles 2022-07-07 16:35:10 +02:00
James Morris
6df89902c1 Tiny tweak to broken button placement 2022-07-07 16:28:17 +02:00
Peter Zimon
301a129665 Updated edit and reply form style 2022-07-07 16:24:37 +02:00
James Morris
828338331c Tiny tweaks to forms 2022-07-07 16:24:02 +02:00
Peter Zimon
508c60bb86 Adjusted shadows 2022-07-07 16:07:56 +02:00
James Morris
c1cb977980 Form tweaks 2022-07-07 16:05:28 +02:00
Simon Backx
2eabb69be3 Readded deleted comments
no issue

- Hiding deleted comments caused pagination issues.
- Updated text for logged in admins to differentiate between hidden and deleted comments
2022-07-07 15:42:45 +02:00
James Morris
838fe784f1 Little tweaks for better add and reply forms 2022-07-07 15:25:38 +02:00
Simon Backx
d0633fb70e Added logic to hide deleted comments without replies 2022-07-07 15:09:31 +02:00
James Morris
9e9cd270b9 New tweaks to the bottom text box 2022-07-07 14:49:10 +02:00
Kevin Ansfield
9735665ca1 Fixed like/unlike on replies 2022-07-07 14:47:10 +02:00
Peter Zimon
857dbbc315 Moved reply box above replies 2022-07-07 14:36:19 +02:00
Kevin Ansfield
b9740dbe1e Fixed hide comment on replies 2022-07-07 14:33:37 +02:00
Kevin Ansfield
165e84d8e0 Fixed delete/show on replies 2022-07-07 14:29:32 +02:00
Peter Zimon
09e2efe8fd Updated comment list layouts 2022-07-07 14:28:13 +02:00
Peter Zimon
c542918dae Avatar color refinements 2022-07-07 13:00:07 +02:00
James Morris
a142a86b5d Remove reply on a deleted comment 2022-07-07 12:59:50 +02:00
James Morris
c0cf87583f Little tweaks to replies and comments and a refactor 2022-07-07 12:58:07 +02:00
Peter Zimon
ff362cabbf Colorized avatars 2022-07-07 12:42:02 +02:00
James Morris
6948b1222b Quick visual fixes for replies 2022-07-07 12:34:09 +02:00