Skip to content
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

feat: Discussions panel #19272

Merged
merged 172 commits into from
Jan 4, 2024
Merged

feat: Discussions panel #19272

merged 172 commits into from
Jan 4, 2024

Conversation

benjackwhite
Copy link
Contributor

@benjackwhite benjackwhite commented Dec 12, 2023

Problem

Most internally requested feature internally for Notebooks was Comments.

Changes

  • Adds a new sidepanel called "Discussions" which allows generic commenting and replying on most PostHog pages
  • Adds a tab with filtering tools for activity, so you can see activity relevant to the dashboard/notebook/insight you are viewing.
  • Adds a new logic selector like "breadcrumbs" called "activityFilters" for customising the scope of the discussion as well as the Activity panel
  • Adds a tooltip button when selecting text to comment, which opens the discussion panel with the relevant comments selected.

Follow up work

  • Display comments in activity (made hard due to the way the thing is designed...)
  • Only allow commenting on a single line / don't allow broken up marks if possible
  • Mentions in comments (do we need tiptap for this? 🙈 )
  • Mentions in notebooks (i.e. - if a new mention is added, eventually add an activity log entry)

How did you test this code?

...

posthog/models/comment.py Outdated Show resolved Hide resolved
@daibhin daibhin mentioned this pull request Dec 13, 2023
9 tasks
@benjackwhite benjackwhite requested a review from daibhin December 15, 2023 15:10
benjackwhite and others added 13 commits December 15, 2023 16:11
# Conflicts:
#	frontend/__snapshots__/scenes-app-experiments--running-trend-experiment.png
#	frontend/__snapshots__/scenes-app-insights--trends-area-breakdown--webkit.png
#	frontend/__snapshots__/scenes-app-insights--trends-area-edit--webkit.png
#	frontend/__snapshots__/scenes-app-insights--trends-line-multi-edit--webkit.png
#	frontend/src/layout/navigation-3000/Navigation.scss
#	latest_migrations.manifest
# Conflicts:
#	frontend/src/lib/lemon-ui/LemonSelect/LemonSelect.scss
# Conflicts:
#	frontend/__snapshots__/scenes-app-experiments--running-trend-experiment.png
#	frontend/src/lib/components/ScrollableShadows/ScrollableShadows.scss
Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.31 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.31 kB (0%)

compressed-size-action

Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.31 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.31 kB (0%)

compressed-size-action

Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.26 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.26 kB (0%)

compressed-size-action

Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.26 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.26 kB (0%)

compressed-size-action

Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.26 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.26 kB (0%)

compressed-size-action

# Conflicts:
#	frontend/src/lib/components/MemberSelect.tsx
Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.31 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.31 kB (0%)

compressed-size-action

@benjackwhite benjackwhite requested a review from daibhin January 2, 2024 17:35
(person): ActivityFilters => {
return {
scope: ActivityScope.PERSON,
// TODO: Is this correct? It doesn't seem to work...
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just commenting in case you want to come back to this

Copy link
Contributor

github-actions bot commented Jan 2, 2024

Size Change: +5.31 kB (0%)

Total Size: 2 MB

Filename Size Change
frontend/dist/toolbar.js 2 MB +5.31 kB (0%)

compressed-size-action

@benjackwhite benjackwhite merged commit 492e652 into master Jan 4, 2024
79 checks passed
@benjackwhite benjackwhite deleted the feat/comments-2 branch January 4, 2024 16:01
@benjackwhite
Copy link
Contributor Author

Implements most of #19167

jacobwgillespie pushed a commit to jacobwgillespie/posthog that referenced this pull request Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants