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

feat(surveys): preact surveys components #964

Merged
merged 38 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
61f982f
setup wip
liyiy Jan 17, 2024
7947b7f
support new components in tests and add event listeners
liyiy Jan 19, 2024
29fdbc6
multiple choice and multiple question surveys
liyiy Jan 22, 2024
3fe72a5
connect multiple questions surveys and type fixes
liyiy Jan 23, 2024
f93a43e
convert feedback widget
liyiy Jan 23, 2024
b6f32ec
Merge branch 'master' into preact-surveys-components
liyiy Jan 23, 2024
8ec9328
working open choice option
liyiy Jan 25, 2024
31f4c97
clean up unit tests
liyiy Jan 28, 2024
cecfc52
fix confirmation box close
liyiy Jan 30, 2024
2bfc349
Merge branch 'master' into preact-surveys-components
liyiy Jan 30, 2024
1b4c7cd
missing lock file?
liyiy Jan 30, 2024
77008cf
fix test
liyiy Jan 30, 2024
f1d1a48
test
liyiy Jan 30, 2024
1928497
test flakey test
liyiy Jan 30, 2024
733cf0f
change order of capture wait
liyiy Jan 30, 2024
eefa9c6
test
liyiy Jan 30, 2024
35d4847
cypress leaving too quickly
liyiy Jan 30, 2024
d74a801
flakey test
liyiy Jan 30, 2024
3a33658
final fix??
liyiy Jan 30, 2024
185dc3d
Merge branch 'main' into preact-surveys-components
liyiy Feb 5, 2024
bb4b0fd
clean up useRef code
liyiy Feb 5, 2024
c86e25f
add todos and address rating question type comments
liyiy Feb 5, 2024
8725d5d
remove unused auto-text-color class
liyiy Feb 5, 2024
6b5e5d8
collapse else ifs
liyiy Feb 5, 2024
3115dbf
singular display state for surveys
liyiy Feb 5, 2024
cbdccb2
fix display status state
liyiy Feb 5, 2024
40955cd
fix test
liyiy Feb 5, 2024
87a6ea8
test
liyiy Feb 5, 2024
93964d5
this one test....
liyiy Feb 5, 2024
839e9cb
fix: TSconfig to allow file structure for surveys (#1001)
benjackwhite Feb 8, 2024
7c1a413
fix check mark color on white backgrounds
liyiy Feb 8, 2024
c0e07d9
test
liyiy Feb 9, 2024
82a6206
fix weird cached state test
liyiy Feb 9, 2024
01ef0b7
fix open ended answer submit bug
liyiy Feb 12, 2024
49b977a
split up the survey shown and dismissed event test
liyiy Feb 12, 2024
7877762
Merge branch 'main' into preact-surveys-components
liyiy Feb 12, 2024
f49ee3c
Merge branch 'main' into preact-surveys-components
liyiy Feb 13, 2024
c68be8f
feat(surveys): render surveys preview method (#1020)
liyiy Feb 14, 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
4 changes: 2 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
[
"@babel/transform-react-jsx",
{
"pragma": "Preact.h",
"pragmaFrag": "Preact.Fragment"
"runtime": "automatic",
"importSource": "preact"
}
]
]
Expand Down
700 changes: 573 additions & 127 deletions cypress/e2e/surveys.cy.ts

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"babel-eslint": "10.1.0",
"babel-jest": "^26.6.3",
"cypress": "13.6.3",
"cypress-localstorage-commands": "^2.2.5",
"eslint": "8.56.0",
"eslint-config-posthog-js": "link:eslint-rules",
"eslint-config-prettier": "^8.5.0",
Expand All @@ -80,6 +81,7 @@
"msw": "^1.2.1",
"node-fetch": "^2.6.11",
"posthog-js": "link:",
"preact-render-to-string": "^6.3.1",
"prettier": "^2.7.1",
"rollup": "^4.9.6",
"rollup-plugin-dts": "^6.1.0",
Expand Down
29 changes: 28 additions & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ export default [
preact: 'preact',
},
},
{
file: 'dist/surveys.esm.js',
format: 'es',
sourcemap: true,
},
],
plugins: [...plugins],
},
Expand Down
Loading
Loading