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

♻️ The Great CMS Migration #575

Closed
wants to merge 518 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
518 commits
Select commit Hold shift + click to select a range
10829e9
Add KBD and YouTube PortableText renders
Nov 14, 2023
de93769
Merge branch 'refactor/sanity-ingestion' of github.com:chromeos/chrom…
Nov 14, 2023
75c6954
Ensure asset is available before rendering
Nov 14, 2023
ddf69ea
Query stories
Nov 14, 2023
7c62a30
Render individual story
Nov 14, 2023
ced8f74
Don't output topics
Nov 14, 2023
2ebe9be
Add Sanity query for Newsletter
Nov 16, 2023
d0440f3
Fix messages
Nov 16, 2023
cf17adb
Merge branch 'refactor/sanity-ingestion' into refactor/the-great-cms-…
Snugug Nov 16, 2023
c2efcb6
Migrate Newsletter form Sanity
Snugug Nov 16, 2023
d54d6a6
Make story sections pull from story categories
Snugug Nov 17, 2023
71155c9
Migrate story landing page to Sanity
Snugug Nov 17, 2023
4a7de5f
Remove microcopy and markdown files
Snugug Nov 17, 2023
a7f0912
Update nav to allow writing links directly instead of using URLs or r…
Snugug Nov 20, 2023
34ab988
Everything needs a title
Snugug Nov 20, 2023
72212de
Add title for nav items
Snugug Nov 20, 2023
bb35ecc
Query navigation from CMS
Snugug Nov 20, 2023
0840243
Merge branch 'refactor/the-great-cms-migration' of github.com:chromeo…
Nov 21, 2023
87fa264
Migrate navigation to Sanity
Nov 21, 2023
955bb88
Remove dirname log
Nov 21, 2023
02b0920
Cleanup for firebase deploy
Nov 21, 2023
97d3722
Fix for unknown languages
Nov 21, 2023
9a69b28
Cleanup log output
Nov 21, 2023
a60113d
Fix nav fallback to en
Nov 21, 2023
ccde187
Add quote, span, break, and table to Portable Text
Nov 21, 2023
bb36ac5
Add support for footnotes
Nov 21, 2023
b05cbbf
Add spacing above pagination
Snugug Nov 22, 2023
efeb851
Fix links for story cards
Snugug Nov 22, 2023
686c63b
Add pretty text wrapping to headers
Snugug Nov 22, 2023
0b4d4e9
Align class name and component name
Snugug Nov 22, 2023
21b346b
Add Search
Snugug Nov 27, 2023
d788110
Update lockfile
Snugug Nov 28, 2023
eaf952b
Pretty up search results
Snugug Nov 28, 2023
43e0438
Determine list of files and size for offline search
Snugug Nov 28, 2023
1b76476
Make loading and error line up correctly
Snugug Nov 28, 2023
5ee08e0
Fix footnote styling
Snugug Nov 28, 2023
14c84ae
Improved Pagefind integration
Nov 29, 2023
f124b4c
Add inline padding to search page
Nov 29, 2023
78f4a09
Move to pre-generating search files
Nov 30, 2023
fe0e7d0
Add recommended component
Dec 1, 2023
6f80fab
Add analytics and cookie consent
Dec 1, 2023
bfa9a63
Update Firebase tools
Dec 1, 2023
44cdeb0
Streamline homepage
Dec 4, 2023
402d194
Fix stats and homepage stats
Dec 4, 2023
1ce0235
Add sanity script
Dec 4, 2023
0d17df8
Add + as leading option
Dec 4, 2023
f99668a
Make card title and description optional
Dec 4, 2023
29fe79c
Default to light theme, for now
Dec 4, 2023
b5fdc6b
Grab homepage stuff, add animated intro
Dec 4, 2023
01404f5
Quick load for image, idle callback for animation
Dec 4, 2023
c6997f5
Improve layout shift
Dec 4, 2023
d6d9885
Rename animated hero component and improve LCP
Dec 5, 2023
497ac4b
Add style property for theme
Dec 5, 2023
5c87755
Add homepage routing component
Dec 5, 2023
fb1a9ee
Add homepage stats
Dec 5, 2023
53b1bd7
Add Linux homepage section
Dec 6, 2023
2b9ab9b
MOve footnotes below signup form
Dec 6, 2023
e594d00
Include top padding
Dec 6, 2023
14d5af0
Make sure cards are always 100% height, needed for cards in a grid
Dec 6, 2023
0bdd30d
Add stories and posts
Dec 6, 2023
ef61299
Make wrapper spacing available as CSS variable
Dec 7, 2023
960bc65
Make featured post respond properly to large sized screens
Dec 7, 2023
85b0961
Add generalized homepage styling
Dec 7, 2023
6aaeb19
Fix wrapper spacing CSS vars
Dec 7, 2023
eabff29
Add Commercial section
Dec 7, 2023
f9a60ab
Initial quote stuff
Dec 7, 2023
fe76082
Initial quote stuff
Dec 7, 2023
9a04d2f
Update stats regex
Dec 7, 2023
1415baf
Update stats regex
Dec 7, 2023
19176cd
Update quotes for responsive
Dec 7, 2023
a2e942a
Add videos
Dec 7, 2023
e79941e
Fix microcopy in Featured Story
Dec 7, 2023
8af89e2
Fix placeholder image
Dec 7, 2023
b9ab642
Update featured stories across the board
Dec 7, 2023
f03da56
Balance animated header text
Dec 7, 2023
fcd1488
Add Chromebook on the homepage
Dec 7, 2023
33fa7d7
Clean up unused bits
Dec 8, 2023
1cc0a87
Add videos to homepage, fix YouTube type
Dec 8, 2023
edffcaf
Fix style positioning for shapes
Dec 8, 2023
7407789
Homepage cleanup
Dec 8, 2023
3479dc0
Fix spacing in front of Commercial
Dec 8, 2023
d07b62b
Endpoint test
Dec 8, 2023
682f497
Add more logging
Dec 8, 2023
a185c27
Update dependencies
Snugug Dec 11, 2023
755f062
Remove last markdown rendering stuff
Snugug Dec 11, 2023
fcf543e
Rename getMicrocopyFromLangCode to getMicrocopy
Snugug Dec 11, 2023
b6d1ca4
Add sitemaps
Snugug Dec 11, 2023
aa65342
Fast path inline theme grab from localhost
Snugug Dec 13, 2023
5ba9e0b
Add dark mode
Snugug Dec 13, 2023
d495f7e
WIP dark mode
Snugug Dec 13, 2023
6d94650
Set background and text colors
Snugug Dec 14, 2023
a6e3c9d
New improved theme toggle
Dec 14, 2023
8e12a0c
Dark mode
Dec 15, 2023
4494451
Merge branch 'refactor/the-great-cms-migration' of github.com:chromeo…
Dec 15, 2023
8f4d3ae
Merge branch 'feature/dark-mode' into refactor/the-great-cms-migration
Dec 15, 2023
1e74ac1
Add accent color back
Dec 15, 2023
322e023
Remove old code, rename astro dir to site
Dec 15, 2023
a0ade9e
Update to latest Sanity and i18n
Snugug Jan 3, 2024
08eb702
Update codebase for new i18n support
Jan 17, 2024
850d573
Update dependencies
Jan 17, 2024
01b7ecd
Add i18n preview for all content types
Jan 17, 2024
1e2aeec
Fix landing pages not loading
Jan 17, 2024
c3f5b0c
Remove predeploy singletons
Jan 17, 2024
2ce4892
Make id of sections the type
Jan 17, 2024
1eb52af
Update comments
Jan 17, 2024
05872f6
Update queries for new i18n
Jan 17, 2024
4dc7e6e
Update i18n validators for new localization setup
Feb 15, 2024
fe60e5f
Update dependencies
Feb 15, 2024
a82fd36
Fix title appearing in body
Mar 8, 2024
1000f08
Update to Glue cookie banner
Mar 12, 2024
db7c1a4
Fix Husky location from folder move
Mar 12, 2024
ab2d79d
Update dependencies
Mar 12, 2024
3a7bece
Remove remaining cookie instances
Mar 13, 2024
f52a38f
Update description to correctly match input
Mar 13, 2024
6fa2a06
Remove i18n
Mar 13, 2024
86af03c
Fix subscribe for i18n
Mar 13, 2024
b58feef
Update homepage list previews
Mar 13, 2024
ac0cf94
Don't log info
Mar 13, 2024
3ddb4c7
Add testing endpoint
Mar 13, 2024
74d73e6
Don't prerender endpoints
Mar 13, 2024
5a2443f
Dedupe images before fetching their sizes
Mar 15, 2024
fbf56c8
No need to request SVGs, we already know we're not going to get JSON
Mar 15, 2024
1c038af
Upgrade to Node 20
Mar 15, 2024
6332d6e
Fix Svelte imports breaking
Mar 15, 2024
ff50a30
Key and IP based deploy
Mar 15, 2024
e728591
Set up GitHub workflows
Mar 18, 2024
337766c
Add search generation as a pretest script
Mar 18, 2024
f7276ae
Add badges to READMEs
Mar 18, 2024
618a2ec
Add Octokit to trigger GitHub action
Mar 19, 2024
7acc3b0
Add env writers, try a full deploy to next branch
Mar 19, 2024
2fef6c3
Who are you
Mar 19, 2024
d6706a5
Who are you, too
Mar 19, 2024
28bbd14
Fix ref for deploy
Mar 19, 2024
c91459a
Fix ref for deploy, too
Mar 19, 2024
346784b
Point Firebase in the right direction, update action versions
Mar 19, 2024
61e522e
Web Framework experiments
Mar 19, 2024
b4ff604
Move the whole Firebase deploy thing to the site directory
Mar 19, 2024
b250760
Install dependencies maybe
Mar 19, 2024
55b35bd
Snugug does everything twice twice
Mar 19, 2024
a600aca
Include .generated
Mar 19, 2024
2b0cc06
Like I said, Snugug does everything twice twice
Mar 19, 2024
e336fd2
Create .env file in site directory
Mar 19, 2024
45cd664
Remove test endpoint
Mar 19, 2024
9ac72b5
Set up Node and PNPM cache
Mar 19, 2024
1c9b578
Set channel ID for deploy
Mar 20, 2024
4277440
Deploy with the correct channel ID
Mar 20, 2024
4fd54ed
Unquote channel ID
Mar 20, 2024
2966a56
Test empty ID
Mar 20, 2024
4811583
Will a branch name work?
Mar 20, 2024
dbac75b
Fix rogue comment
Mar 20, 2024
7c691f2
Override default branch ID
Mar 20, 2024
5c735ec
Increase expires to 30d
Mar 20, 2024
133ca0e
Set expiry
Mar 20, 2024
235f628
Set expiry to 30d for branches and PRs
Mar 20, 2024
162fdcd
Update Sanity deploy
Mar 21, 2024
ef972a7
Do stuff in the CMS directory
Mar 21, 2024
83cb7c5
Switch to Sanity action
Mar 21, 2024
b8ad893
Use the right token, deploy the right folder
Mar 21, 2024
5842d5f
Maybe we just need the dist folder?
Mar 21, 2024
3758c16
Revert to package deploy
Mar 21, 2024
317745f
Include the right env vars
Mar 21, 2024
73c0fd2
Update to deploy token
Mar 21, 2024
a653265
Make sure sections filter by language
Apr 1, 2024
c22da49
Don't extend YT full height, give it a background color
Apr 1, 2024
62d09f4
Make article hero conditional on slot
Apr 1, 2024
cbbb474
Fix dark mode for post header
Apr 1, 2024
168a20f
Fix post background images
Apr 1, 2024
7298839
Add manifest and service worker
Apr 1, 2024
fff78c1
Hero media not required for stories
Snugug Apr 1, 2024
12c9cde
Only include English
Apr 3, 2024
15b3d1e
Update dependnecies
Apr 3, 2024
46bb7c4
Only render English, 307 redirect Spanish
Apr 3, 2024
ea4893c
Add abbr and dl to text rendering
Apr 3, 2024
5b08f1d
Restrict what can be in a deflist term
Apr 3, 2024
f264234
Add release notes and RN page
Apr 3, 2024
35a5cac
Forgot the schemas
Apr 3, 2024
64f3b91
Make it full
Apr 3, 2024
f720357
Release notes for microcopy
Apr 4, 2024
1200909
Add released on microcopy
Apr 4, 2024
5e8d79f
Update Sanity
Apr 4, 2024
96c36c2
Add release notes
Apr 4, 2024
7acb995
Make details swinger work in dark mode
Apr 4, 2024
42d3808
Add RSS feed microcopy
Apr 5, 2024
5712240
Add RSS feed
Apr 5, 2024
1b3df08
Don't log microcopy
Apr 5, 2024
31cf15e
Add powerful redirects
Apr 5, 2024
9e96790
Add category to RSS feed for each item
Apr 5, 2024
fa45fab
🆕 Badge Guidelines Sanity Schema Updates (#703)
nickalcantara Apr 8, 2024
77b0c59
🆕 Badge Guidelines Frontend (#706)
nickalcantara Apr 9, 2024
35e558a
Add missing badges
Apr 9, 2024
ef8be68
Update badges
Apr 10, 2024
06b11bc
Fix css:* not hittin Svelte files
Apr 11, 2024
5633d45
Add badges zip to A2C page
Apr 11, 2024
defc143
Fix stylelint issues in Svelte files
Apr 11, 2024
936883c
Make additional content optional for release notes
Apr 17, 2024
57246f4
Add abbr and full for lts and ltc
Apr 17, 2024
dbee0b6
Add more release labels
Apr 17, 2024
607e7fc
Update labels and descriptions
Apr 17, 2024
3a0a055
Add release info to release notes
Apr 17, 2024
2adb34d
Fix news landing page title
Apr 18, 2024
5ba7747
Hide app company if not included
Apr 18, 2024
703ba86
Fix estimates to weeks instead of months
Apr 18, 2024
c9eb091
Fix placeholder images for stories
Apr 18, 2024
9bcd0a1
Fix dark mode stats
Apr 18, 2024
ca051a2
Fix theme background query
Apr 18, 2024
5e52ed0
Add I/O 2023 theme
Apr 18, 2024
d24dcfd
Make author and published date not bold
Apr 18, 2024
92e4193
Sort posts by updated date then published date
Apr 18, 2024
de59d18
Add announcements to the site
Apr 19, 2024
81256fc
Announcement is not required
Apr 19, 2024
9c0c112
Add global announcements in
Apr 19, 2024
16021b4
Hide marquee overflow
Apr 19, 2024
1971c34
Dark mode theme change, tabbed PWA mode
Snugug Apr 23, 2024
acd1ec3
Update guidelines for correct badge types
May 1, 2024
f3581e6
Update for dark mode and localizations
May 1, 2024
8a5876d
Don't go overboard with tab
May 1, 2024
a931bcd
Add Italian a2c in
May 2, 2024
bdf3fe8
Add anchor option to links
May 3, 2024
81102ca
Fix release notes without additional features
May 3, 2024
aa9549e
Update German A2C
May 3, 2024
61082cf
Add support for anchors to links and clean up local links in transforms
May 3, 2024
78250fc
Make H4s linkable in long-form text
May 3, 2024
4a41e75
Make release feature headers linkable
May 3, 2024
8a02028
Add keep up to date to release notes
May 3, 2024
b59a956
Only force article headers to 16/9 if it's got a YouTube video
May 3, 2024
a9a3b76
Make images and figures centered if they're their own paragraph
May 3, 2024
e3c3675
Make pagination around 1st item more consistent
May 3, 2024
0e5c0c1
Tweak first stat layout
May 6, 2024
1062e67
Responsive tables
May 6, 2024
c3e27a0
Add recursive 'text' render function for portable text
May 6, 2024
c098df8
Let stringify take a PortableTextBlock
May 6, 2024
1336497
Add IDs to definition list items
May 6, 2024
08b5228
Let both an image and a YouTube video be added to the hero
May 6, 2024
0a1f7ed
Manage both YouTube and Image hero being available for a post
May 6, 2024
09a67f1
Fix message types
May 6, 2024
9831a6d
Remove errant console.logs
May 6, 2024
90dd7f8
Fix page build error
May 6, 2024
5a407bb
Ensure light theme, at least for now
May 6, 2024
b4155b5
Improve accessibility of table headers when collapsed
Snugug May 7, 2024
670159a
Always display published date. Optionally display updated date
Snugug May 7, 2024
5304303
Fix iOS list style bug
Snugug May 7, 2024
90760cc
Fix CTA color in homepage header
Snugug May 7, 2024
a6911e0
Improve deep linking styling for definition lists
Snugug May 8, 2024
e03b83d
Add release note redirects
Snugug May 8, 2024
441bf94
Add TODO to release notes
Snugug May 8, 2024
6c394c7
Bump dependencies
Snugug May 8, 2024
f5d827b
Update all dependencies
May 9, 2024
0050786
Improve spacing
May 9, 2024
d7038a3
Add requestIdleCallback polyfill
May 9, 2024
338c67f
Prepare for liftoff
May 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
Diff not rendered.
75 changes: 0 additions & 75 deletions .eleventy.js

This file was deleted.

1 change: 0 additions & 1 deletion .env.staging

This file was deleted.

4 changes: 0 additions & 4 deletions .eslintignore

This file was deleted.

20 changes: 0 additions & 20 deletions .eslintrc.yml

This file was deleted.

123 changes: 0 additions & 123 deletions .github/workflows/nodejs.yml

This file was deleted.

80 changes: 80 additions & 0 deletions .github/workflows/tbd-cms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Test, Build, Deploy - CMS

on:
push:
paths:
- cms/**
- .github/workflows/tbd-cms.yml
pull_request:
paths:
- cms/**
- .github/workflows/tbd-cms.yml
workflow_dispatch:

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: false

jobs:
test-build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: cms/pnpm-lock.yaml
- name: Install dependencies
working-directory: cms
run: pnpm install
- name: Test and Build
working-directory: cms
run: pnpm t
env:
SANITY_STUDIO_PROJECT: ${{ secrets.SANITY_PROJECT_ID }}
SANITY_STUDIO_PROD_DATASET: ${{ secrets.SANITY_DATASET }}
SANITY_STUDIO_DEV_DATASET: ${{ secrets.SANITY_DEV_DATASET }}

#########################
## Deploy site to Sanity
#########################
deploy:
needs: test-build
# Siwtch to refs/heads/main when merged
if: github.ref == 'refs/heads/refactor/main'
runs-on: ubuntu-latest
concurrency:
group: cms-deploy
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup PNPM
uses: pnpm/action-setup@v3
with:
version: 8
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
cache-dependency-path: cms/pnpm-lock.yaml
- name: Install dependencies
working-directory: cms
run: pnpm install
- name: Deploy
working-directory: cms
run: pnpm run deploy
env:
SANITY_AUTH_TOKEN: ${{ secrets.SANITY_DEPLOY_TOKEN }}
SANITY_STUDIO_PROJECT: ${{ secrets.SANITY_PROJECT_ID }}
SANITY_STUDIO_PROD_DATASET: ${{ secrets.SANITY_DATASET }}
Loading
Loading