Commit Graph

142 Commits

Author SHA1 Message Date
IshaVenikar
14cdaa3187 Check for the last DNS deployment record when deleting
Some checks failed
Lint / lint (20.x) (pull_request) Failing after 20s
2024-10-15 18:20:11 +05:30
IshaVenikar
7b51983f8f Refactor out common code for creating deployment 2024-10-15 18:20:11 +05:30
IshaVenikar
9fb72ba0bc Update Import project flow to configure deployment 2024-10-15 18:20:11 +05:30
IshaVenikar
e8f1f34245 Update project base domains after deployment is deleted 2024-10-15 18:20:11 +05:30
IshaVenikar
de75046be4 Update method for deleting deployment 2024-10-15 18:20:11 +05:30
IshaVenikar
3eaab0dc5e Update project entity 2024-10-15 18:20:11 +05:30
IshaVenikar
55127bbf97 Check auction status only if deployments don't exist 2024-10-15 18:20:11 +05:30
IshaVenikar
430d9dcca9 Display bids in auction details 2024-10-15 18:20:11 +05:30
IshaVenikar
b16e0a951c Update auction card UI 2024-10-15 18:20:11 +05:30
IshaVenikar
dd2fcff6ee Display auction details in overview page 2024-10-15 18:20:11 +05:30
IshaVenikar
0341e41c63 Update deployments only if valid request Id exists 2024-10-15 18:20:11 +05:30
IshaVenikar
38acf81a9d Display auction details in Overview tab 2024-10-15 18:20:11 +05:30
IshaVenikar
8163ea5dc0 Pass auction Id in DNS deployment 2024-10-15 18:20:11 +05:30
IshaVenikar
a7e3936d7f Pass auction id in deployment requests 2024-10-15 18:20:11 +05:30
IshaVenikar
f445d0b956 Store deployer lrn for each deployment 2024-10-15 18:20:11 +05:30
IshaVenikar
1374a28fe6 Check request Id for updating deployment data 2024-10-15 18:20:11 +05:30
IshaVenikar
8ae1aec468 Navigate to success page after auction creation 2024-10-15 18:20:11 +05:30
IshaVenikar
34cf551cba Fix deployer LRN field in project 2024-10-15 18:20:11 +05:30
IshaVenikar
cedad71c44 Check for auction if deployment request id is not present 2024-10-15 18:20:11 +05:30
IshaVenikar
2a011a99cd Pass auction data when adding project 2024-10-15 18:20:11 +05:30
IshaVenikar
9ca43c4b00 Create deployments after auction creation 2024-10-15 18:20:11 +05:30
IshaVenikar
f1e758f25d Check for auction status in a loop 2024-10-15 18:20:11 +05:30
IshaVenikar
5bba3c7f5c Add method deployment requests after auction completion 2024-10-15 18:20:11 +05:30
IshaVenikar
5bde36228d Set gas price in Registry instantiation 2024-10-15 18:20:11 +05:30
IshaVenikar
ede9cd44b4 Implement UI to add configure deployment step 2024-10-15 18:20:11 +05:30
IshaVenikar
f49c2af8e4 Update methods in gql client 2024-10-15 18:20:11 +05:30
IshaVenikar
c7bc4295ab Update schema and resolver functions 2024-10-15 18:20:11 +05:30
IshaVenikar
e5d9278b00 Take auction params from config 2024-10-15 18:20:11 +05:30
IshaVenikar
da3ecde4a1 Add back-end function to create deployment with auction 2024-10-15 18:20:11 +05:30
IshaVenikar
0466632426 Update registry-sdk version
Some checks failed
Lint / lint (20.x) (pull_request) Failing after 20s
2024-10-07 18:23:53 +05:30
IshaVenikar
24f64466d3 Use util method from registry-sdk 2024-10-03 16:50:47 +05:30
IshaVenikar
02faaf74d1 Update yarn lock file 2024-10-03 16:26:53 +05:30
IshaVenikar
984c679988 Use method to parse gas and fees from registry-sdk 2024-10-03 16:14:08 +05:30
IshaVenikar
4813bdaa4d Changes to upgrade registry-sdk 2024-10-03 11:34:08 +05:30
Vivian Phung
aebb20b987
update README.md debugging deployer 2024-06-25 01:08:38 -04:00
Vivian Phung
94f46f9621
v.0.0.9 staging (#229) 2024-06-24 19:52:51 -04:00
Vivian Phung
e751addcce
Update local.toml.example in packages/backend (#228)
### TL;DR

Added new keys for Google and Turnkey integration in `local.toml.example`

### What changed?

- Updated server session secret to empty string
- Added placeholders for google clientId and clientSecret
- Added placeholders for Turnkey API integration (apiBaseUrl, apiPrivateKey, apiPublicKey, defaultOrganizationId)

### How to test?

1. Pull the latest changes
2. Update `local.toml.example` file with actual values.
3. Run the application locally and ensure all services are working correctly.

### Why make this change?

To integrate new services (Google and Turnkey) into the project setup.

---
2024-06-24 19:42:33 -04:00
Vivian Phung
a684743bd6
feat(template projects): generate git repo on backend (#218)
### TL;DR

- Still cretaes app if user migrates from page

The PR introduces a new `AddProjectFromTemplate` mutation to facilitate project creation using a repository template. This change centralizes the template project creation logic within the backend, improving code maintainability by removing redundant client-side code.

### What changed?
- Added `AddProjectFromTemplate` input type in `schema.gql` and corresponding TypeScript interfaces.
- Implemented `addProjectFromTemplate` resolver with error handling and Octokit integration for repository creation.
- Updated `service.ts` to include the new `addProjectFromTemplate` method.
- Created new GraphQL `Mutation` for `addProjectFromTemplate` in the GraphQL schema.
- Adjusted the client-side GQLClient to support the new mutation.
- Modified frontend to utilize the new backend mutation for project creation from a template.

### How to test?
1. Ensure your backend server is running.
2. Use a GraphQL client like Postman to call the `addProjectFromTemplate` mutation with appropriate input.
3. Verify that the new project is created using the specified template, and appropriate error messages are returned for failures.
4. Check the frontend flow for creating a project from a template to ensure it is working correctly.

### Why make this change?
This change enhances code maintainability by centralizing template project creation logic within the backend, thereby reducing redundancy and potential inconsistencies in client-side implementations.

---
2024-06-24 18:38:01 -04:00
Vivian Phung
b12c95b2ff
fix(readme) 2024-06-24 15:00:45 -04:00
Vivian Phung
a4d9211ffe
Refactor(README.md) (#217)
This pull request refactors the main `README.md` by removing detailed backend and frontend setup instructions and adding separate `README.md` files for the backend and frontend with their specific setup and deployment instructions. This makes the main `README.md` cleaner and directs users to specific READMEs for backend and frontend setups.

---
2024-06-22 18:07:47 -04:00
Vivian Phung
ce1833cb51
bump: version (#213)
This pull request updates the backend version endpoint to return version '0.0.8' instead of '0.0.7'.

---
2024-06-21 21:16:34 -04:00
Vivian Phung
f2e59c11fd
Refactor: VerifyCodeInput Component and Modify Access Code Validation (#212)
### TL;DR

Implemented the new `VerifyCodeInput` component and updated the access code validation logic.

### What changed?

1. Added a new reusable `VerifyCodeInput` component for verifying codes in a user-friendly way. This component handles paste events, input changes, and keyboard navigation.
2. Updated the backend route `/accesscode` to accept an arbitrary code for now. 
3. Incorporated the `VerifyCodeInput` component into the `AccessCode` page, replacing the generic `Input` component.
4. Updated the access code validation logic to check for a trimmed length of 5 characters instead of 6.
5. Added a slight pause for UX purposes when validating the access code on the frontend.

### How to test?

1. Go to the Access Code page.
2. Try entering an access code with various inputs (keyboard, paste, etc.) to see if it works seamlessly.
3. Verify that only a 5-digit code is considered valid.
4. Check the backend logs to ensure the validation endpoint is working as expected.

### Why make this change?

This change improves the user experience by providing a custom input component for access code verification and ensures that the access code validation meets the new requirements.

---
2024-06-21 21:13:32 -04:00
Vivian Phung
b261e7e436
Feat: Access Code Authentication Flow (#211)
## What changed?

This Pull Request introduces an access code validation feature to the authentication process. Changes encompass backend route for access code validation, new frontend components for handling access code input, and integration of the access code verification in the signup flow.

### Backend:
- Added POST `/accesscode` route in `auth.ts` for validating access codes.

### Frontend:
- Created `AccessCode` component for access code input and validation.
- Added `AccessSignUp` component that integrates access code verification before signup.
- Updated `SignUp` component to check for valid access code on mount.
- Modified `SnowballAuth` to use new `AccessSignUp` instead of `SignUp`.
- Added `verifyAccessCode` utility function for code verification API call.

## How to test?
1. Run the backend and frontend projects.
2. Navigate to the signup page. You should be prompted to enter an access code.
3. Enter the code `444444` and proceed. Any other code should display an error message.
4. Verify that valid access code routes to the signup component.

## Why make this change?

This change improves authentication by adding an extra layer of security through access code verification.
2024-06-21 21:10:31 -04:00
Gilbert
f77323364c Bump 2024-06-20 04:06:16 -05:00
Gilbert
c6a78f2116 Just send back the message, this is a demo after all 2024-06-20 04:05:48 -05:00
Gilbert
2ada11f311 Support async express handlers 2024-06-19 22:59:20 -05:00
Gilbert
6e32d0678a Add generic error handling 2024-06-19 22:31:07 -05:00
Gilbert
198478f5fa Add logs for debugging 2024-06-19 14:22:55 -05:00
Gilbert
e2bf5d052c Bump server version 2024-06-18 17:46:47 -05:00
Vivian Phung
dc7b251988
add version backend (temp) (#201)
* add version backend (temp)

* staging router endpoint

* remove frontend
2024-06-05 17:38:19 +01:00