Commit Graph

856 Commits

Author SHA1 Message Date
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
James Morris
e582f8723a Tweaked the link for sign in 2022-07-07 12:03:46 +02:00
James Morris
88d2fc4bd2 Some basic styling for the sign in box 2022-07-07 12:02:58 +02:00
Simon Backx
68012c9264 Implemented editing replies 2022-07-07 11:39:12 +02:00
Simon Backx
25c86689f8 Fixed adding a reply to a new comment 2022-07-07 11:24:39 +02:00
Simon Backx
5d5e63ba92 Swapped reply form order and removed form after submitting 2022-07-07 11:22:23 +02:00
Simon Backx
6a179b06c4 Wired up adding replies 2022-07-07 11:12:44 +02:00
Peter Zimon
2e58f65b24 Added color scheme parameter 2022-07-07 11:10:31 +02:00
James Morris
f7528a032c Removed the total comments component as it's unneeded 2022-07-07 11:06:59 +02:00
James Morris
32010e5a6d Tiny quick tweak to reply, needs more though 2022-07-07 11:05:41 +02:00
James Morris
70e435ccb3 Added in basic reply toggle with form ready for logic 2022-07-07 10:56:45 +02:00
Simon Backx
8a67716b17 Moved to modern React syntax for the Comment component 2022-07-07 10:42:03 +02:00
Simon Backx
17ae8d6985 Fixed missing <button> type attribute 2022-07-07 10:30:48 +02:00
Simon Backx
0f6e4a86d0 Wired up editing comments 2022-07-07 10:29:29 +02:00
Simon Backx
125afc5e23 Moved to modern React syntax for More component 2022-07-07 10:17:55 +02:00
Simon Backx
405c981131 Moved to modern React syntax for EditForm 2022-07-07 09:41:59 +02:00
Simon Backx
319a477aaf Moved to modern React syntax for AddForm 2022-07-07 09:33:05 +02:00
James Morris
e762853ac6 Bit more radical style changes for comment layout 2022-07-06 20:10:31 +02:00
James Morris
02d81a36f1 Made unblur work on the text box when adding 2022-07-06 19:41:36 +02:00
James Morris
9ad8a0afcc Lots of little fixes and tweaks to styles 2022-07-06 19:22:52 +02:00
James Morris
ef4cbdde1d Fix height 2022-07-06 18:01:27 +02:00
James Morris
bb4957ba75 Indented replies 2022-07-06 17:55:09 +02:00
James Morris
84972865f9 Updated to fix some dark mode things 2022-07-06 17:47:32 +02:00
Simon Backx
8e0efd8bfa Removed console log 2022-07-06 17:36:37 +02:00
Simon Backx
dc196ddeb1 Fixed adding comments missing some properties 2022-07-06 17:30:50 +02:00
Hannah Wolfe
3ce42c05f6 Added basic replies 2022-07-06 17:26:50 +02:00
Simon Backx
f498811321 Added like/dislike comments 2022-07-06 17:20:19 +02:00
James Morris
c394037cab Added basic toggle state to like component 2022-07-06 17:02:18 +02:00
James Morris
ddd72eba98 Little tweaks 2022-07-06 16:55:14 +02:00
James Morris
50d5d74d91 Added autofocus to edit when it's on 2022-07-06 16:46:57 +02:00
James Morris
652d9191b5 Basic version of expandable textbox for adding 2022-07-06 16:45:50 +02:00
James Morris
1ac92467b5 Renamed form component again, now to separate from edit for now 2022-07-06 15:46:04 +02:00
James Morris
c7bc1f9b8d Fixed up a merge for forms 2022-07-06 15:42:42 +02:00
James Morris
cd85b7cad9 Updated forms and tweaks with styles 2022-07-06 15:41:47 +02:00
Hannah Wolfe
1e9b5d6bcf Added commented out Form component using hooks
- demoing how to use useState and function components to keep the code minimal
2022-07-06 15:18:56 +02:00
James Morris
22c99f3b31 Commented out reply component as we won't get to it yet 2022-07-06 15:10:21 +02:00
James Morris
fdc9e5f2e9 Different looking text boxes and other bits 2022-07-06 15:08:15 +02:00
Peter Zimon
5ce4924624 Added postcss and minify 2022-07-06 14:54:44 +02:00
James Morris
feae7836d7 Lots of little action tweaks 2022-07-06 12:16:29 +02:00
James Morris
7b424800aa Added back in the refactor of actions into components 2022-07-06 11:48:25 +02:00
James Morris
16279da1ac Merging in some changes to close dropdown along other 2022-07-06 11:48:25 +02:00
Simon Backx
121f1711cd Added 'show comment' implementation for admins 2022-07-06 11:45:45 +02:00
Simon Backx
7570b2ef04 Added check to hide more button without actions 2022-07-06 11:39:33 +02:00
Simon Backx
cc32b55ee9 Fixed context menu closing after actions 2022-07-06 11:32:56 +02:00
Simon Backx
1be6d305a0 Added close method to context menus 2022-07-06 11:31:01 +02:00
Simon Backx
03ab129380 Wired up deleting comments 2022-07-06 11:27:03 +02:00
Simon Backx
f711498a3e Wired up hiding comments admin API endpoint
no issue

The endpoint is not yet implemented on the backend, so it doesn't work yet.
2022-07-06 11:13:03 +02:00
James Morris
19ac2765e2 Added in a fake like along with dropdown together 2022-07-06 11:05:13 +02:00
James Morris
eec31572db Added in general styles to the dropdown 2022-07-06 10:47:57 +02:00
Simon Backx
d5c98b1002 Added admin to the shared context 2022-07-06 10:12:24 +02:00
James Morris
8aebf187f9 Little adjustment to dropdown placement and tiny tweaks 2022-07-06 10:10:08 +02:00
James Morris
af56ecf5ef Fixed an avatar component bug with multiple users 2022-07-06 10:02:02 +02:00
James Morris
73e6e053eb Refactored and cleaned up avatar component 2022-07-06 09:50:16 +02:00
Simon Backx
172bbc07c6 Added basic context aware context menus 2022-07-06 09:39:35 +02:00
Simon Backx
5479993c96 Fixed up getInitials helper 2022-07-06 09:28:05 +02:00
Simon Backx
9e445b8307 Added basic context menu button that doesn't work yet 2022-07-06 09:24:33 +02:00
James Morris
63050013ca Removed some unneeded bits 2022-07-06 08:09:59 +01:00
James Morris
7493cda1a6 Working avatars for comments but needs refactor 2022-07-05 16:49:18 +01:00
Peter Zimon
3161196554 Refined button 2022-07-05 17:35:58 +02:00
Simon Backx
f839931548 Added wip context menu 2022-07-05 17:32:51 +02:00
Peter Zimon
6079142f54 Added line-height to textarea 2022-07-05 17:30:00 +02:00
Peter Zimon
a54e1f0d12 Cleanup 2022-07-05 17:26:12 +02:00
Peter Zimon
5b4dbb34fc Added important to reset 2022-07-05 17:00:27 +02:00
James Morris
ce54fb4e36 Tiny tweaks for weeks 2022-07-05 15:44:40 +01:00
James Morris
68b7fe2e6b Small style tweaks for left aligned better 2022-07-05 15:43:30 +01:00
Peter Zimon
cc58f97e1a Copy update 2022-07-05 16:38:06 +02:00
Simon Backx
3522ee6ee1 Added whitespace and newline support 2022-07-05 16:37:32 +02:00
Peter Zimon
81db05a3ac Removed outline from focused textarea 2022-07-05 16:34:12 +02:00
Peter Zimon
45172d875a Hid auth iframe 2022-07-05 16:30:16 +02:00
Peter Zimon
870639db94 Updated dark mode styles 2022-07-05 16:26:51 +02:00
Simon Backx
0390995d76 Fixed pagination after new comments are added 2022-07-05 16:24:30 +02:00
Simon Backx
5841241a42 Fixed adding comments order 2022-07-05 16:10:24 +02:00
Simon Backx
fdeed0eeec Fixed comments order 2022-07-05 16:08:13 +02:00
Peter Zimon
771fd15f27 Applied dark mode to form 2022-07-05 16:05:17 +02:00
Peter Zimon
736d07fbd0 Added some dark styles 2022-07-05 15:56:53 +02:00
Simon Backx
4de5c7a64b Added API connection to add and view comments 2022-07-05 15:53:28 +02:00
Simon Backx
74defe9e0c Ignore admin api errors + added relative time formatting 2022-07-05 15:45:16 +02:00
Peter Zimon
c4c8e1ea62 Added contrast detection 2022-07-05 15:39:07 +02:00
Fabien "egg" O'Carroll
ea531e8c19 Added initial support for the Admin API
refs https://github.com/TryGhost/Team/issues/1664

This allows us to have access to the currently logged in admin user as well as
future access to show and hide comments via the Admin API.
2022-07-05 15:33:55 +02:00
James Morris
19493073f6 Tiny little tweaky things 2022-07-05 14:32:45 +01:00
Simon Backx
a40f8f114b Connected comments to real API endpoints 2022-07-05 15:30:09 +02:00
James Morris
de06441c5d Removed the public main again 2022-07-05 14:27:01 +01:00
James Morris
103c812758 Added more styles to get something a little nicer going 2022-07-05 14:22:02 +01:00
James Morris
6b2b22f9f3 Fixed up merged styles and added in a few more for fun 2022-07-05 14:21:02 +01:00
James Morris
f0f544d03d Merged with new styles 2022-07-05 14:18:14 +01:00
Peter Zimon
ebca33f561 Deleted main.css 2022-07-05 15:10:07 +02:00
Peter Zimon
dd5b870239 Added main.css to gitignore 2022-07-05 14:30:27 +02:00
Simon Backx
65ac303308 Added basic pagination and API mocking 2022-07-05 14:27:06 +02:00
Peter Zimon
c6fb93d280 Updated Tailwind config 2022-07-05 14:19:05 +02:00
James Morris
aaff736673 Basic components added with basic styling 2022-07-05 11:46:55 +01:00
Simon Backx
5ad294d630 Fixed wrong data attribute used for site url 2022-07-05 12:13:20 +02:00
Simon Backx
6933994738 Fixed comments not working for members without a name 2022-07-05 11:58:01 +02:00
Rishabh
1164bacd24 Added tailwind watch for dev mode
- adds auto compile for tailwind in dev mode
2022-07-05 11:53:27 +02:00
Simon Backx
d0acbad698 Renamed customIFrame component to ShadowRoot 2022-07-05 11:49:36 +02:00
Simon Backx
7e9b2d544c Replaced iframe with shadow DOM
no issue

- Instead of an iframe tag, we use the shadow DOM to separate CSS.
- The CSS is fully isolated, except for inherited properties. To fix that, we needed to add `:host { all: initial; }` to the CSS.
2022-07-05 11:46:14 +02:00
Peter Zimon
1504e84c7e Fixed commentbox not injected 2022-07-05 11:34:51 +02:00
Peter Zimon
eb10f02e5f Fixed local dev env crashing 2022-07-05 11:22:48 +02:00
Peter Zimon
ea54c073c3 Updated default Tailwind styles 2022-07-05 10:54:27 +02:00
Peter Zimon
93e7376403 Updated iframe size 2022-07-05 10:43:10 +02:00
Simon Backx
e76a62b34a Removed temporary inline styles 2022-07-05 10:40:26 +02:00
Simon Backx
710c265601 Added basic member authentication
refs https://github.com/TryGhost/Team/issues/1664

- Added basic API handling
- Added member authentication
- Basic avatar with form
- Setup sentry
2022-07-05 10:38:39 +02:00
Peter Zimon
0eeff657de Updated frame styles 2022-07-05 10:34:22 +02:00
Peter Zimon
32c396d75b Added Tailwind CSS 2022-07-05 10:15:12 +02:00
Simon Backx
6f0defc6a1 Added AppContext and basic Form component 2022-07-04 17:23:01 +02:00
Simon Backx
fccc18f51c Updated comment box location 2022-07-04 16:12:43 +02:00
Rishabh
aeb644cf84 Fixed lint 2022-07-04 16:00:02 +02:00
Rishabh
c71db17200 Fixed tests 2022-07-04 15:59:11 +02:00
Simon Backx
a47dc6b7c2 Replaced portal wording 2022-07-04 15:33:51 +02:00
Simon Backx
70da7e2331 Replaced portal wording in terminal output 2022-07-04 15:32:35 +02:00
Rishabh
6082a1a932 Updated dev url
refs https://github.com/TryGhost/Team/issues/1664
2022-07-04 15:22:10 +02:00
Rishabh
4e17ab2368 Updated default dev port for comments script
refs https://github.com/TryGhost/Team/issues/1664
2022-07-04 15:19:49 +02:00
Rishabh
cc4eda6478 Added custom build setup
refs https://github.com/TryGhost/Team/issues/1664

- overrides webpack config to generate single script for publishing
- adds custom scripts for dev and production mode
2022-07-04 15:15:01 +02:00
Rishabh
59865f1e0f Initial commit 2022-07-04 14:54:12 +02:00
Rishabh
7042386db2 Initialize project using Create React App 2022-07-04 14:53:12 +02:00