Commit Graph

142 Commits

Author SHA1 Message Date
IshaVenikar
ea268a4149 Create deployments only if winning deployers are present 2024-10-17 09:28:18 +05:30
IshaVenikar
9f6aa43586 Update code to handle re-deployments on pushing 2024-10-16 17:19:53 +05:30
IshaVenikar
a9f50a02f0 Set isCurrent to false only for deployments from same deployer
All checks were successful
Lint / lint (20.x) (pull_request) Successful in 4m9s
2024-10-16 15:37:09 +05:30
IshaVenikar
e10c8f4818 Add wait before updating deployer LRNs after auction completion 2024-10-16 15:37:09 +05:30
IshaVenikar
e3931b4bf8 Check for the last DNS deployment record when deleting 2024-10-16 15:37:09 +05:30
IshaVenikar
443a3f2b6e Refactor out common code for creating deployment 2024-10-16 15:37:09 +05:30
IshaVenikar
9d8d2199e2 Update Import project flow to configure deployment 2024-10-16 15:37:09 +05:30
IshaVenikar
f374fa69ff Update project base domains after deployment is deleted 2024-10-16 15:37:09 +05:30
IshaVenikar
55e238d0b9 Update method for deleting deployment 2024-10-16 15:37:09 +05:30
IshaVenikar
bf75dc8acc Update project entity 2024-10-16 15:37:09 +05:30
IshaVenikar
e45cc45f38 Check auction status only if deployments don't exist 2024-10-16 15:37:09 +05:30
IshaVenikar
ed2badebb6 Display bids in auction details 2024-10-16 15:37:09 +05:30
IshaVenikar
b63837d432 Update auction card UI 2024-10-16 15:37:09 +05:30
IshaVenikar
b3ac6e1367 Display auction details in overview page 2024-10-16 15:37:09 +05:30
IshaVenikar
508b4c7367 Update deployments only if valid request Id exists 2024-10-16 15:37:09 +05:30
IshaVenikar
614405a2f4 Display auction details in Overview tab 2024-10-16 15:37:09 +05:30
IshaVenikar
fb873d9bc1 Pass auction Id in DNS deployment 2024-10-16 15:37:09 +05:30
IshaVenikar
f67dbd0ff3 Pass auction id in deployment requests 2024-10-16 15:37:09 +05:30
IshaVenikar
22fb9323d7 Store deployer lrn for each deployment 2024-10-16 15:37:09 +05:30
IshaVenikar
5fe04dd691 Check request Id for updating deployment data 2024-10-16 15:37:09 +05:30
IshaVenikar
012dd63a45 Navigate to success page after auction creation 2024-10-16 15:37:09 +05:30
IshaVenikar
82dab8ce21 Fix deployer LRN field in project 2024-10-16 15:37:09 +05:30
IshaVenikar
853a1024b3 Check for auction if deployment request id is not present 2024-10-16 15:37:09 +05:30
IshaVenikar
dfeb281586 Pass auction data when adding project 2024-10-16 15:37:09 +05:30
IshaVenikar
b58d9e6c21 Create deployments after auction creation 2024-10-16 15:37:09 +05:30
IshaVenikar
42d35cae84 Check for auction status in a loop 2024-10-16 15:37:09 +05:30
IshaVenikar
8c824f065b Add method deployment requests after auction completion 2024-10-16 15:37:09 +05:30
IshaVenikar
2a3c5de132 Set gas price in Registry instantiation 2024-10-16 15:37:09 +05:30
IshaVenikar
13730655a4 Implement UI to add configure deployment step 2024-10-16 15:37:09 +05:30
IshaVenikar
ee9bf2de1c Update methods in gql client 2024-10-16 15:37:09 +05:30
IshaVenikar
9931bc74d1 Update schema and resolver functions 2024-10-16 15:37:09 +05:30
IshaVenikar
0e0e5e888f Take auction params from config 2024-10-16 15:37:09 +05:30
IshaVenikar
d77e41f796 Add back-end function to create deployment with auction 2024-10-16 15:37:09 +05:30
42bdd21089 Upgrade from laconic-sdk to registry-sdk (#1)
All checks were successful
Lint / lint (20.x) (push) Successful in 4m12s
Part of [Service provider auctions for web deployments](https://www.notion.so/Service-provider-auctions-for-web-deployments-104a6b22d47280dbad51d28aa3a91d75)

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Co-authored-by: Adw8 <adwaitgharpure@gmail.com>
Reviewed-on: #1
2024-10-16 08:43:51 +00:00
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