Skip to content

Commit 0b98a1e

Browse files
pierremtbgithub-actions[bot]
authored andcommitted
[all-e2e] Point-and-click Helix from cylinders (#5979)
0 parents  commit 0b98a1e

File tree

2,813 files changed

+7627263
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

2,813 files changed

+7627263
-0
lines changed

.codespellrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[codespell]
2+
ignore-words-list: crate,everytime,inout,co-ordinate,ot,nwo,atleast,ue,afterall,ser
3+
skip: **/target,node_modules,build,dist,./out,**/Cargo.lock,./docs/kcl/*.md,.yarn.lock,**/yarn.lock,./openapi/*.json,./packages/codemirror-lang-kcl/test/all.test.ts,./public/kcl-samples,./rust/kcl-lib/tests/kcl_samples,tsconfig.tsbuildinfo

.env.development

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
NODE_ENV=development
2+
DEV=true
3+
VITE_KC_API_WS_MODELING_URL=wss://api.dev.zoo.dev/ws/modeling/commands
4+
VITE_KC_API_BASE_URL=https://api.dev.zoo.dev
5+
VITE_KC_SITE_BASE_URL=https://dev.zoo.dev
6+
VITE_KC_SITE_APP_URL=https://app.dev.zoo.dev
7+
VITE_KC_SKIP_AUTH=false
8+
VITE_KC_CONNECTION_TIMEOUT_MS=5000
9+
# ONLY add your token in .env.development.local if you want to skip auth, otherwise this token takes precedence!
10+
#VITE_KC_DEV_TOKEN="your token from dev.zoo.dev should go in .env.development.local"

.env.production

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
NODE_ENV=production
2+
VITE_KC_API_WS_MODELING_URL=wss://api.zoo.dev/ws/modeling/commands
3+
VITE_KC_API_BASE_URL=https://api.zoo.dev
4+
VITE_KC_SITE_BASE_URL=https://zoo.dev
5+
VITE_KC_SITE_APP_URL=https://app.zoo.dev
6+
VITE_KC_SKIP_AUTH=false
7+
VITE_KC_CONNECTION_TIMEOUT_MS=15000

.envrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
source_up_if_exists
2+
3+
use flake .

.eslintignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rust/**/*.ts
2+
!rust/kcl-language-server/client/src/**/*.ts
3+
*.typegen.ts
4+
packages/codemirror-lsp-client/dist/*
5+
e2e/playwright/snapshots/prompt-to-edit/*
6+
.vscode-test

.eslintrc

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"parserOptions": {
4+
"project": "./tsconfig.json"
5+
},
6+
"plugins": [
7+
"react-perf",
8+
"css-modules",
9+
"jest",
10+
"jsx-a11y",
11+
"react",
12+
"react-hooks",
13+
"suggest-no-throw",
14+
"testing-library",
15+
"@typescript-eslint"
16+
],
17+
"extends": [
18+
"plugin:css-modules/recommended",
19+
"plugin:jsx-a11y/recommended",
20+
"plugin:react-hooks/recommended"
21+
],
22+
"rules": {
23+
"@typescript-eslint/no-floating-promises": "error",
24+
"@typescript-eslint/no-misused-promises": "error",
25+
"@typescript-eslint/no-unused-vars": ["error", {
26+
"varsIgnorePattern": "^_",
27+
"argsIgnorePattern": "^_",
28+
"ignoreRestSiblings": true,
29+
"vars": "all",
30+
"args": "none"
31+
}],
32+
"jsx-a11y/click-events-have-key-events": "off",
33+
"jsx-a11y/no-autofocus": "off",
34+
"jsx-a11y/no-noninteractive-element-interactions": "off",
35+
"no-restricted-globals": [
36+
"error",
37+
{
38+
"name": "isNaN",
39+
"message": "Use Number.isNaN() instead."
40+
},
41+
],
42+
"no-restricted-syntax": [
43+
"error",
44+
{
45+
"selector": "CallExpression[callee.object.name='Array'][callee.property.name='isArray']",
46+
"message": "Use isArray() in lib/utils.ts instead of Array.isArray()."
47+
}
48+
],
49+
"semi": [
50+
"error",
51+
"never"
52+
],
53+
"react-hooks/exhaustive-deps": "off",
54+
"suggest-no-throw/suggest-no-throw": "warn",
55+
},
56+
"overrides": [
57+
{
58+
"files": ["e2e/**/*.ts"], // Update the pattern based on your file structure
59+
"extends": [
60+
"plugin:testing-library/react"
61+
],
62+
"rules": {
63+
"suggest-no-throw/suggest-no-throw": "off",
64+
"testing-library/prefer-screen-queries": "off",
65+
"jest/valid-expect": "off"
66+
}
67+
},
68+
{
69+
"files": ["src/**/*.test.ts"],
70+
"extends": [
71+
"plugin:testing-library/react"
72+
],
73+
"rules": {
74+
"suggest-no-throw/suggest-no-throw": "off",
75+
}
76+
}
77+
]
78+
}

.gitattributes

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
# Force batch scripts to always use CRLF line endings so that if a repo is accessed
5+
# in Windows via a file share from Linux, the scripts will work.
6+
*.{cmd,[cC][mM][dD]} text working-tree-encoding=UTF-16LE eol=CRLF
7+
*.{bat,[bB][aA][tT]} text working-tree-encoding=UTF-16LE eol=CRLF
8+
*.{ics,[iI][cC][sS]} text working-tree-encoding=UTF-16LE eol=CRLF
9+
*.{ps1,[iP][sS][1]} text working-tree-encoding=UTF-16LE eol=CRLF
10+
11+
# Force bash scripts to always use LF line endings so that if a repo is accessed
12+
# in Unix via a file share from Windows, the scripts will work.
13+
*.sh text eol=lfol=lf

.github/ISSUE_TEMPLATE/bug_report.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Bug Report
2+
description: File a bug report for the Zoo Modeling App
3+
title: "[BUG]: "
4+
labels: ["bug"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: "Thank you for taking the time to report a bug. Please provide as much information as possible to help us resolve it."
10+
11+
- type: textarea
12+
id: describe-bug
13+
attributes:
14+
label: Describe the bug
15+
description: A clear and concise description of what the bug is.
16+
placeholder: "Explain the bug..."
17+
validations:
18+
required: true
19+
20+
- type: textarea
21+
id: reproduce-bug
22+
attributes:
23+
label: Steps to Reproduce
24+
description: Steps to reproduce the behavior.
25+
placeholder: |
26+
1. Go to '...'
27+
2. Click on '....'
28+
3. Scroll down to '....'
29+
4. See error
30+
validations:
31+
required: true
32+
33+
- type: textarea
34+
id: expected-behavior
35+
attributes:
36+
label: Expected Behavior
37+
description: Description of what you expected to happen.
38+
placeholder: "I expected that..."
39+
validations:
40+
required: true
41+
42+
- type: textarea
43+
id: screenshots
44+
attributes:
45+
label: Screenshots and Recordings
46+
description: If applicable, add screenshots to help explain your problem. Maximum upload size is 10MB.
47+
placeholder: "You can attach images or video recordings here."
48+
validations:
49+
required: false
50+
51+
- type: input
52+
id: desktop-os
53+
attributes:
54+
label: Desktop OS
55+
description: "Your operating system"
56+
placeholder: "example: Windows 10, MacOS Big Sur"
57+
validations:
58+
required: true
59+
60+
- type: input
61+
id: browser
62+
attributes:
63+
label: Browser
64+
description: "If you are using the web version, please specify the browser you are using."
65+
placeholder: "example: Chrome, Safari"
66+
validations:
67+
required: false
68+
69+
- type: input
70+
id: version
71+
attributes:
72+
label: Version
73+
description: "The version of the Zoo Modeling App you're using."
74+
placeholder: "example: v0.15.0. You can find this in the settings."
75+
validations:
76+
required: true
77+
78+
- type: textarea
79+
id: additional-context
80+
attributes:
81+
label: Additional Context
82+
description: Add any other context about the problem here.
83+
placeholder: "Anything else you want to add..."
84+
validations:
85+
required: false
+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Cryptic KCL Error
2+
description: File a bug report for source code that produces a confusing error
3+
title: "[CRYPTIC]: "
4+
labels: ["cryptic-error"]
5+
assignees: []
6+
body:
7+
- type: markdown
8+
attributes:
9+
value: "Thank you for taking the time to report a confusing error. Please provide as much information as possible to help us resolve it."
10+
11+
- type: textarea
12+
id: kcl
13+
attributes:
14+
label: Paste minimal KCL source that produces a cryptic error
15+
description: Minimal KCL reproducer that produces a cryptic error
16+
placeholder: "const ..."
17+
render: javascript
18+
validations:
19+
required: true
20+
21+
- type: textarea
22+
id: expected-behavior
23+
attributes:
24+
label: Expected Behavior
25+
description: Description of what you expected to happen (if you know).
26+
placeholder: "I expected that..."
27+
validations:
28+
required: false
29+
30+
- type: textarea
31+
id: additional-context
32+
attributes:
33+
label: Additional Context
34+
description: Add any other context about the problem here.
35+
placeholder: "Anything else you want to add..."
36+
validations:
37+
required: false
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM node:slim
2+
3+
COPY . /action
4+
WORKDIR /action
5+
6+
RUN npm install --production
7+
8+
ENTRYPOINT ["node", "/action/main.js"]
+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# github-release
2+
3+
Copy-pasted from
4+
https://github.com/bytecodealliance/wasmtime/tree/8acfdbdd8aa550d1b84e0ce1e6222a6605d14e38/.github/actions/github-release
5+
6+
An action used to publish GitHub releases for `wasmtime`.
7+
8+
As of the time of this writing there's a few actions floating around which
9+
perform github releases but they all tend to have their set of drawbacks.
10+
Additionally nothing handles deleting releases which we need for our rolling
11+
`dev` release.
12+
13+
To handle all this, this action rolls its own implementation using the
14+
actions/toolkit repository and packages published there. These run in a Docker
15+
container and take various inputs to orchestrate the release from the build.
16+
17+
More comments can be found in `main.js`.
18+
19+
Testing this is really hard. If you want to try though run `npm install` and
20+
then `node main.js`. You'll have to configure a bunch of env vars though to get
21+
anything reasonably working.
+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: "wasmtime github releases"
2+
description: "wasmtime github releases"
3+
inputs:
4+
token:
5+
description: ""
6+
required: true
7+
name:
8+
description: ""
9+
required: true
10+
files:
11+
description: ""
12+
required: true
13+
runs:
14+
using: "docker"
15+
image: "Dockerfile"

0 commit comments

Comments
 (0)