Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
66 commits
Select commit Hold shift + click to select a range
344060f
Merge pull request #15 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
10ceb61
Merge pull request #18 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
8335c4b
Merge pull request #19 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
dea2b3d
Merge pull request #20 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
24388a7
Merge pull request #21 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
18684f6
Merge pull request #22 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
29db9f1
Merge pull request #23 from Stivenjs/feature/get-started
Stivenjs Jan 31, 2025
a11f58b
Merge pull request #24 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
83d9626
Merge pull request #25 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
980bdff
Merge pull request #26 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
f867cb9
Merge pull request #27 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
519d2db
Merge pull request #28 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
451aa96
Merge pull request #29 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
bc1abb4
Merge pull request #30 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
8a0514a
Merge pull request #31 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
3ff59ef
Merge pull request #32 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
d47f219
Merge pull request #35 from Stivenjs/feature/get-started
Stivenjs Feb 1, 2025
400cbb8
feat: add getStoreData and getStoreProducts functions with APIs
Mar 30, 2025
9511266
feat(collections): add collection management feature with CRUD operat…
Apr 1, 2025
cbf88b2
feat(store): implement collection management with form, table, and Cl…
Apr 1, 2025
b286f76
feat: add getStoreCollections function and API integration
Apr 1, 2025
5c89464
Update issue templates
Stivenjs Apr 16, 2025
8322d36
Merge pull request #1 from Fasttify/Stivenjs-patch-1
Stivenjs Apr 16, 2025
92739a4
Create SECURITY.md
Stivenjs Apr 16, 2025
06bf08a
Bump next from 14.2.10 to 14.2.28
dependabot[bot] Apr 16, 2025
37fa1c1
Merge pull request #2 from Fasttify/dependabot/npm_and_yarn/next-14.2.28
Stivenjs Apr 16, 2025
29e6484
Bump cross-spawn from 7.0.3 to 7.0.6
dependabot[bot] Apr 16, 2025
15ee7eb
Bump nanoid from 3.3.7 to 3.3.11
dependabot[bot] Apr 16, 2025
d1e749c
Bump @babel/runtime from 7.25.9 to 7.27.0
dependabot[bot] Apr 16, 2025
2644adf
Bump esbuild and tsx
dependabot[bot] Apr 16, 2025
8d5cb9c
Bump @babel/helpers from 7.25.9 to 7.27.0
dependabot[bot] Apr 16, 2025
3d47749
Bump aws-cdk-lib from 2.176.0 to 2.189.1
dependabot[bot] Apr 16, 2025
ed01653
Merge pull request #9 from Fasttify/dependabot/npm_and_yarn/aws-cdk-l…
Stivenjs Apr 16, 2025
02ead0c
Merge pull request #8 from Fasttify/dependabot/npm_and_yarn/babel/hel…
Stivenjs Apr 16, 2025
ba2cd90
Merge pull request #7 from Fasttify/dependabot/npm_and_yarn/multi-f8e…
Stivenjs Apr 16, 2025
501dcd5
Bump axios from 1.7.9 to 1.8.2 in /amplify/functions/webHookPlan/src
dependabot[bot] Apr 16, 2025
f1c2df2
Merge pull request #6 from Fasttify/dependabot/npm_and_yarn/babel/run…
Stivenjs Apr 16, 2025
3610970
Merge pull request #10 from Fasttify/dependabot/npm_and_yarn/amplify/…
Stivenjs Apr 16, 2025
f98f94b
Merge pull request #5 from Fasttify/dependabot/npm_and_yarn/nanoid-3.…
Stivenjs Apr 16, 2025
2e139c3
Bump aws-cdk from 2.176.0 to 2.1010.0
dependabot[bot] Apr 16, 2025
8e14440
Merge pull request #3 from Fasttify/dependabot/npm_and_yarn/cross-spa…
Stivenjs Apr 16, 2025
eba6f6f
Merge pull request #4 from Fasttify/dependabot/npm_and_yarn/aws-cdk-2…
Stivenjs Apr 16, 2025
8db4908
Create codeql.yml
Stivenjs May 6, 2025
ae42322
fix merge conflicts
May 6, 2025
99df7b7
test: verify lint-staged setup
May 6, 2025
9215f54
chore: update dependencies and config files for better maintainability
May 6, 2025
9aa0a18
chore: add pnpm as package manager in package.json
May 6, 2025
3a311c3
chore: remove packageManager field and add .nvmrc file
May 6, 2025
3266396
ci: switch from pnpm to npm for lint-staged in pre-commit hook
May 6, 2025
e6d5899
chore: update pre-commit hook to use npx for lint-staged
May 6, 2025
6723504
ci(prettier): exclude .github/ directory from formatting changes
May 6, 2025
309e94e
refactor: migrate next config from JS to TS for type safety
May 6, 2025
c4250c8
refactor: update env imports and remove debug logs
May 6, 2025
77ca471
refactor(cancelPlan): remove redundant console.log statement
May 7, 2025
1727f66
refactor(handler): remove unnecessary console.log statements
May 7, 2025
f31e2bd
refactor(webHookPlan): remove unnecessary console.log statement
Stivenjs May 7, 2025
e5b7e71
feat(testing): add Jest setup, mocks, and unit tests for StoreSelector
Stivenjs May 7, 2025
b4bf143
test: add unit tests for StoreSelector, signUp, SignIn, and useResetP…
Stivenjs May 7, 2025
872ad27
test(SignIn): import amplify_outputs.json for testing
Stivenjs May 7, 2025
3db95d7
chore: add rootDir configuration to jest.config.js
Stivenjs May 7, 2025
f729d07
refactor(test): remove redundant amplify_outputs.json mocks and updat…
Stivenjs May 7, 2025
b110265
test: add mock for amplify_outputs.json and suppress console warnings
Stivenjs May 7, 2025
34ddcc6
refactor(auth): remove Amplify.configure calls and related mocks
Stivenjs May 7, 2025
58260e9
chore: remove unused package-lock.json from amplify/node_modules
Stivenjs May 7, 2025
239220c
chore: add amplify/node_modules/ to .gitignore
Stivenjs May 7, 2025
35ab629
chore: remove amplify/team-provider-info.json
Stivenjs May 7, 2025
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
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
10 changes: 10 additions & 0 deletions .github/ISSUE_TEMPLATE/custom.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''

---


20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
98 changes: 98 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
#
# ******** NOTE ********
# We have attempted to detect the languages in your repository. Please check
# the `language` matrix defined below to confirm you have the correct set of
# supported CodeQL languages.
#
name: "CodeQL Advanced"

on:
push:
branches: ["*"]
pull_request:
branches: ["*"]
schedule:
- cron: '27 8 * * 3'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
# Runner size impacts CodeQL analysis time. To learn more, please see:
# - https://gh.io/recommended-hardware-resources-for-running-codeql
# - https://gh.io/supported-runners-and-hardware-resources
# - https://gh.io/using-larger-runners (GitHub.com only)
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }}
permissions:
# required for all workflows
security-events: write

# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read
contents: read

strategy:
fail-fast: false
matrix:
include:
- language: javascript-typescript
build-mode: none
# CodeQL supports the following values keywords for 'language': 'actions', 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
# Use 'java-kotlin' to analyze code written in Java, Kotlin or both
# Use 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
# To learn more about changing the languages that are analyzed or customizing the build mode for your analysis,
# see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning.
# If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how
# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v4

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
# or others). This is typically only required for manual builds.
# - name: Setup runtime (example)
# uses: actions/setup-example@v1

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.

# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
# queries: security-extended,security-and-quality

# If the analyze step fails for one of the languages you are analyzing with
# "We were unable to automatically build your code", modify the matrix above
# to set the build mode to "manual" for that language. Then modify this step
# to build your code.
# ℹ️ Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
- if: matrix.build-mode == 'manual'
shell: bash
run: |
echo 'If you are using a "manual" build mode for one or more of the' \
'languages you are analyzing, replace this with the commands to build' \
'your code, for example:'
echo ' make bootstrap'
echo ' make release'
exit 1

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
4 changes: 2 additions & 2 deletions .github/workflows/prettier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add .
git diff --name-only | grep -v "^.github/"
if git diff --staged --quiet; then
echo "✅ No hay cambios de formateo. No es necesario hacer commit."
exit 0
fi
git commit -m "✨ Formateo automático con Prettier"
git push origin $GITHUB_REF_NAME
git push origin $GITHUB_REF_NAME
30 changes: 30 additions & 0 deletions .github/workflows/unit_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Ejecutar tests con Jest

on:
push:
branches:
- '*' # En cualquier push a cualquier rama
pull_request:
branches:
- main
- dev

jobs:
tests:
name: Ejecutar pruebas unitarias
runs-on: ubuntu-latest

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

- name: Configurar Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Instalar dependencias
run: npm ci

- name: Ejecutar pruebas
run: npm run test -- --coverage
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
/.pnp
.pnp.js
.yarn/install-state.gz

.pnpm-store
# testing
/coverage

Expand Down Expand Up @@ -48,6 +48,7 @@ amplify/mock-data
amplify/mock-api-resources
amplify/backend/amplify-meta.json
amplify/backend/.temp
amplify/node_modules/
build/
dist/
aws-exports.js
Expand Down
3 changes: 1 addition & 2 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@

npx lint-staged
npx lint-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
corepack disable
21 changes: 21 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Security Policy

## Supported Versions

Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 5.1.x | :white_check_mark: |
| 5.0.x | :x: |
| 4.0.x | :white_check_mark: |
| < 4.0 | :x: |

## Reporting a Vulnerability

Use this section to tell people how to report a vulnerability.

Tell them where to go, how often they can expect to get an update on a
reported vulnerability, what to expect if the vulnerability is accepted or
declined, etc.
2 changes: 1 addition & 1 deletion amplify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ frontend:
paths:
- .next/cache/**/*
- .npm/**/*
- node_modules/**/*
- node_modules/**/*
1 change: 0 additions & 1 deletion amplify/auth/post-authentication/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export const handler: PostAuthenticationTriggerHandler = async event => {
const isGoogleLogin = identities.some((identity: any) => identity.providerName === 'Google')

if (!isGoogleLogin) {
console.log('El usuario no inició sesión con Google. Terminando ejecución.')
return event
}

Expand Down
Loading