Peter Bengtsson
d27720c729
404 if apiVersion is unrecognized ( #33850 )
2023-01-10 00:58:20 +00:00
Peter Bengtsson
c49557775e
return 404 on /_next.junk ( #33770 )
2023-01-06 01:12:58 +00:00
Peter Bengtsson
862172e8af
only send the minimal language needed as prop ( #32765 )
...
Co-authored-by: Grace Park <gracepark@github.com >
2023-01-04 19:43:37 +00:00
Robert Sese
cce7a881de
allow linking to a specific webhook type ( #33118 )
2022-12-06 21:20:23 +00:00
Grace Park
53f54707c5
Updating to check apiVersion is a real apiVersion ( #33058 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-11-29 19:23:54 +00:00
Grace Park
e3f8f71c42
Rest api versioning redo ( #33011 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Sarah Edwards <skedwards88@github.com >
Co-authored-by: Grace Park <gracepark@Graces-MacBook-Pro-2.local >
Co-authored-by: Sarah Schneider <sarahs@users.noreply.github.com >
Co-authored-by: Sarah Schneider <sarahs@github.com >
2022-11-28 11:55:02 -08:00
Robert Sese
b2e5d14036
Automate + Reactify webhooks page ( #29534 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
Co-authored-by: Joe Oak <41307427+joeoak@users.noreply.github.com >
Co-authored-by: Sarah Edwards <skedwards88@github.com >
Co-authored-by: Grace Park <gracepark@github.com >
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2022-11-15 22:12:16 +00:00
Grace Park
14bfa57b91
Update enabled apps to use openapi version ( #32327 )
...
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-11-14 18:32:56 +00:00
Peter Bengtsson
8f6610f5f2
fix bullet points in GraphQL Changelog ( #32310 )
2022-11-03 17:11:16 +00:00
Peter Bengtsson
18feadbe23
use plain link to link to unsupported GHES versions ( #32204 )
2022-10-31 17:26:06 +00:00
Peter Bengtsson
97cc0eb572
only render product_video when needed ( #32048 )
2022-10-25 20:05:50 +00:00
Peter Bengtsson
d3fe424810
only include productGroups in main context on homepage ( #31640 )
2022-10-17 20:27:19 +00:00
Peter Bengtsson
72d40de414
make getMainContext async ( #31622 )
2022-10-12 16:43:58 +00:00
Peter Bengtsson
ef5b9d5f07
proxy /api/search/* to docs.github.com ( #31281 )
2022-09-29 21:50:38 +00:00
Sarah Schneider
b7f48ea2c1
Support GHAE internal-only semantic versioning ( #29178 )
...
Co-authored-by: Peter Bengtsson <mail@peterbe.com >
Co-authored-by: Matt Pollard <mattpollard@users.noreply.github.com >
2022-09-22 08:26:58 +02:00
Peter Bengtsson
90b754fe3c
Test JSON API without enabling dedicated search results page ( #30542 )
2022-09-06 17:05:22 +00:00
Sarah Edwards
d2a2113c11
REST new user guidance ( #29642 )
2022-08-23 19:31:01 +00:00
Peter Bengtsson
8eb7898827
send errors to Failbot in SSR rendering ( #30153 )
...
* send errors to failbot in SSR rendering
* wip
* progress
* tidying up
* no point awaiting something that doens't return a promise
2022-08-22 16:50:18 +00:00
Peter Bengtsson
fe80f4ae4d
suppress es-search if ELASTICSEARCH_URL isn't configured ( #30096 )
...
* suppress es-search if ELASTICSEARCH_URL isn't configured
* simplify
* simple 500 error instead
2022-08-19 20:54:37 +00:00
Peter Bengtsson
8765c628ff
dedicated search results page (redux) ( #29902 )
...
* dedicated search results page (redux)
* Update SearchResults.tsx
* adding pagination
* fix pagination
* say something on NoQuery
* better Flash
* tidying link
* small fixes for results
* debug info
* l18n the meta info
* inDebugMode
* basic jest rendering of the skeleton page
* basic jest rendering test
* fix content tests
* better document title
* fix tests
* quote query in page title
* use home page sidebar
* something when nothing is found
* parseInt no longer needs the 10
* fix linting tests
* fix test
* prettier
* Update pages/search.tsx
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-08-19 13:36:55 +00:00
Peter Bengtsson
5d83a12340
set theme data- attributes on the body ( #30054 )
...
* set theme data- attributes on the body
* Color mode back on body tag
* unconflicted
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com >
2022-08-18 20:13:28 +00:00
Kevin Heis
3cb36aa99f
Remove airgap mode ( #29964 )
2022-08-15 21:05:21 +00:00
Kevin Heis
688a274f1f
Remove CSRF check ( #29910 )
...
* Use color_mode for gating "sign up" button
* Remove csrf check
* Add `res.removeHeader('set-cookie')` to cache-control
* Update static-assets.js
* Remove package
* Remove tough-cookie
* Update cache-control.js
* Update cache-control.js
* Update cache-control.js
2022-08-15 19:28:42 +00:00
Grace Park
2102f25e3f
prevent SSR mismatch ( #29852 )
2022-08-11 17:17:12 +00:00
Peter Bengtsson
37203886ff
remove now obsolete code comment from render caching ( #29767 )
2022-08-09 19:55:36 +00:00
Kevin Heis
04f38e4779
Parse color_mode cookie in browser ( #29738 )
...
* Parse color_mode cookie in browser
* Update useTheme.ts
* Update use-theme.js
* Update use-theme.js
* Add support for dark_high_contrast
Per https://primer.style/css/support/theming
I also checked all the color mode options, this is the only additional working with Primer 20 so far
* Remove gray bg
* Remove type
* Use defaults instead of types for fn args
* Thicker types
2022-08-09 16:48:18 +00:00
Peter Bengtsson
ef277d6640
Always call initializeEvents with a truthy csrfToken ( #29721 )
2022-08-08 12:10:00 -04:00
Peter Bengtsson
623a040851
use defaultfallback data for apisession ( #29719 )
...
* don't get available languages from session
* update useSession
* one more fix
* use default session till XHR comes in
* warn on error
2022-08-08 15:47:55 +00:00
Peter Bengtsson
a1e3866fa5
don't get available languages from session ( #29715 )
...
* don't get available languages from session
* update useSession
* one more fix
2022-08-08 11:13:27 -04:00
Kevin Heis
407dd2f102
Use opacity instead of hide/show to preserve anchor position ( #29673 )
2022-08-05 19:50:09 +00:00
Kevin Heis
56aa9ea094
Move use session to its own hook file ( #29641 )
...
* Move use session to its own hook file
* Trying useSWR
* Try one hour html cache
* blah blah lint
* Update to include loading state
* Update components/hooks/useSession.ts
Co-authored-by: Peter Bengtsson <peterbe@github.com >
Co-authored-by: Peter Bengtsson <peterbe@github.com >
2022-08-05 14:47:10 +00:00
Kevin Heis
5d7ec93819
Remove content until color mode is known ( #29618 )
...
* Flash of gray
* Update _app.tsx
* Update _app.tsx
* Update _app.tsx
* Update index.scss
* Update index.scss
2022-08-04 16:13:49 +00:00
Rachael Sewell
3cbd7103da
Remove top-level categories on graphql queries page ( #29592 )
2022-08-03 20:01:38 +00:00
Rachael Sewell
467459af7c
Reactify graphql pages ( #28547 )
2022-08-03 10:51:21 -07:00
Kevin Heis
f8d2395960
Remove theme from HTML ( #29560 )
...
* Remove theme from HTML
* update for linting error
* Fix for overriding default color modes
Co-authored-by: Grace Park <lugraciecy@gmail.com >
Co-authored-by: Grace Park <gracepark@github.com >
2022-08-02 17:06:54 -07:00
Kevin Heis
0886faddac
Move language context to browser/session ( #29433 )
2022-07-28 18:50:46 +00:00
Kevin Heis
f79e1d2cb7
Fetch CSRF token over XHR (browser-side) ( #29337 )
...
* Client side csrf token grab
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Remove test refs to meta tag
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Update get-session.ts
* Fix some type issues
* Simplify api
* Update components/lib/get-session.ts
Co-authored-by: Rachael Sewell <rachmari@github.com >
Co-authored-by: Rachael Sewell <rachmari@github.com >
2022-07-27 16:18:07 +00:00
Rachael Sewell
e8acff555c
refactor the enabled for apps page component ( #29253 )
2022-07-26 18:14:50 +00:00
Rachael Sewell
26e4dbc4bf
refactor rest context provider to be generic ( #29021 )
2022-07-14 14:09:38 +00:00
Peter Bengtsson
0186424847
use SSRProvider from @primer/react to avoid warnings ( #28546 )
2022-06-15 16:51:58 -05:00
Peter Bengtsson
071c95a91c
make miniToc pure data and no html strings ( #28517 )
...
* make miniToc pure data and no html strings
* fixups
* some types refactoring
2022-06-15 18:31:36 +00:00
Peter Bengtsson
815d6d9e5c
unbreak release notes ( #28123 )
2022-05-31 13:26:50 +00:00
Peter Bengtsson
6b26400c49
only include props we need ( #28067 )
2022-05-29 23:54:05 +00:00
Peter Bengtsson
8d4e1cda62
use shorthand notation ( #27919 )
2022-05-23 18:22:44 +00:00
Peter Bengtsson
18504871b9
cache full rendering ( #25424 )
...
* cache full rendering
* still not working with gzip
* progress progress progress
* smaller
* hacky progress
* small fixes
* wip
* lock file
* wip
* wip
* package-lock updates
* wip
* search DOM in lowercase
* simplify
* with instrument
* improve test coverage
* mutateCheeriobodyByRequest
* fix
* remove renderContentCacheByContex
* disable render caching in sync-search
* diables things in github/github link checker
* gzip lru
* tidying up
* updated
* correct tests
* fix: move userLanguage to LanguagesContext
* Revert "fix: move userLanguage to LanguagesContext"
This reverts commit d7c05d958c71eaad496eb46764eb845d80b866ca.
* contexts ftw
* fixed rendering tests
* oops for got new file
* nits addressed
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com >
2022-05-23 12:12:09 +00:00
Peter Bengtsson
a8d45acea9
refactor getThemeProps to be available in JS ( #27439 )
...
* refactor getThemeProps to be available in JS
* wip
* mike's idea
* delete no longer used file
2022-05-18 18:47:27 +00:00
Lucas Costi
5cef9e2fe7
Remove Actions experimental articles ( #27524 )
2022-05-18 00:35:40 +00:00
Robert Sese
b000cf8f07
REST: use actual page titles for subcategory titles ( #27477 )
...
* Use actual page titles for subcategory titles
* No longer need this prop client side
* Forgot to update the type
* Set the subcategory toc title as we go
* Comments 🛠
2022-05-10 17:57:12 +00:00
Grace Park
f2c6004aaa
REST API Pages: fix links of endpoints-available-for-github-apps page ( #27425 )
2022-05-04 00:56:04 +00:00
Robert Sese
3ecf82c6f6
openapi: show all operations on TocLanding page for REST categories ( #27447 )
...
* Allow getRest() to return everything at the category level
* Explicitly pass a subcategory for categories with no subcategories
* Show all operations for a category on TocLanding page
* Types for linting
2022-05-03 22:57:49 +00:00