Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
2150149
Add git based dependencies into .ncurc configuration
codebuild-ro Oct 1, 2025
431c8da
Update page-lifecycle and y-indexeddb with tarball
codebuild-ro Oct 2, 2025
97874bf
Merge branch 'fork_main' into fix/re-enable-dependabot
codebuild-ro Oct 2, 2025
40cbe6a
Merge branch 'fork_main' into fix/re-enable-dependabot
codebuild-ro Oct 2, 2025
5eeece7
Merge branch 'fork_main' into fix/re-enable-dependabot
codebuild-ro Oct 7, 2025
2e5cec6
Temp Testing for failing puppeteer: rollback page-lifecycle
codebuild-ro Oct 7, 2025
5b14496
Revert "Temp Testing for failing puppeteer: rollback page-lifecycle"
codebuild-ro Oct 7, 2025
b0b2ff5
Skip failing test case for testing
codebuild-ro Oct 10, 2025
ecec300
Revert "Skip failing test case for testing"
codebuild-ro Oct 10, 2025
b89243a
Increase timeout values
codebuild-ro Oct 10, 2025
8e377d5
Revert "Increase timeout values"
codebuild-ro Oct 10, 2025
039cf33
Clear localStorage to ensure welcome modal shows in puppeteer tests
codebuild-ro Oct 10, 2025
73e28db
Wrap with try catch
codebuild-ro Oct 10, 2025
5facaa5
Rollback setup.ts, and remove test cases for testing
codebuild-ro Oct 10, 2025
9b20df2
Wrap testings with describe in color.ts
codebuild-ro Oct 10, 2025
4f6b1d8
Revert "Wrap testings with describe in color.ts"
codebuild-ro Oct 10, 2025
6a56822
Rollback caret partially
codebuild-ro Oct 10, 2025
aedf703
Rollback setup.ts
codebuild-ro Oct 10, 2025
17c4404
Rollback caret.ts
codebuild-ro Oct 10, 2025
ea48482
Rollback caret.ts
codebuild-ro Oct 13, 2025
179726e
Update puppeteer.yml file for uploading node_modules
codebuild-ro Oct 13, 2025
4b9f49a
Temp Testing for failing puppeteer: rollback page-lifecycle
codebuild-ro Oct 13, 2025
c70a585
Revert "Temp Testing for failing puppeteer: rollback page-lifecycle"
codebuild-ro Oct 13, 2025
d9d3888
Update upload node_module timing
codebuild-ro Oct 13, 2025
96b5000
Update puppeteer.yml for uploading node_modules
codebuild-ro Oct 13, 2025
0b62dab
Update for testing page-lifecycle - change the url with my fork page-…
codebuild-ro Oct 14, 2025
4a363eb
Temp Testing for failing puppeteer: rollback page-lifecycle
codebuild-ro Oct 14, 2025
67b42e0
Change page-lifecycle with direct tarball link
codebuild-ro Oct 14, 2025
c1c5d9b
update puppeteer.yml for wait for server running
codebuild-ro Oct 14, 2025
07c03fa
Remove uploading node_modules flow part
codebuild-ro Oct 14, 2025
6377356
Rollback puppeteer.yml and make waiter in puppeteer setup
codebuild-ro Oct 14, 2025
5c52db7
Temp Testing for failing puppeteer: rollback page-lifecycle
codebuild-ro Oct 15, 2025
10e8808
Fix page-lifecycle with tarball link
codebuild-ro Oct 15, 2025
6d1674d
update puppeteer.yml for let server runs correctly on CI
codebuild-ro Oct 15, 2025
bd87d4c
Add waiting func for server runs
codebuild-ro Oct 15, 2025
23fcf9a
Change to direct tarball link instead of using `resolutions` object
codebuild-ro Oct 16, 2025
35d96a4
Update yarn.lock
codebuild-ro Oct 16, 2025
ce4cb89
Update page lifecycle tarball with original repository
codebuild-ro Oct 16, 2025
a125460
Update yarn.lock
codebuild-ro Oct 16, 2025
99e792f
update puppeteer.yml to wait until server runs, instead of waiting wi…
codebuild-ro Oct 16, 2025
da95bbe
update package.json and README.md for dependency link urls
codebuild-ro Oct 17, 2025
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
5 changes: 0 additions & 5 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,3 @@ updates:
schedule:
interval: 'weekly'
open-pull-requests-limit: 10
ignore:
- dependency-name: 'page-lifecycle'
update-types: ['version-update:semver-major', 'version-update:semver-minor', 'version-update:semver-patch']
- dependency-name: 'y-indexeddb'
update-types: ['version-update:semver-major', 'version-update:semver-minor', 'version-update:semver-patch']
34 changes: 33 additions & 1 deletion .github/workflows/puppeteer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,39 @@ jobs:
run: yarn build

- name: Serve
run: yarn servebuild &
run: |
yarn servebuild &
SERVER_PID=$!
echo "Server PID: $SERVER_PID"

echo "Waiting for server to be ready..."
for i in {1..30}; do
if ! kill -0 $SERVER_PID 2>/dev/null; then
echo "Server process died!"
exit 1
fi

# Test the full request path and check for 502 errors
HTTP_STATUS=$(curl -s -o /dev/null -w "%{http_code}" -k https://localhost:2552 2>/dev/null || echo "000")

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

When start Test step, the log said that the server responds but with 502 (Bad gateway) status.
So I added script to wait until the server returns with 200 status code.

if [ "$HTTP_STATUS" = "200" ]; then
echo "Server is ready and responding with 200!"
break
elif [ "$HTTP_STATUS" = "502" ]; then
echo "Attempt $i/30: Server running but returning 502 (Bad Gateway) - proxy not ready"
elif [ "$HTTP_STATUS" = "000" ]; then
echo "Attempt $i/30: Server not responding yet"
else
echo "Attempt $i/30: Server responding with status $HTTP_STATUS"
fi

if [ $i -eq 30 ]; then
echo "Server failed to respond properly after 30 attempts (last status: $HTTP_STATUS)"
exit 1
fi

sleep 1
done

- name: Test
run: yarn test:puppeteer
Expand Down
24 changes: 24 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,3 +164,27 @@ This project uses [PandaCSS](https://panda-css.com/) for styling. Styles are aut
- If the styles get out of sync, restart the dev server or run `panda codegen`.

See: https://panda-css.com/docs/concepts/writing-styles

## Custom Dependencies

This project uses some custom dependencies that are overridden via `resolutions` in `package.json`. The actual versions used are specified in the `resolutions` section.

### Tarball URL Format

GitHub tarball URLs follow this format:
```
https://codeload.github.com/[owner]/[repo]/tar.gz/[commit-hash]
```

Example:
- Repository: `https://github.com/magic-akari/page-lifecycle`
- Commit hash: `50b50421bdeab3d211a57e81a277f699638373b0`
- Tarball URL: `https://codeload.github.com/magic-akari/page-lifecycle/tar.gz/50b50421bdeab3d211a57e81a277f699638373b0`

### Updating Dependencies

To update these custom dependencies:
1. Check the source repository for new commits
2. Get the new commit hash
3. Update the tarball URL in the `resolutions` section of `package.json`
4. Test thoroughly as these are custom forks
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
"workspace:"
],
"allowed-hosts": [
"codeload.github.com",
"github.com",
"npm",
"yarn"
Expand All @@ -71,7 +72,9 @@
"resetMocks": false
},
"resolutions": {
"@pandacss/node@npm:0.47.0": "patch:@pandacss/node@npm%3A0.47.0#~/.yarn/patches/@pandacss-node-npm-0.47.0.patch"
"@pandacss/node@npm:0.47.0": "patch:@pandacss/node@npm%3A0.47.0#~/.yarn/patches/@pandacss-node-npm-0.47.0.patch",
"page-lifecycle": "https://codeload.github.com/magic-akari/page-lifecycle/tar.gz/50b50421bdeab3d211a57e81a277f699638373b0",
"y-indexeddb": "https://codeload.github.com/raineorshine/y-indexeddb/tar.gz/60b960009085b1a988b5064ee35703229231531f"
},
"workspaces": [
"packages/*"
Expand Down Expand Up @@ -110,7 +113,7 @@
"murmurhash3js": "^3.0.1",
"nanoid": "^5.1.5",
"openai": "^5.20.3",
"page-lifecycle": "git+https://github.com/magic-akari/page-lifecycle#feat/add-types",
"page-lifecycle": "⚠️ OVERRIDDEN BY 'resolutions' - Source: https://github.com/magic-akari/page-lifecycle#feat/add-types | Tarball: https://codeload.github.com/magic-akari/page-lifecycle/tar.gz/50b50421bdeab3d211a57e81a277f699638373b0 | Configured in: package.json#resolutions",
"pluralize": "^8.0.0",
"qrcode.react": "^4.2.0",
"rc-slider": "^11.1.9",
Expand Down Expand Up @@ -144,7 +147,7 @@
"workbox-strategies": "^7.3.0",
"workbox-window": "^7.3.0",
"xhtml-purifier": "^0.4.1",
"y-indexeddb": "https://github.com/raineorshine/y-indexeddb#y-indexeddb-multiplex",
"y-indexeddb": "⚠️ OVERRIDDEN BY 'resolutions' - Source: https://github.com/raineorshine/y-indexeddb#y-indexeddb-multiplex | Tarball: https://codeload.github.com/raineorshine/y-indexeddb/tar.gz/60b960009085b1a988b5064ee35703229231531f | Configured in: package.json#resolutions",
"y-protocols": "^1.0.6",
"yallist": "^5.0.0",
"yjs": "^13.6.27"
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8887,7 +8887,7 @@ __metadata:
nanoid: "npm:^5.1.5"
npm-run-all2: "npm:^8.0.4"
openai: "npm:^5.20.3"
page-lifecycle: "git+https://github.com/magic-akari/page-lifecycle#feat/add-types"
page-lifecycle: "⚠️ OVERRIDDEN BY 'resolutions' - Source: https://github.com/magic-akari/page-lifecycle#feat/add-types | Tarball: https://codeload.github.com/magic-akari/page-lifecycle/tar.gz/50b50421bdeab3d211a57e81a277f699638373b0 | Configured in: package.json#resolutions"
pluralize: "npm:^8.0.0"
postinstall-postinstall: "npm:^2.1.0"
prettier: "npm:^3.6.2"
Expand Down Expand Up @@ -8936,7 +8936,7 @@ __metadata:
workbox-strategies: "npm:^7.3.0"
workbox-window: "npm:^7.3.0"
xhtml-purifier: "npm:^0.4.1"
y-indexeddb: "https://github.com/raineorshine/y-indexeddb#y-indexeddb-multiplex"
y-indexeddb: "⚠️ OVERRIDDEN BY 'resolutions' - Source: https://github.com/raineorshine/y-indexeddb#y-indexeddb-multiplex | Tarball: https://codeload.github.com/raineorshine/y-indexeddb/tar.gz/60b960009085b1a988b5064ee35703229231531f | Configured in: package.json#resolutions"
y-protocols: "npm:^1.0.6"
yallist: "npm:^5.0.0"
yjs: "npm:^13.6.27"
Expand Down Expand Up @@ -15424,10 +15424,10 @@ __metadata:
languageName: node
linkType: hard

"page-lifecycle@git+https://github.com/magic-akari/page-lifecycle#feat/add-types":
"page-lifecycle@https://codeload.github.com/magic-akari/page-lifecycle/tar.gz/50b50421bdeab3d211a57e81a277f699638373b0":
version: 0.1.2
resolution: "page-lifecycle@https://github.com/magic-akari/page-lifecycle.git#commit=50b50421bdeab3d211a57e81a277f699638373b0"
checksum: 10c0/e949c425e0da95197890f80f9163e882e482005f6ed1d67a1f257869f413e3e1b814fd8af1dd092d8957190f869734f8e760d3088ffbd993379a0f5af375016b
resolution: "page-lifecycle@https://codeload.github.com/magic-akari/page-lifecycle/tar.gz/50b50421bdeab3d211a57e81a277f699638373b0"
checksum: 10c0/ddf01b57da4e67db36aa00085476caa7291918e83baab5501443441125b106231b447a143eed786e3bffab1ea3556146f9ab15ce40d0512244ea2778c310972d
languageName: node
linkType: hard

Expand Down Expand Up @@ -20814,14 +20814,14 @@ __metadata:
languageName: node
linkType: hard

"y-indexeddb@https://github.com/raineorshine/y-indexeddb#y-indexeddb-multiplex":
"y-indexeddb@https://codeload.github.com/raineorshine/y-indexeddb/tar.gz/60b960009085b1a988b5064ee35703229231531f":
version: 9.0.11-multiplex.0
resolution: "y-indexeddb@https://github.com/raineorshine/y-indexeddb.git#commit=60b960009085b1a988b5064ee35703229231531f"
resolution: "y-indexeddb@https://codeload.github.com/raineorshine/y-indexeddb/tar.gz/60b960009085b1a988b5064ee35703229231531f"
dependencies:
lib0: "npm:^0.2.74"
peerDependencies:
yjs: ^13.0.0
checksum: 10c0/fce364bd0c537726703a5febc47f5a0866876335b65397e5dcc4f3c3bcd71fe0f85eb89520aeaef2ba92afa3a3ea4c94898225b2d2a96de4fb1fd6be4a7cc3ac
checksum: 10c0/fa4ba1b81f2c5e1fcee7445a1ff7a108947f83b1fea75a6bbf2efba925279726f0acc6b9c9c9f1e7f40642a1e34c9712e71ff3a528ca2890d42297ac82d92e43
languageName: node
linkType: hard

Expand Down