63 Commits

Author SHA1 Message Date
Cory Watilo
15c925b43d version bump (#12254)
Co-authored-by: Cory Watilo <corywatilo@gmail.com>
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
Co-authored-by: Lucas Faria <12522524+lucasheriques@users.noreply.github.com>
Co-authored-by: Ben White <ben@posthog.com>
Co-authored-by: Juraj Majerik <juro.majerik@gmail.com>
Co-authored-by: Rafael Audibert <32079912+rafaeelaudibert@users.noreply.github.com>
2025-09-10 16:33:30 +00:00
Thomas Piccirello
e01b006597 chore: make URL hostname checks more precise (#12263)
This resolved several GitHub CodeQL findings.
2025-07-23 15:45:19 -07:00
Eli Kinsey
2d3272b0e1 error messages 2025-06-26 11:36:08 -07:00
Cory Watilo
4d86d5b5f6 Founder stack page (#10458)
* created founder stack page

* link from homepage

* footer link

* mention lowest prices

* lets do this instead

* adds links

* better responsiveness

* responsive adjustments

* quick fix

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2025-02-06 15:05:55 +00:00
Rafael Audibert
c15da736fb feat: Programatically add dots to map (#10225)
* feat: Programatically add dots to map

Instead of having a hardcoded list of dots in our map, we're now collecting the latitude/longitude information from the information we're already collecting from everyone working at PostHog. We're doing some geocoding to transform that information into lat/long pairs.

There are some problems with the fact that there isn't much uniformity in the way everyone stores their information, so some dots are extremely innacurate.

I've attempted the following pairs and they don't work that well
- Location
- Location, Country
- Location | Country

I ultimately settled with the last one because it looks the most accurate - but there are errors still.

My suggestion: we should suggest everyone to fill their "Location" field with either a "city, country" tuple or simply the long form of their country name, which **should** make the map more accurate.

* feat: Remove name from old employee

* add schema to allow builds without a mapbox token

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2025-01-29 19:22:11 -08:00
Eli Kinsey
6666d36a44 Client-side Mermaid (#10394)
* client mermaid

* lil loader

* make it work
2025-01-28 12:12:49 -08:00
Eli Kinsey
c5cacc0b29 Filter out team members that haven't started yet (#10258)
* filter out team members that havent started yet

* filter at sourceNodes level
2025-01-03 13:12:44 -08:00
Cory Watilo
f5081691d5 10x team crests (#9803) 2024-11-05 12:13:31 -08:00
Eli Kinsey
96ef59da3c remove questions/replies from node creation 2024-10-25 12:35:40 -07:00
Eli Kinsey
674f941970 Dynamic roadmap items on homepage (#9700) 2024-10-22 11:51:12 -07:00
Eli Kinsey
13f582dcb9 dont process contributor images 2024-10-17 10:00:58 -07:00
Eli Kinsey
a80ee0529f disable cloudinary logs 2024-10-16 18:14:34 -07:00
Eli Kinsey
5afbd924d7 Remove local author images (#9552)
* remove author images

* use start date

* remove placeholders

* og

* og images

---------

Co-authored-by: Cory Watilo <corywatilo@gmail.com>
2024-10-16 15:38:18 -07:00
Cory Watilo
02ffc56996 11x the careers page (#9492)
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2024-09-30 14:59:40 +00:00
Eli Kinsey
49b269e682 use local gatsby-transformer-cloudinary 2024-09-12 15:57:32 -07:00
Eli Kinsey
29a9aba70c add local plugin 2024-09-12 15:33:50 -07:00
Eli Kinsey
8db1a51342 revert "4f00983458fc12d2951c06fe657eca2e397efe77" 2024-09-12 11:03:43 -07:00
Eli Kinsey
4f00983458 conditionally fetch image metadata 2024-09-12 04:18:34 -07:00
Cory Watilo
f15e180e47 More team features (#8209)
* edit height

* add hedgehog height

* hedgehog percentage

* padding

* mobile

* add variables so cory can tweak to his hearts content

* slack emojis

* small team faq polish

* tooltip for removing a team member

* feature flag for location

* unit feature flag

* remove inches

* use local image

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2024-04-08 14:04:06 -04:00
Eli Kinsey
d580c3c506 New roadmap pages (#8045)
* WIP page

* add team update form to team pages

* add update on wip page

* add option to post as team lead

* only show relevant team roadmap items

* refresh roadmaps on team change

* allow editing updates

* show author info / link to teams

* show in progress roadmap items on WIP page

* roadmap changes

* unlogged in auth

* small polish

* sort

* update/add items

* link

* update schema

* polish

* team names

* sidebars

* type to search

* fix import

* dark

* spacing

* polished roadmap page

* polished roadmap, wip forms

* updated changelog edit ui to match

* v small cleanup

---------

Co-authored-by: Cory Watilo <cww@watilo.com>
2024-03-14 19:34:31 -04:00
Cory Watilo
19f66ad9d0 Better small teams pages (#7786)
* team index view, move small team nav

* polish

* added crest, started to move PA team page blocks around

* moving components around

* encapsulate milestones and team updates inside box

* team icon

* source from graphql

* team page start

* fixed small team person card hover ux

* flex da people

* placeholder header image

* more responsive

* add other sections

* add team images

* add nav

* fix subscribe flow

* added sum stickers

* moved icons

* add pineapple sticker

* added all country icons, fixed pineapple icons

* added all flags

* implemented mayor badge

* hide small team sidebar (for now)

* tighten text

* fix in progress modal

* update objectives files

* cleanup

* added GB flag, updated flag pack

* tightening text

* add objectives to own section

* added pineapple sticker

* added borked thumbs up sticker

* subheader polish

* small adj

* dark mode

* link to small teams

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2024-03-05 01:20:02 +00:00
Eli Kinsey
2327f65af8 algolia: use question body as excerpt / add resolution body 2024-02-25 10:35:36 -08:00
Eli Kinsey
d11d216184 Support multiple teams on career pages (#7890)
* Update gatsby-source-ashby

* support multiple teams on career pages

* update handbook
2024-02-22 20:17:53 -05:00
Cory Watilo
389b128b81 Dashboard link and link roadmap items (#7817)
* add account link to community dashboard

* link roadmap items to cta.url if it exists

* populate cta

* use Link

* link to changelog item

* font weight, also fixed <li> community post sizing

* disable hashspy/add cloudinary image support

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2024-02-14 22:53:12 -05:00
Eli Kinsey
7256f9e5eb Build clean up (#7788)
* clean up some build errors

* removed unused shortcodes

* remove import gen script

* dont source non-team member profiles
2024-02-13 11:40:41 -08:00
Cory Watilo
75d4271027 Editable roadmap (#7658)
* add roadmap submissions

* only show to mods

* add confirmation message

* conditional fields

* edit roadmap items

* fix edit button

* border color

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2024-02-01 13:50:47 -08:00
Eli Kinsey
1ea135cc20 fetch more roadmap items (#6268) 2023-07-10 15:18:19 -07:00
Eli Kinsey
327fa3e4ef remove mediaType from community replies (#6261) 2023-07-09 12:44:22 -07:00
Eli Kinsey
6d86b0910a Ignore null GitHub URLs in roadmap (#6134) 2023-06-15 11:22:54 -07:00
Eli Kinsey
ee74952ea6 Replace MDX team files with community-sourced profiles (#6061)
* initial source

* adjust other components to support community team members

* remove team files

* wrap role inside header

* add badge to posthog moderators

* conditionally show logomark and company role

---------

Co-authored-by: Cory Watilo <cww@watilo.com>
2023-06-02 06:43:16 -07:00
Eli Kinsey
23b96d2a69 add image-like syntax support for video files in markdown (#5904) 2023-05-05 08:14:35 -07:00
Paul Hultgren
dc4b272a15 feat: migrate Squeak to Strapi (#5622)
* remove org providers

* merge questions components

* merge authentication components

* merge question form components

* move main login

* move Squeak.tsx

* merge question

* update exports

* split out replies component

* begin rewriting question component

* add the ability to fetch by permalink

* move gatsby-source-squeak to ts

* working questions table

* working question permalink pages!

* add images to questions table

* basic login working

* working topics pages

* move topiGroup fetching

* working topic groups

* working login state

* remove unused apiHost and organizationId params

* fix useUser hook

* small tweaks

* rename Question.permalink to SqueakQuestion.permalink

* remove reply resolver

* remove useOrg hook

* add back old CommunityQuestions components

* update roadmap queries

* fetch roadmaps

* remove console.log

* small tweaks

* remove key

* add squeak migration script

* only fetch questions that match the current slug

* unify useQuestions hook

* fix build

* change markdown component

* search: removing padding

* working reply!

* expand question by default

* replace username with email

* working sign up

* working question sidebar + remove pre-rendered question pages

* add back pre-rendered question component pages

* uncomment Changelog query

* display multiple teams

* remove updatedAt field

* don't access avatar if it's null

* fix question profile links

* only add replies with profiles

* fail when no question

* fixes

* remove ErrorBoundary from QuestionForm

* remove old changelog page

* delete ErrorBoundary component

* working question posting

* gravatar urls

* working profiles

* use questions component

* reset password

* display profile info in dropdown

* post question to specific page

* remove excess padding on replies

* remove changelog from dropdown

* make registering and signing in work

* avatar fixes

* login / registration error messages

* more avatar fixes

* update slugs in queries

* fail on non-ok request to `/me`

* add edit profiles

* set all user roles to authenticated

* upload avatars

* use getAvatarURL

* only show edit profile button on active user

* fix question pages

* working subscribe and unsubscribe endpoints

* refactor useUser logic

separate out logic to fetch and save the current user

* working subscriptions

* chore: remove misc console logs

* use fetchUser in EditProfile

* ensure all questions have profiles

* add more misc to migration sql

* use useRoadmap hook in Roadmap

* working team roadmaps

* show login when trying to subscribe as anon

* fix profile TODO

* add sortBy newest, popular, and activity

* add back homepage roadmap

* remove unused Changelog component

* bring back reply actions

* fix collapsed avatars

* fix badge text

* small ui improvements

* mobile edit profile

* add teams to profile sidebar

* also show questions that user has replied to

* hide discussions if no questions exist

* reduce required reply count to show collapsed view

* fix: return correct user from login and signUp methods

* remove unused lib/api

* add body to form preview

* button labels on questionform

* question page modal initial view

* fix blur bug

* try not passing slug on questions page

* dark mode colors

* dark mode fix

* error messages

* correct type of slugs object

* more onBlur fixes

* add logged in user email and add edit profile button back

* remove log

---------

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
Co-authored-by: Cory Watilo <cww@watilo.com>
2023-04-13 10:50:52 -07:00
Eli Kinsey
f1e49d084f fix contribs (#5413) 2023-03-01 20:38:45 -08:00
Paul Hultgren
a4aab0a9f6 fix: don't fail on flaky local file node cache (#5315)
* dont access cache in strapi

* pass both cache and getCache

* catch cache error
2023-02-16 21:55:33 +00:00
Paul Hultgren
6c0194960a add back og image generation 2023-02-07 14:28:11 -08:00
Paul Hultgren
c6d4b59528 Revert "create public folder"
This reverts commit 9b57e42b40.
2023-02-07 12:57:33 -08:00
Paul Hultgren
9b57e42b40 create public folder 2023-02-07 12:43:21 -08:00
Paul Hultgren
b25a3ef3e0 try copying to static 2023-02-07 11:34:39 -08:00
Paul Hultgren
c9d85da8cd adjust paths for fonts 2023-02-07 10:11:59 -08:00
Paul Hultgren
c227d5214e move og image generation into plugin to control order 2023-02-07 09:56:46 -08:00
Paul Hultgren
f2c78312a2 PostHog Forum (#4626)
* update mdx-js

* export Icons as default

* export SEO component as default

* first draft profile page

* allow squeak users to edit their profiles

* update squeak configs

* remove package

* update api requests

* update links

* add profile links to names and avatars

* spacing / bug

* fix 404 issue

* redirect

* redirect test

* redirect test

* 404 fix

* add rewrites to other paths

* poc forum display

* format date correctly

* tweak description color

* link to community profile

* comment out dislpaying topics

* don't create question pages in createPages

* deps: add @docsearch/react

* break out squeak topic pages using file system routing api

* remove old Question template

* debugging squeak-react

* create useTopicMenu hook

* skeleton sidebar

* add profile to question node

* fix build issues!

* downgrade gatsby-remark-prismjs

* many improvements to questions page

* change to squeak.cloud

* bump squeak-react

* small styling improvements, break table into separate component

* create client only fallback route

* improvements to squeak question form

* upgrade squeak-react to 4.3.1

* update all squeak occurences with env variables

* show new questions as soon as they are available

* remove @docsearch/react

* remove old commented out code

* remove unused QuestionPage component

* use squeak.cloud when developing locally

* change http -> https

* return null if request is null

* add link back to questions page and reduce spacing

* small styling tweaks

* show form before login

* dark mode styling

* use static community sidebar

* bump squeak-react to 4.3.3

Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2022-12-20 11:29:47 -08:00
Eli Kinsey
6f1f7296c4 Allow users to unsubscribe from roadmap goals (#4733)
* sub test

* allow users to unsub from roadmap items

* update squeak urls

* add org id to request body
2022-12-02 09:26:11 -08:00
Paul Hultgren
9b782471e6 feat: Nail Search (#4706)
* move search components to subfolder

* merge search into single component

* remove netlify plugin

* remove netlify deps

* add gatsby-plugin-algolia

* add optional chain

* move schema customizations to gatsby-source-squeak

* remove unused deps

* slugify id and remove internal.type field

* move config to typescript and es modules

* add pageview numbers to pages

* very rough first version of search

* styling improvements to search results

* open search menu with either ctrl+k or /

* only check pageview cache if it exists

* create sidebar search box and tweak styling of results

* rough draft of side-by-side preview

* show all categories and only allow selecting one at a time

* only send algolia information when env variables are present

* display api endpoints on preview

* allow setting initial filter when opening search box

* use headless ui combobox component

* set initial filter types

* fetch question body as excerpt

* uncomment onPostBuild

* style result background based on active state

* allow for opening with Cmd+K on Mac

* navigate to result on clicking enter

* allow tabbing through categories

* styled search results, added better 'no results' state

* only uppercase API category

* polish for individual category results

* more polish

* remove ui around searchbar

* moves result categories to bottom as tabs

* more itty bitty modal polish

* border polish

* correctly set initial filter category when present

* style sidebar search input

* remove search box from Using PostHog page

* links to site search

* disable categories with no results

* hide event count for the 'all' category

* link to specific headings within pages

* pull parameters from environment

* small improvements

* Revert "remove search box from Using PostHog page"

This reverts commit 24a3dd8ea34214fec79b5221eb632df86458fa2c.

* sidebar search button dark mode

* fixed a couple unrelated bugs

* search: dark mode

* add search to 404 page

* use correct env variables in gatsby-config

* add slugs for api and questions

* remove search box from docs, handbook, and using posthog

* add detailed custom tracking

Co-authored-by: Cory Watilo <corywatilo@gmail.com>
2022-12-01 22:06:53 -05:00
Ian Vanagas
690ce28d5e Tutorial: next steps after installing PostHog (#4679)
* next steps after installing tutorial

next steps after installing tutorial

Co-authored-by: Joe Martin <84011561+joethreepwood@users.noreply.github.com>
Co-authored-by: Andy Vandervell <92976667+andyvan-ph@users.noreply.github.com>
Co-authored-by: Eli Kinsey <eli@ekinsey.dev>
2022-11-21 20:50:56 -08:00
Paul Hultgren
1fb3fc3885 fix duplicate $pageview events + other random fixes (#4680)
* remove gatsby-plugin-posthog

* move gatsby-browesr to ts

* misc fixes to clean up errors

* chore: remove console.log from gatsby-source-squeak

* remove PosthogAnnouncement

* update to use snippet in html.tsx

* Add safe redirects (JS)

* fix import in Layout

* source config from environment

* capture metrics

* don't access window if not defined

* add alt descriptions to homepage images

* add alt text to hedgehog image

Co-authored-by: PostHog <hey@posthog.com>
2022-11-15 23:50:45 -08:00
Eli Kinsey
66f605c863 Team pages / roadmap images (#4656)
* add team roadmaps

* add team members

* Add safe redirects (JS)

* fix thumbs up

* add new reactions to schema

* improve responsiveness of team members

Co-authored-by: PostHog <hey@posthog.com>
Co-authored-by: Cory Watilo <corywatilo@gmail.com>
2022-11-15 00:18:15 +00:00
Eli Kinsey
cd0699f434 fix dev errors (#4637) 2022-11-09 10:01:28 -08:00
Eli Kinsey
94f8d81e0d Source contributors from Strapi (#4592)
* source contributors from strapi

* add last updated field
2022-11-08 17:54:28 -08:00
Eli Kinsey
1ddb40fdae add roadmap types (#4522) 2022-11-01 08:55:51 -07:00
Eli Kinsey
0f77707869 Roadmap updates (#4484)
* source homepage roadmap items from squeak

* allow non-github links

* remove timeline.json
2022-10-21 07:18:09 -07:00