Skip to content

scaffold crates/api-integration similar to crates/api-subscription with nango dep#3703

Merged
yujonglee merged 1 commit intomainfrom
devin/1770467549-scaffold-api-integration
Feb 7, 2026
Merged

scaffold crates/api-integration similar to crates/api-subscription with nango dep#3703
yujonglee merged 1 commit intomainfrom
devin/1770467549-scaffold-api-integration

Conversation

@devin-ai-integration
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Feb 7, 2026

scaffold crates/api-integration with nango dependency

Summary

Scaffolds a new crates/api-integration crate following the same structure as crates/api-subscription, but using hypr-nango (Nango client) as the core dependency instead of Stripe.

Modules added:

  • config.rsIntegrationConfig with nango_api_base, nango_api_key, optional auth
  • env.rsEnv struct for deserializing environment config
  • error.rsIntegrationError enum with From impls for nango/auth errors, IntoResponse
  • state.rsAppState holding config + NangoClient
  • routes/connect.rsPOST /connect-session endpoint (creates a Nango connect session)
  • routes/mod.rs — router + OpenAPI doc generation

Registered as hypr-api-integration in workspace Cargo.toml.

Review & Testing Checklist for Human

  • Verify the scaffolded module structure and public API match your expectations (e.g. does AppState::new returning Result instead of Self work for your wiring code?)
  • allowed_integrations: vec![] is hardcoded empty in connect.rs:L53 — confirm whether this should be parameterized or populated from config
  • reqwest, tokio, serde_json are declared as deps but unused in current source — decide if you want to keep them for future use or trim

Notes

Link to Devin run · Requested by @yujonglee


Open with Devin

…th nango dep

Co-Authored-By: yujonglee <yujonglee.dev@gmail.com>
@netlify
Copy link

netlify bot commented Feb 7, 2026

Deploy Preview for hyprnote-storybook canceled.

Name Link
🔨 Latest commit 3deb617
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/69873411f74d0500082ac34c

@netlify
Copy link

netlify bot commented Feb 7, 2026

Deploy Preview for hyprnote canceled.

Name Link
🔨 Latest commit 3deb617
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/69873411ef72e00008b812b6

@devin-ai-integration
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR that start with 'DevinAI' or '@devin'.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link
Contributor Author

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional findings.

Open in Devin Review

@yujonglee yujonglee merged commit 7511418 into main Feb 7, 2026
18 checks passed
@yujonglee yujonglee deleted the devin/1770467549-scaffold-api-integration branch February 7, 2026 12:51
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.

1 participant