1
0
mirror of synced 2025-12-21 10:57:10 -05:00
Commit Graph

125 Commits

Author SHA1 Message Date
Robert Sese
6f6cf56c20 Add os preference tracking (#20740)
* Set cookie on os switch

* Set os based on cookie value

* Add os preference schema details

* Send os preference on page request

* Send os preference on os switch
2021-08-09 22:07:27 +00:00
Grace Park
2dbea3737a Removing algolia (#20633) 2021-08-05 13:10:51 -04:00
Kevin Heis
0a91fcf482 Fix a few ampersands (#20681)
* Fix a few ampersands

* Update GuideCard.tsx
2021-08-04 11:48:44 -07:00
Robert Sese
e387e79f16 Add color mode tracking (#20608)
* Add color_mode for event tracking

* Grab color_mode info from body and media queries

* Make color_mode schema more specific

* Get color mode preference in its own function

* Add 'auto' for potential future color modes
2021-08-02 22:21:00 +00:00
Mike Surowiec
a511c95c7f SCSS and Component cleanup (pt 1) (#20572)
* turn article.scss into a module + componentized

* Update Survey to use only component styles, add cancel button

* Update GenericError + 404 page to use only standard classes

* update LearningTrack to not use markdown-body

* remove / consolidate stylesheets

* cleanup Graphiql explorer page and scss

* Componentize Breadcrumb styles

* Componentize DeprecationBanner styles

* scope h2 a link style to markdown-body

* cleanup nav, organize page-header and page-footer components

* remove unused scroll-button.scss

* organize LanguagePicker and ProductPicker

* add declarations file

* remove featured-links.scss, update tests

* update list utility and toc test

* fix bad merge resolution

* update breadcrumbs test
2021-07-29 17:27:20 +00:00
Mike Surowiec
a9a19ef6da Move languages out of MainContext (#20503)
* move languages off of MainContext

* load languages from request to workaround sharing the languages file
2021-07-29 13:36:11 +00:00
Kevin Heis
c00196f60e Remove toggle images (#20573) 2021-07-28 21:23:49 +00:00
Grace Park
8ba413cabc React Cleanup: Documentation (#20517)
* initial documentation changes

* editing layouts terminology

* update to match other files

* move javascripts to components/lib

* fix: dockerfile

* update based on Mikes updates to the javascripts directory

* update components/README.md

Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-07-27 09:07:18 -07:00
Mike Surowiec
24ecb4f4d9 hide wip languages from LanguagePicker (#20512)
Co-authored-by: Chiedo John <2156688+chiedo@users.noreply.github.com>
2021-07-26 18:19:35 +00:00
Mike Surowiec
85b48a3795 Rename hooks/lib files to .ts (#20488)
* rename hooks to .ts

* rename lib files to ts
2021-07-26 14:37:21 +00:00
Mike Surowiec
9386571aa4 fix: use named export for all-versions (#20478)
* fix: use named export for all-versions

* run prettier
2021-07-22 19:29:00 +00:00
Grace Park
e79baebae8 updating to childNode to fix articles number (#20486) 2021-07-22 11:50:40 -07:00
Mike Surowiec
1f3509b018 fix rendering of release notes patch on firefox (#20477) 2021-07-22 11:05:14 -04:00
Mike Surowiec
df38087aed Update 404/500 pages to no longer use liquid templates (#20450)
* Update 404/500 page rendering to no longer use liquid templates

* updating tests

* remove unused path

Co-authored-by: Grace Park <gracepark@github.com>
2021-07-21 12:22:30 -07:00
Mike Surowiec
57b0a959c1 fix rendering of html entities (#20451) 2021-07-21 18:10:49 +00:00
Rachael Sewell
dc33e61345 Update Survey.tsx (#20452) 2021-07-21 17:47:15 +00:00
Mike Surowiec
6bc50f7e30 fix: filter hidden pages from the currentProductTree (SidebarProduct) (#20404)
* fix some async test things

* allow eslint to parse top-level awaits

* fix: filter out hidden pages closer to SidebarProduct usage
2021-07-20 12:32:35 -04:00
Mike Surowiec
e501dd66d4 fixes #704, ES actions landing page not rendering (#20399)
Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-07-19 16:39:41 -04:00
Robert Sese
3d7a7f2c89 Add language name to notice (#20286) 2021-07-19 15:59:02 +00:00
Grace Park
27aa5d92ea Remove FEATURE_NEXTJS Flag Part 1 (#20176)
* cleanup FEATURE_NEXTJS

* fixing some server tests

* updating article a for server tests

* update h2 to h4 map topic tests

* data off on TOCs

* updating dropdown article versions links

* Update so markdown renders in intros

* updating typo and all server tests are now passing

* remove nextjs feature flag

* head.js tests pass

* updating article-version-picker

* remove nextjs feature flag browser test

* update header.js tests

* fix page-titles.js test

* fix deprecated-enterprise versions

* adding early access

* testing

* getting childTocItem

* fixing table of contents to show child toc items

* updated to 2 because the sidebar article also has the same link

* remove comment

* updating pick

* Update TocLandingContext.tsx

* update package.json and change className to h4 for h2

* updating with mikes feedback

* remove a.active test

* React clean up: Delete unnecessary layouts/includes Part 2 (#20143)

* Delete unnecessary layouts

* setting back tests failing :(

* update layouts

* delete unnecessary includes

* remove github-ae-release-notes and updating layouts

* remove a.active test
2021-07-16 14:54:25 -07:00
Rachael Sewell
defa1b1426 prevent scroll to top when URL fragment exists (#20326) 2021-07-14 21:46:01 +00:00
Kevin Heis
8a56437c93 Pretty format (#20352)
* Update prettier flow to include JS

* Run prettier

* ...run prettier
2021-07-14 14:35:01 -07:00
Grace Park
d3cc64a6bc adding rendered page to early access index 2021-06-29 12:04:34 -07:00
Mike Surowiec
9471394406 Disable client-side link transitions (#20141)
* add prop to disable client-side transition

* fix: disableClientTransition by default until we can figure out caching issue

* skip the next/link test
2021-06-24 14:35:23 -07:00
Rachael Sewell
6d248082b5 sidebar style updates (#19929) 2021-06-24 11:15:24 -07:00
Sarah Schneider
118747974e fix bugs in React 2021-06-23 12:54:17 -04:00
Sarah Schneider
15e33f05e7 Revert "Revert "Fix homepage versions dropdown" (#20087)"
This reverts commit f9f0b2ce86.
2021-06-23 10:12:36 -04:00
Matt Pollard
f9f0b2ce86 Revert "Fix homepage versions dropdown" (#20087) 2021-06-23 09:11:51 +02:00
Sarah Schneider
43c04966e5 update React components that use the homepage version 2021-06-22 15:16:01 -04:00
Mike Surowiec
a24d01f78a Fix NextJS 500s (#20048)
* feat: allow server to contextualize request when on a /_next/data path

* add client side routing test, run lint

* enable nextjs client side routing
2021-06-22 17:30:40 +00:00
Mike Surowiec
e377d74419 React: import necessary javascripts directly (#20001)
* import javascript files directly

* move globally required js to _app

* fix: js initialization

* set next env for tests
2021-06-21 21:55:49 +00:00
Mike Surowiec
b084dbc23d React: Enable all remaining pages (#20012)
* enable all remaining pages

* update tests for survey, filter card dropdowns

* fix search test

* fix: mobile search layout

* update sidebar test

* fix: learning track page is optional

* fix broken links
2021-06-21 19:52:58 +00:00
Mike Surowiec
f19d695cef fix: enterprise guide type was sometimes undefined (#20015) 2021-06-18 12:31:22 -07:00
Grace Park
86306460f5 Merge branch 'main' into fix-zh-links 2021-06-17 11:25:30 -07:00
Mike Surowiec
5396f5f9e4 React: All landing pages (#19943)
* default all remaining landing pages to react, update tests
2021-06-17 10:04:53 -07:00
Grace Park
3b92e01a79 Merge branch 'main' into fix-zh-links 2021-06-16 13:27:20 -07:00
Grace Park
8899f30911 adding to 2nd return 2021-06-16 13:24:05 -07:00
Grace Park
a20f56deaf updating LanguagePicker to use language code instead of hreflang 2021-06-16 13:14:35 -07:00
Mike Surowiec
70256b0e6a fix: sometimes there are no childPages, such as /es/github-ae@latest/admin (#19944) 2021-06-15 22:19:25 +00:00
Mike Surowiec
5635c2dba4 fix codespaces (#19941) 2021-06-15 14:05:33 -07:00
Mike Surowiec
306f6fc75e Enable more react pages (#19935)
* enable more react landing pages

* move nextjs page logic to separate middleware

* enable codespaces landing page + fixes

* enable /education

* enable /admin

* use pathToRegexp to match routes for react rendering

* run lint

* fix: typo in url

* update sidebar test
2021-06-15 13:31:17 -07:00
Mike Surowiec
ae3d8916c6 Cleanup featuredLinks usage, fix insights page, better ArticleList (#19872)
* cleanup featuredLinks usage, fix insights page, better ArticleList component
2021-06-15 18:22:43 +00:00
Mike Surowiec
e26a3446a7 SubLanding page filter (#19918)
* sub-landing: implement filtering in react, other cleanup
2021-06-15 18:16:24 +00:00
Mike Surowiec
bf21cd1104 fix header styling, add missing sectionLinks (#19915) 2021-06-15 16:35:19 +00:00
Mike Surowiec
6172262be7 fix: sometimes the page doesn't have children (#19919) 2021-06-15 01:06:58 +00:00
Sarah Edwards
9344d3ed9a Landing pages only shows "view all" and "expore all" buttons if a guides page exists (#19914)
Co-authored-by: Sarah Schneider <sarahs@github.com>
Co-authored-by: Mike Surowiec <mikesurowiec@users.noreply.github.com>
2021-06-14 23:59:28 +00:00
Grace Park
0d90f48f22 React Sublanding Fixes (#19894)
* fixing a couple issue with the sublanding - nulls and page.type

* learning track null error fix

Co-authored-by: Kevin Heis <heiskr@users.noreply.github.com>
2021-06-14 20:35:03 +00:00
Grace Park
c69a1283b2 update spacing (#19899) 2021-06-14 13:23:00 -07:00
Kevin Heis
75f90c9487 Update current JavaScripts to use Typescript (#19824)
* Update index to make it clear what has hasn't updated to Next/React yet

* Typescriptify events and experiments

* Typescript the old JS for easier integration

* Update release-notes.ts

* Lint

* Run npm i

* Fix a few lint issues

* Update airgap-links.ts

* Update airgap-links.ts

* Update set-next-env to ts

* Update airgap-links.ts

* Update package-lock.json

* Update set-next-env.ts

* Update package-lock.json

* Revert "Update package-lock.json"

This reverts commit b45e8250beeb700719d3b44e1092b0bbd093baba.

* readd fsevents

* Revert "readd fsevents"

This reverts commit 419f3c35080ac4a9072f0b4e8e291e1712ce3639.

* Update openapi-schema-check.yml

* Revert "Update openapi-schema-check.yml"

This reverts commit 5e9f4a29ea11ee343ca17291a40a751920c5b923.

* Update package-lock.json

* Update package-lock.json
2021-06-14 18:07:39 +00:00
Mike Surowiec
39207ce4a8 fix: primer grid causing overflow, revert to using class (#19879) 2021-06-12 13:18:45 -07:00