-
Notifications
You must be signed in to change notification settings - Fork 2
IS-11008 HAAPI FE Lib documentation #274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
aleixsuau
wants to merge
7
commits into
dev
Choose a base branch
from
feature/dev/IS-11008-haapi-react-sdk-docs
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
eb8a08e
IS-11008 Document the HAAPI React SDK exports (TSDoc).
aleixsuau b9c4267
IS-11008 Add the SDK docs tree: section READMEs, runnable examples, h…
aleixsuau ba566e0
IS-11008 Docs tooling and config; point repo pages at the Curity docs…
aleixsuau f07e8b0
IS-11008 Use a unique password filler in auto-submitted examples (avo…
aleixsuau 2446c7a
IS-11008 Smoke-test the docs examples in CI.
aleixsuau 33a2d4c
IS-11008 Reconcile with IS-6007 merge; Copilot review fixes.
aleixsuau 74cece5
IS-11008 Use descriptive link texts in the SDK README.
aleixsuau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -324,6 +324,14 @@ | |
| width: fit-content; | ||
| } | ||
|
|
||
| .documentation { | ||
| margin-top: 1.5rem; | ||
| width: 100%; | ||
| text-align: center; | ||
| border-top: 1px solid #eee; | ||
| padding-top: 1rem; | ||
| } | ||
|
|
||
| .status { | ||
| margin-top: auto; | ||
| padding-top: 1rem; | ||
|
|
@@ -525,12 +533,23 @@ <h2>HAAPI React App</h2> | |
| <span>Open previewer</span> | ||
| </a> | ||
| <small class="card-url">http://localhost:5174/</small> | ||
| <div class="documentation"> | ||
| <a | ||
| href="https://curity.io/docs/identity-server/developer-guide/haapi-sdks/web-sdk" | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please use trailing slash on this link |
||
| target="_blank" | ||
| rel="noopener noreferrer" | ||
| class="button button-primary-outline button-medium w100 mt2" | ||
|
Copilot marked this conversation as resolved.
|
||
| > | ||
| <span>Read HAAPI React SDK documentation</span> | ||
| </a> | ||
| </div> | ||
| <div class="commands"> | ||
| <h3>Useful Commands</h3> | ||
| <code>npm install</code> | ||
| <code>npm run start:haapi-react-app</code> | ||
| <code>npm run build:haapi-react-app</code> | ||
| </div> | ||
|
|
||
| <div | ||
| class="status" | ||
| data-tooltip="Note: It may take a few seconds for the preview server to be ready" | ||
|
|
||
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hard-coding these links is always a bit tricky for maintenance, but I see how it's useful (and they probabyl need to be stable for SEO purposes et al, anyway). So, I suggest adding docs lnks to the other two cards as well, pointing to their relevant sections in product docs.
Also, I think the button is way too big. Maybe a simple link is enough? And saying "Read documentation" is probably enough as well - no need to duplicate part of the card title.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, this can be just "Read Docs ". The button can also come after the other button so it doesn't shift layout in the card so much, for example: