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: miscellaneous search-v2-related updates #101

Merged
merged 45 commits into from
Jan 2, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
5a2e233
chore(workflows): skip commit message linting [no ci]
joshuagraber Jul 25, 2024
f4a0b66
Merge branch 'main' into beta
joshuagraber Jul 25, 2024
08965c1
refactor(components): miscellaneous form updates (#100)
joshuagraber Aug 20, 2024
44e2207
Merge branch 'main' into beta
joshuagraber Aug 20, 2024
7ac0e6e
feat: add record type icon to form input labels (#103)
joshuagraber Sep 12, 2024
a4491b0
fix(colors): update color-neutral-200 (#104)
joshuagraber Sep 12, 2024
c362b2e
feat: form v2 and inputs v2 (#105)
joshuagraber Oct 8, 2024
3cf95f6
fix: miscellaneous form v2 bugs (#108)
joshuagraber Oct 9, 2024
44a9241
fix: input v2 labelling (#109)
joshuagraber Oct 9, 2024
ad35c57
feat(components): create SelectInput (#110)
joshuagraber Oct 11, 2024
f32dbb9
feat(components): add textarea input (#111)
joshuagraber Oct 15, 2024
b2673c9
fix(components): export textarea component (#112)
joshuagraber Oct 16, 2024
fb5f046
fix: forgot yet another export (#113)
joshuagraber Oct 16, 2024
9a8fc39
refactor(components): expose error state from form (#114)
joshuagraber Oct 17, 2024
249837d
refactor(components): emit error event from form (#115)
joshuagraber Oct 17, 2024
69c17a0
fix: form error handling (#116)
joshuagraber Oct 21, 2024
4137fb4
fix: select menu placeholder styling (#117)
joshuagraber Oct 21, 2024
7ace5f7
feat: add loading state to button (#118)
joshuagraber Nov 12, 2024
d35efc6
fix: button loading overlap (#119)
joshuagraber Nov 12, 2024
1f293f5
fix: another time for the button children (#120)
joshuagraber Nov 12, 2024
491beed
fix: button take 3
joshuagraber Nov 12, 2024
3af1108
fix(components): update button loading state children
joshuagraber Nov 13, 2024
69f8898
fix: form not emitting on change on safari (#121)
joshuagraber Nov 13, 2024
a8603bf
refactor(utils): add url validator to vuelidate impl
joshuagraber Nov 14, 2024
13ba960
refactor(components): update select menu -> combobox (#122)
joshuagraber Nov 19, 2024
835b11f
feat: date picker (#124)
joshuagraber Nov 20, 2024
9a9504e
refactor(components): use dark mode styles for input components (#125)
joshuagraber Nov 20, 2024
f928846
feat(components): add radio button and radio group (#127)
joshuagraber Nov 21, 2024
61ac2bc
refactor: update checkbox and radio styling
joshuagraber Nov 21, 2024
7d4ae1c
fix(components): record type -> icon map
joshuagraber Nov 22, 2024
0370904
fix(components): export radio components
joshuagraber Nov 22, 2024
84e87cd
fix: record type icon
joshuagraber Nov 22, 2024
1b05bb6
fix: record type icon
joshuagraber Nov 22, 2024
87fa267
fix: record type icon to lowercase
joshuagraber Nov 22, 2024
c4b8427
fix: select combobox tab behavior
joshuagraber Nov 23, 2024
2a07819
fix(components): select menu
joshuagraber Nov 23, 2024
cf22d55
fix(components): input select not emitting change event
joshuagraber Nov 23, 2024
edd44a5
refactor(utils): update vuelidate to be more flexible
joshuagraber Nov 24, 2024
867cd74
fix: checkbox and radio styles
joshuagraber Nov 25, 2024
ee862e6
refactor: update footer to v2 design (#129)
joshuagraber Dec 6, 2024
1578a50
feat(components): update footer to expose link types
joshuagraber Dec 11, 2024
9c12949
Merge branch 'beta' of github.com:Police-Data-Accessibility-Project/d…
joshuagraber Dec 11, 2024
b290f6e
fix(footer): miscellaneous styling issues
joshuagraber Dec 12, 2024
c21e9ea
refactor(components): update footer success UI
joshuagraber Dec 12, 2024
8b0f125
fix(components): footer spacing and campaign progress
joshuagraber Dec 12, 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
6 changes: 6 additions & 0 deletions .husky/post-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env sh
[ -n "$CI" ] && exit 0

. "$(dirname -- "$0")/_/husky.sh"

npm run docs
2 changes: 1 addition & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run docs && npm run test:ci
npm run test:ci
2 changes: 1 addition & 1 deletion commitlint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'footer-max-length': [2, 'never']
'footer-max-length': [0]
}
};
3 changes: 3 additions & 0 deletions docs/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
- [Form](../src/components/Form//README.md)
- [Header](../src/components/Header//README.md)
- [Input](../src/components/Input//README.md)
- [InputDatePicker](../src/components/InputDatePicker//README.md)
- [InputRadio](../src/components/InputRadio//README.md)
- [InputSelect](../src/components/InputSelect//README.md)
- [Nav](../src/components/Nav//README.md)
- [QuickSearchForm](../src/components/QuickSearchForm//README.md)
- [Spinner](../src/components/Spinner//README.md)
171 changes: 165 additions & 6 deletions package-lock.json

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

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/release-notes-generator": "^12.1.0",
"@types/lodash": "^4.17.13",
"@types/node": "^20.8.9",
"@typescript-eslint/eslint-plugin": "^6.9.1",
"@typescript-eslint/parser": "^6.9.1",
Expand Down Expand Up @@ -85,8 +86,14 @@
"vue-tsc": "^1.8.22"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.6.0",
"@fortawesome/free-brands-svg-icons": "^6.6.0",
"@fortawesome/free-regular-svg-icons": "^6.6.0",
"@fortawesome/free-solid-svg-icons": "^6.6.0",
"@fortawesome/vue-fontawesome": "^3.0.8",
"@vuelidate/core": "^2.0.3",
"@vuelidate/validators": "^2.0.4",
"@vuepic/vue-datepicker": "^10.0.0",
"fs-extra": "^11.1.1",
"happy-dom": "^6.0.4",
"minimist": "^1.2.8",
Expand Down
4 changes: 2 additions & 2 deletions scripts/update-docs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ done

# create a commit, only if there are changes
if git diff --quiet docs/$output_file; then
echo -e "No new component README files detected.\nProceeding with push"
echo -e "No new component README files detected.\nNo new commit will be created."
exit 0
else
commit_msg="chore(docs): auto-update to component docs"

echo "New README files detected, committing updated docs/$output_file file..."
git add docs/$output_file && git commit -m "$commit_msg" --no-verify && echo "Commit finished, proceeding with push"
git add docs/$output_file && git commit -m "$commit_msg" --no-verify && echo "Updated documentation added to the TOC in \`docs/components.md\` and committed."
fi
18 changes: 17 additions & 1 deletion src/components/Button/PdapButton.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
<template>
<button :class="classes">
<slot />
<slot v-if="!isLoading" />
<Spinner v-if="isLoading" :show="isLoading" />
</button>
</template>

<script setup lang="ts">
// Imports
import { reactive } from 'vue';
import { Spinner } from '../Spinner';

// Types
import { PdapButtonProps } from './types';
Expand Down Expand Up @@ -74,3 +76,17 @@ export default {
}
}
</style>

<style scoped>
@media (prefers-reduced-motion: no-preference) {
.v-enter-active,
.v-leave-active {
transition: opacity 0.5s ease;
}

.v-enter-from,
.v-leave-to {
opacity: 0;
}
}
</style>
6 changes: 5 additions & 1 deletion src/components/Button/__snapshots__/button.spec.ts.snap
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`Renders button component > Renders a button 1`] = `<button class="pdap-button pdap-button-primary">Button Content</button>`;
exports[`Renders button component > Renders a button 1`] = `
<button class="pdap-button pdap-button-primary">Button Content
<!--v-if-->
</button>
`;
Loading
Loading