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: lottie validator #15

Merged
merged 24 commits into from
Sep 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
6d30bce
feat(pages): validator
Aidosmf Sep 13, 2024
89ab89c
feat: add validator link to header & footer
Aidosmf Sep 13, 2024
72ebaeb
chore: add ajv deps for validator
Aidosmf Sep 13, 2024
b23373b
feat: add tabs default ui
Aidosmf Sep 13, 2024
9ba7bd7
feat: add checkboxes & mv options outside ui
Aidosmf Sep 13, 2024
f555599
feat: add table default ui
Aidosmf Sep 13, 2024
bdae096
feat: update desc
Aidosmf Sep 13, 2024
e57eed2
feat: add tab content ui
Aidosmf Sep 13, 2024
ec252c4
feat: add loading spinner on validate
Aidosmf Sep 17, 2024
3681472
feat: prepare ui logic before validation
Aidosmf Sep 17, 2024
987dd67
feat: add lottie schema json
Aidosmf Sep 17, 2024
4c4c0ff
feat: ajv validation
Aidosmf Sep 17, 2024
50b3036
feat: render validation results intable
Aidosmf Sep 17, 2024
5b6f8a1
feat: ajv validation & render; remove useeffect
Aidosmf Sep 17, 2024
a41b1f3
refactor: move isValidUrl to helpers dir
Aidosmf Sep 18, 2024
e7883b0
refactor: move validator logic to utils
Aidosmf Sep 18, 2024
0614256
feat: integrate glax validator logic
Aidosmf Sep 18, 2024
d384504
feat: config filter checkboxes with minor refactoring
Aidosmf Sep 18, 2024
2e3733d
feat: responsive table ui
Aidosmf Sep 18, 2024
4987d89
refactor(validator): remove js warnigns
Aidosmf Sep 18, 2024
a2b1971
fix: reset textarea val
Aidosmf Sep 18, 2024
2c16734
refactor: better name for tr class
Aidosmf Sep 23, 2024
8845340
fix(validator): schema.oneOf is not iteratable on some cases
Aidosmf Sep 23, 2024
58f555e
refactor(pages/validator): destroy validator on unmount
Aidosmf Sep 23, 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
327 changes: 255 additions & 72 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"url": "https://github.com/lottie/lottie.github.io/issues"
},
"dependencies": {
"ajv": "^8.17.1",
"bootstrap": "^5.3.2",
"gatsby": "^5.13.1",
"gatsby-plugin-feed": "^5.13.0",
Expand Down
2,258 changes: 2,258 additions & 0 deletions src/assets/lottie.schema.json
Copy link
Member Author

Choose a reason for hiding this comment

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

the schema will be moved to the LottieValidator NPM package

Copy link
Member

Choose a reason for hiding this comment

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

We'll probably want to use versioned names for the schema file once we have a separate package

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions src/components/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@ export const Footer = () => {
{ROUTES.roadmap.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link as={Link} to={ROUTES.validator.route} target="_blank">
{ROUTES.validator.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link as={Link} to={ROUTES.community.route} target="_blank">
{ROUTES.community.text}
Expand Down
9 changes: 9 additions & 0 deletions src/components/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,15 @@ export const Header = () => {
{ROUTES.roadmap.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link
as={Link}
className="text-capitalize"
to={ROUTES.validator.route}
>
{ROUTES.validator.text}
</Nav.Link>
</Nav.Item>
<Nav.Item>
<Nav.Link as={Link} to={ROUTES.community.route} target="_blank">
{ROUTES.community.text}
Expand Down
4 changes: 4 additions & 0 deletions src/constants/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,8 @@ export const ROUTES = {
route: "/compliance-buttons",
text: "Compliance Buttons",
},
validator: {
route: "/validator",
text: "Validator",
},
}
Loading