Commit Graph

56 Commits

Author SHA1 Message Date
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
Eli Kinsey
07ac3f801a fix roadmap build error (#4480) 2022-10-19 09:00:08 -07:00
Eli Kinsey
a6bb50d661 Roadmap page (#4442)
* roadmap

* links

* use squeak host

* roadmap page

* add timeline

* clean up
2022-10-17 11:19:03 -04:00
Paul Hultgren
751ac9fa3c fix squeak question fetching (#4369) 2022-10-06 15:49:12 -07:00
Paul Hultgren
20d2929dd3 fix squeak topic fetching (#4317) 2022-09-30 13:19:41 -07:00
Eli Kinsey
149c7c2a99 Squeak! topic pages (#4132)
* add topic pages

* add topic groups to nav

* menu by topic group

* update squeak

* only show topic group topics
2022-09-02 14:40:32 -04:00
Paul Hultgren
f821685b6e Upgrade gatsby to V4 (#3833)
* upgrade gatsby to ^4.17.2

This commit also upgrades all of the gatsby plugins to their latest
versions

* update gatsby-plugin-sitemap options to work with latest version

* import graphql from gatsby

Using the global graphql is no longer supported after gatsby v3

* deps: upgrade sharp to ^0.30.4

* update kea to v3 and use new logic syntax

* remove gatsby-plugin-remove-trailing-slashes

This functionality is now built into Gatsby

* remove type import from contributorStatsLogic

* change trailingSlash value to 'never'

* add @netlify/plugin-gatsby

* remove GATSBY_EXPERIMENTAL_PAGE_BUILD_ON_DATA_CHANGES flag

This feature is now built in to gatsby

* use optimized images from #3453

* optimize blog and tutorial images

* optimize features images

* decrease max width of optimization to 1650

* shrink blog images to 1000px

* shrink tutorials images to 1000px

* shrink docs and handbook images

* set node version to 16

* add gatsby-plugin-netlify

* try incresing head size and reducing CPU count

* wrap values in quotes

* remove heap size change

* regen lockfile and bump @netlify/plugin-gatsby

* revert image resizing

* re-do resizing to preserve transparency

* Revert "optimize blog and tutorial images"

This reverts commit fcb5efdd09edd4b3117af8cab11771b022f96643.

* Revert "use optimized images from #3453"

This reverts commit 56f9369e651040f30abee60ba47f7316515952e0.

* Revert "shrink docs and handbook images"

This reverts commit d172e71d3a8f478aa1a3e5802d229e6b0e4acc71.

* Revert "shrink tutorials images to 1000px"

This reverts commit 65dfd718f6d0e6c9fba05a4af55e40b68c1753eb.

* Revert "shrink blog images to 1000px"

This reverts commit d22b95525a9581ecd9f3d9176ac728100ebb3efc.

* Revert "decrease max width of optimization to 1650"

This reverts commit 29a2bdbed0024375978851621cb2a5f45e217f6b.

* Revert all image resizing

* add latest versions of @netlify/plugin-gatsby and gatsby-plugin-netlify

* upgrade gatsby packages

* remove mdx-js

* reset png images to master

* reset jpg images to master

* delete user-guides images

* reset last few images

* remove library stats

Co-authored-by: Paul Hultgren <pjhul@Pauls-MacBook-Pro.local>
2022-08-15 23:59:53 -07:00
Paul Hultgren
2d2864a8db Build: Greatly improve performance of 'source and transform nodes' step (#3688)
* add 'plugins/*' as workspaces in package.json

Adding local plugin directories as workspaces means their deps will
automatically be installed

* chore: add yarn v2 dependency ignores

* create gatsby-plugin-git-info

This local plugin is a fork I created of gatsby-transformer-gitinfo,
which was originally used but suffered from serious performance issues.
On every call to onCreateNode, the library would completely reindex the
entire git repo in order to retrieve the latest commit for a single file.

This new plugin instead performs everything during the onPreInit stage.
It first matches all markdown files (as these are currently the only
ones which need to display a 'Last updated' tooltip) and then caches the
latest commit for each file. Then, at build time it simply retrieves this
info with a lookup.

On my machine I saw a significant speedup on the 'source and
transform nodes' stage, going from taking +120s to now only taking
~40s!

* deps: remove gatsby-transformer-gitinfo and regen lockfile

* change package to private

In yarn classic workspaces are only allowed in private packages. Even
though the posthog.com repo is public, it shouldn't matter setting the
package to private as we don't publish it as a standalone package

* add versions to plugins and revert to v1 lockfile

Yarn will ignore a workspace if it doesn't have a version. This commit
also reverts back to using yarn classic to generate the lockfile.
2022-07-05 14:04:57 -07:00