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

Nested sidebar nav for certification and Front-End Sites section #9047

Merged
merged 139 commits into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
97e22c1
mdx and import ordering
stevector Apr 26, 2024
9f34a0d
Update index.js
stevector Apr 26, 2024
b9008bd
whitespace fixes
stevector Apr 26, 2024
5eae4c8
merging
stevector Apr 30, 2024
8b93d7f
Merge branch 'main' into mdx-and-css-fixes
rachelwhitton May 9, 2024
5b9f380
BackstopJS init for local VRT (#8989)
rachelwhitton May 9, 2024
d95bca8
removing potentially unneeded component
stevector May 13, 2024
cf75a79
Revert "removing potentially unneeded component"
stevector May 13, 2024
1a872ea
removing releaseHeadlines from MdxWrapper
stevector May 13, 2024
8e731b3
adding more pages to backstop
stevector May 13, 2024
4771556
adding npx to instructions
stevector May 13, 2024
cdc5483
mdx customshortcodes
stevector May 14, 2024
7d58394
Merge remote-tracking branch 'origin/main' into mdx-and-css-fixes
stevector May 20, 2024
6457cd6
Revert "BackstopJS init for local VRT (#8989)"
rachelwhitton Jun 11, 2024
00ebff4
Merge branch 'main' into mdx-and-css-fixes
rachelwhitton Jun 11, 2024
c2f1234
Merge remote-tracking branch 'origin/main' into sidebar-omni-nav
stevector Jun 12, 2024
75cf363
starting on a new sidebar
stevector Jun 12, 2024
885cc88
getting sidebar somewhat functional
stevector Jun 12, 2024
7ed44c1
more sidebar nav playing
stevector Jun 12, 2024
9d7278e
Certification multilevel nav
stevector Jun 12, 2024
3e34cce
Getting certification working with multilevel menu
stevector Jun 12, 2024
03a177a
more sidebar experimenting
stevector Jun 13, 2024
1b194e2
sidebar nav graphql-ing
stevector Jun 13, 2024
31ff665
adding guides to omni nav
stevector Jun 13, 2024
8709fae
adding subtitles
stevector Jun 13, 2024
b3d4279
adding stuff
stevector Jun 13, 2024
fc7a7bf
more nav
stevector Jun 13, 2024
ee637de
link nesting
stevector Jun 13, 2024
179b9c2
more link mucking
stevector Jun 13, 2024
924d411
still working
stevector Jun 13, 2024
6dc44b6
still working
stevector Jun 13, 2024
d52d70e
removing commented out code
stevector Jun 13, 2024
2140f8b
cleanup
stevector Jun 13, 2024
c17c6fb
starting on omni component
stevector Jun 20, 2024
3f74e8f
trying function in separate file
stevector Jun 21, 2024
22d23b4
functioning again
stevector Jun 21, 2024
3c2581c
submenus
stevector Jun 21, 2024
8e33575
wrangling the guides
stevector Jun 24, 2024
79308c9
getting decoupled guides
stevector Jun 24, 2024
4dadd6a
more decouple guiding
stevector Jun 24, 2024
594a25b
more simplification
stevector Jun 24, 2024
7580ee3
splitting up
stevector Jun 25, 2024
8f45d6f
segmenting out guide function
stevector Jun 25, 2024
f094fdf
delete unused files
stevector Jun 25, 2024
eedb013
guide!
stevector Jun 25, 2024
dad90c3
whitespace
stevector Jun 25, 2024
759b79b
more re-arranging
stevector Jun 25, 2024
3cd145a
no errors
stevector Jun 25, 2024
c906c6a
remove unused stuff
stevector Jun 25, 2024
a1e9bfd
no errors with query coming from outside index.js
stevector Jun 25, 2024
9d1300f
more tweaks
stevector Jun 25, 2024
8372bbc
adding OmniSidebarNavWithFallback.js
stevector Jun 25, 2024
90698c8
fallback is working in guide
stevector Jun 25, 2024
0f4046a
whitespace
stevector Jun 25, 2024
3b67d44
using fallback
stevector Jun 25, 2024
957c2d8
more cleanup
stevector Jun 25, 2024
122b92c
getting rid of separate OmniSidebarNavWithFallback
stevector Jun 25, 2024
fa64a51
more cleanup
stevector Jun 26, 2024
49b1c19
link fix
stevector Jul 1, 2024
550ef9b
screenshot testing nav
stevector Jul 1, 2024
2c8572d
update prettier
stevector Jul 1, 2024
e4f05fb
running prettier
stevector Jul 1, 2024
a914402
switching prettier standard based on internal discussion
stevector Jul 1, 2024
7705f80
adding eslint
stevector Jul 1, 2024
f84fc28
adding eslint
stevector Jul 1, 2024
c3d5fc8
Revert "adding eslint"
stevector Jul 1, 2024
3e839b5
Revert "adding eslint"
stevector Jul 1, 2024
54aabfb
Revert "running prettier"
stevector Jul 1, 2024
72e6097
small prettier formatting
stevector Jul 1, 2024
31c1954
formatting
stevector Jul 1, 2024
7715255
manual spacing
stevector Jul 1, 2024
14c826b
more manual
stevector Jul 1, 2024
3f1cc9c
manual formatting
stevector Jul 1, 2024
708a88b
prettier with manual fix
stevector Jul 1, 2024
1875b16
prettier fixes
stevector Jul 1, 2024
9e185ef
simplify regex
stevector Jul 2, 2024
7f95a83
prettier comment
stevector Jul 2, 2024
3737121
Revert "prettier comment"
stevector Jul 2, 2024
05b2c70
going back to work regex
stevector Jul 2, 2024
ab1beb2
I do not even need the regex
stevector Jul 2, 2024
5af02ea
adding vitest
stevector Jul 3, 2024
cc5dda8
adding unit tests samples
stevector Jul 3, 2024
087f29a
moving helper functions to their own file
stevector Jul 3, 2024
4f710c5
more testing
stevector Jul 3, 2024
e20af5d
query in its own file
stevector Jul 3, 2024
6c641d5
more unit testing
stevector Jul 3, 2024
e7a6270
one more unit test
stevector Jul 4, 2024
676ec4a
fix
stevector Jul 4, 2024
eb4053c
removing helper functions that were too small
stevector Jul 4, 2024
84fb491
more moving helper functions
stevector Jul 4, 2024
7d99ac9
moving deck chairs
stevector Jul 4, 2024
3cb3fb7
removing a too small function. And removing sample unit test
stevector Jul 4, 2024
53f28e5
deleting separate sidebarNav component
stevector Jul 4, 2024
5e94008
moving test fixture
stevector Jul 4, 2024
fc9f98c
simplyfing a function
stevector Jul 4, 2024
938f290
simplify data structures
stevector Jul 4, 2024
5c58736
running prettier
stevector Jul 4, 2024
64d0353
checking for search js before adding it
stevector Jul 10, 2024
1a05428
Merge branch 'fixing-search-hmr' into nested-cert-nav
stevector Jul 10, 2024
8eb4198
Merge remote-tracking branch 'origin/main' into nested-cert-nav
stevector Jul 10, 2024
81a27f5
cleanup
stevector Jul 10, 2024
ff83e64
adding some doc blocks and minor refactor
stevector Jul 10, 2024
15270c0
docs and cleanup
stevector Jul 10, 2024
31bdf60
more comments
stevector Jul 10, 2024
326b254
more cleanup
stevector Jul 10, 2024
bbcae6c
more comments more tests
stevector Jul 10, 2024
472c5de
adding all the front-end sites guides
stevector Jul 10, 2024
07e534e
removing extra nav alert in the middle of decouple overview pages
stevector Jul 10, 2024
f4a2fb8
running prettier
stevector Jul 10, 2024
4ba6420
going back to old prettier config files. Redo this change under https…
stevector Jul 10, 2024
c969c73
Merge remote-tracking branch 'origin/main' into nested-cert-nav
stevector Jul 24, 2024
4311b81
starting to add a styling file for omnisidebarnav
stevector Jul 24, 2024
1a8a51f
starting on styling
stevector Jul 24, 2024
e237ecd
getting external link indicator working
stevector Jul 24, 2024
88b62ec
merging main
stevector Jul 24, 2024
a7aee27
remove extra arrow in link
stevector Jul 24, 2024
a86a02b
removing console.log
stevector Jul 24, 2024
8468bfa
Add vitest to GitHub actions (#9162)
jazzsequence Aug 8, 2024
991ee46
moving icon to back and setting to small
stevector Aug 16, 2024
1deca10
merge
stevector Aug 16, 2024
ca1475e
Merge remote-tracking branch 'origin/main' into nested-cert-nav
stevector Oct 7, 2024
34ca4e2
testing readme
stevector Oct 7, 2024
3ebd2d6
fixing link
stevector Oct 7, 2024
3ea6421
copy fix
stevector Oct 7, 2024
df5f62d
changing addsearch back
stevector Oct 7, 2024
e2d3f13
addsearch back
stevector Oct 7, 2024
d0959e4
adding vite.config.ts
stevector Oct 7, 2024
9f98dd2
Updating import order
stevector Oct 7, 2024
88b03bd
update tests readme
stevector Oct 8, 2024
7e7b21b
merging main
stevector Oct 11, 2024
795d023
Merge 7e7b21b1fc1c98b6022106aaa1df15329a189276 into 3239aa5f066e07b31…
stevector Oct 11, 2024
bf4bfb6
Apply Prettier formatting
Oct 11, 2024
095d692
removing comment
stevector Oct 11, 2024
3200365
vitest fix, fingers crossed
stevector Oct 11, 2024
51881ca
Merge branch 'nested-cert-nav' of github.com:pantheon-systems/documen…
stevector Oct 11, 2024
1138c54
adding rollup
stevector Oct 11, 2024
a6b7a13
package merges
stevector Oct 24, 2024
26755b9
Merge remote-tracking branch 'origin/main' into nested-cert-nav
stevector Oct 24, 2024
da62125
re-adding vitest stuff
stevector Oct 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/vitest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: JavaScript Unit Tests
on:
pull_request:
paths:
- 'src/**'
- '.github/workflows/vitest.yml'
types:
- opened
- synchronize
- reopened
- ready_for_review
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 'latest'
- run: npm ci
- run: npx vitest src/components
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,19 @@ Be cautious when running this command, as it will automatically fix any formatti

## Testing

We include several tools to test that new content doesn't break the documentation. Most of these tests are performed automatically by our continuous integration service, but pull requests created from external contributors aren't included in CI tests. If you want to manually test your branch, you can execute the following tests within the Docker container.
To reduced the likelihood of regressions and bugs this site uses a few different testing tools:

### Merge Conflicts
### Visual Regression Tests

To check for merge conflict messages accidentally committed into the docs, run `merge_conflicts.sh` from `scripts`.
Within the [`tests`](/tests/) directory there are a number of visual regression tests that can be run to compare the current state of the site to a PR preview or the live site.
These tests are meant to be run locally instead of CI as they have a high rate of false positives.

### Unit Tests

Unit tests for custom logic are written in in Vitest and can be executed with

```bash
npx vitest src/components
```

These tests are executed in CI via a [GitHub Action](.github/workflows/vitest.yml).
Loading
Loading