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

Migrating the Project to Astro + tweaking #118

Merged
merged 58 commits into from
Sep 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
58 commits
Select commit Hold shift + click to select a range
40aed1d
chore: initial astro setup + markdown for results
yjose Aug 27, 2024
5ca266c
feat: update calculation logic to typescript + add more tests
yjose Aug 29, 2024
2c291a6
feat: setup markdown config + logic to handle multiple section for re…
yjose Aug 29, 2024
e0674b8
fix: fix tests
yjose Aug 29, 2024
c0f0c43
feat: setup chart component
yjose Aug 29, 2024
bdfe045
feat: add tabs component
yjose Aug 30, 2024
506b4f3
refactor: remove numbers from titles
yjose Sep 4, 2024
f822d41
feat: create report pages
yjose Sep 4, 2024
0f4fa13
feat: update fonts + more updates
yjose Sep 4, 2024
10efbae
fix: more layout fixes
yjose Sep 5, 2024
53fa7f4
feat: add faq screen
yjose Sep 5, 2024
e5f21a2
fix: fix year context
yjose Sep 5, 2024
c603866
feat: layout seo
yjose Sep 6, 2024
a2b19b0
fix: fix typo in component folder + tweaking
yjose Sep 10, 2024
72890d3
feat: playground first iteration
yjose Sep 10, 2024
83adb03
refactor: refactor filters + playground
yjose Sep 10, 2024
baabcbe
fix: fix build
yjose Sep 10, 2024
d713400
feat: more chart tweaking
yjose Sep 11, 2024
0ea3ec9
feat: tweaking the chart and button actions
yjose Sep 11, 2024
2152647
fix: fix build
yjose Sep 11, 2024
863ccf8
feat: bar chart new design
yjose Sep 11, 2024
22d6637
refactor: refactor files structure
yjose Sep 12, 2024
944d308
feat: add pie chart
yjose Sep 12, 2024
5ed3075
refactor: refactor chart components
yjose Sep 12, 2024
3d84c82
feat: add test reports with github action
yjose Sep 16, 2024
b3bd49c
feat: add prettier and eslint rules
yjose Sep 16, 2024
f4fe07a
feat: add lint as github action
yjose Sep 16, 2024
e583721
feat: add naming convention to eslint
yjose Sep 16, 2024
a265bc6
feat: firebase setup
yjose Sep 16, 2024
8568796
fix: fix cloudflare build with hybrid mode
yjose Sep 17, 2024
8ef8d59
fix: fix linting
yjose Sep 17, 2024
cb059de
fix: fix missed button error
yjose Sep 17, 2024
8e1fabc
feat: add precomit to prevent issue on ci
yjose Sep 17, 2024
cc1353c
chore: switch to netlify for hosting
yjose Sep 17, 2024
21fc7d9
chore: no redirect
yjose Sep 17, 2024
91aa8db
feat: fix issue with firebase credentials
yjose Sep 17, 2024
d9bb841
chore: back to redirect
yjose Sep 17, 2024
935008a
feat: add answers submissions
yjose Sep 17, 2024
e15a84d
fix: fix header on mobile
yjose Sep 17, 2024
204cfcc
feat: setup vitest for react
yjose Sep 17, 2024
567148d
feat: chart ui tweaking
yjose Sep 17, 2024
80cfd2b
refactor: move data files to root folder
yjose Sep 18, 2024
5fbc877
feat: setup survey form
yjose Sep 18, 2024
ed89bf1
feat: add survey form submission + mobile ui tweaking
yjose Sep 18, 2024
5bf60b8
test: start form testing
yjose Sep 18, 2024
56493e6
feat: complete test for form submission
yjose Sep 19, 2024
78b4ec3
fix: fix bar style
yjose Sep 19, 2024
147dd05
feat: add missed test for survey form
yjose Sep 19, 2024
d0cf3e8
feat: add captcha validation on session creation
yjose Sep 19, 2024
73ee3a3
feat: update before start ui + add loading state
yjose Sep 19, 2024
3c593b3
feat: make the playground results shareable using a URL
yjose Sep 19, 2024
394ead9
fix: fix playground share links
yjose Sep 19, 2024
2ac81bd
feat: thanks page share posts
yjose Sep 20, 2024
6838b4a
fix: fix captcha loading
yjose Sep 20, 2024
d5ab780
fix: fix copy content button
yjose Sep 20, 2024
a819e99
feat: card rtl fixes
yjose Sep 20, 2024
54bb953
feat: chart sharing fixes
yjose Sep 20, 2024
3c5ec24
feat: add playground section
yjose Sep 20, 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
180 changes: 0 additions & 180 deletions .all-contributorsrc

This file was deleted.

32 changes: 32 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/** @type {import("eslint").Linter.Config} */
module.exports = {
extends: ['plugin:astro/recommended'],
plugins: ['unicorn'],
parser: '@typescript-eslint/parser',
parserOptions: {
tsconfigRootDir: __dirname,
sourceType: 'module',
ecmaVersion: 'latest'
},
overrides: [
{
files: ['*.astro'],
parser: 'astro-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
extraFileExtensions: ['.astro']
},
rules: {
// Add any specific rules for .astro files here
}
}
],
rules: {
'unicorn/filename-case': [
'error',
{
case: 'kebabCase',
},
],
}
}
37 changes: 37 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Lint

on:
pull_request:
push:
branches:
- master

jobs:
lint:
runs-on: ubuntu-latest

permissions:
contents: read
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run linting
run: pnpm run lint:ci
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test

on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest

permissions:
# Required to checkout the code
contents: read
# Required to put a comment into the pull-request
pull-requests: write

steps:
- name: Checkout
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 9
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: "Test"
run: pnpm run test:ci
- name: "Report Coverage"
# Set if: always() to also generate the report if tests are failing
# Only works if you set `reportOnFailure: true` in your vite config as specified above
if: always()
uses: davelosert/vitest-coverage-report-action@v2
Loading