Draft
Add Horizon UI Pro + Next.js TypeScript sample for RULE native currency ecosystem#40
Conversation
Co-authored-by: Snapp949 <173113150+Snapp949@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Next.js sample app integrating Horizon UI Pro
Add Horizon UI Pro + Next.js TypeScript sample for RULE native currency ecosystem
Nov 28, 2025
|
Hi @Copilot. Thank you for your interest in helping to improve the Azure SDK experience and for your contribution. We've noticed that there hasn't been recent engagement on this pull request. If this is still an active work stream, please let us know by pushing some changes or leaving a comment. Otherwise, we'll close this out in 7 days. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Packages impacted by this PR
None (new sample only)
Issues associated with this PR
N/A
Describe the problem that is addressed by this PR
Adds a new sample app under
samples/horizon-ui-pro-nextjs-tsdemonstrating Horizon UI Pro (private package) integration with a minimal RULE native currency ecosystem API.Sample includes:
/api/rules) with GET/POST for balance, products, and market operations.npmrc.template+ DevContainer config for secure NPM_TOKEN handling (no secrets committed)Files added:
package.json- Next.js deps +@horizon/ui-pro: PRIVATE_PACKAGE_PLACEHOLDERpages/index.tsx- Main dashboard with RULE ecosystem UIpages/api/rules.ts- Demo API with typed request/responsecomponents/Layout.tsx,ProductCard.tsx- UI components with commented Horizon UI Pro imports.devcontainer/devcontainer.json- Forwards port 3000, runs npm install, usesNPM_TOKENenv varREADME.md- Setup instructions for local/Codespaces with token configurationWhat are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen?
Standard Next.js pages router with API routes for simplicity. In-memory store chosen over database to keep sample self-contained.
Are there test cases added in this PR? (If not, why?)
No. This is a standalone sample app, not a library. The API is demo-only with non-persistent in-memory storage.
Provide a list of related PRs (if any)
None
Command used to generate this PR:**(Applicable only to SDK release request PRs)
N/A
Checklists
Original prompt
This pull request was created as a result of the following prompt from Copilot chat.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.