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

Start using a list of verses pre-selected by the community #31

Merged
merged 8 commits into from
May 2, 2024

Conversation

eoSalinas
Copy link
Owner

The modifications to this PR cause the application to start using a list of verses pre-selected by the community, bringing more context to the verses.

Also fixed is the countdown refresh bug, as well as a refactoring to improve the maintainability of the component.

eoSalinas and others added 8 commits March 22, 2024 10:55
Added a new route in our application at `api/random-verse` to select random verses from a pre-selected group.

This addition addresses the issue described in #2, where verses could be returned without context or meaning. Now, the selected verses will be more meaningful and relevant.

See issue #2
This commit adds a JSON schema to validate the structure and uniqueness of verses.

This addition not only provides intellisense for future contributors but also ensures that each item contains the necessary: abbreviation, chapter, and verse, and that there are no duplicate verses. This promotes greater data integrity within the project.
This addition implements validation of `verses.json` against `verses.schema.json` using ajv-cli in Husky's pre-commit.

This ensures the integrity and consistency of the verses in the project with each commit, ensuring that only "valid" data is sent to the repository.

Additionally, the execution of the linting script has been included in the pre-commit to maintain code quality.

The setup of @commitlint/cli and @commitlint/config-conventional has also been configured, providing a consistent pattern for commit messages ensured by Husky.
Now, the API URL is defined through an environment variable, allowing flexibility to use different URLs according to the execution environment.

Also implements type and validation of environment variables. Additionally, adds a function to facilitate and abstract requests to our API routes for better code organization and readability.
…rsículos-bíblicos

Aprimorando a seleção de versículos bíblicos
feat: add eslint check and fix scripts
feat: Refactor the countdown to better maintainability
fix: fix counter not refreshing when running router.refresh()
Refactor the countdown code and fix some bugs, also implements error handling for api call.
This is a list of 365 verses pre-selected by the community.
Thank you to everyone who contributed!

Romans 11:36

---------

Co-authored-by: Gabriel Cursino <gabrielcursino.medeiros@gmail.com>
Co-authored-by: Johan Vilela <johanvilela@hotmail.com>
Co-authored-by: Clóvis Daniel Souza Silva <clovisdanielss@gmail.com>
Co-authored-by: Thales Gomes Targino <thalestargino@gmail.com>
Co-authored-by: Joao Paulo Alencar Rodrigues <joao.paulo@inovan.do>
Co-authored-by: Marcelo <97993630+Mmarcelinho@users.noreply.github.com>
Copy link

vercel bot commented May 2, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
verse ✅ Ready (Inspect) Visit Preview May 2, 2024 1:57pm

@eoSalinas eoSalinas merged commit 570c3cd into main May 2, 2024
2 checks passed
@eoSalinas eoSalinas deleted the develop branch May 2, 2024 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants