Polish empty state#341
Merged
Merged
Conversation
Co-authored-by: gloskull <189399494+gloskull@users.noreply.github.com>
…59842 Polish empty state for /apis/my-apis
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.
This PR implements a polished empty state for the "My APIs" page (/apis/my-apis).
Key changes:
EmptyState Component Enhancement: Added an optional action prop to the EmptyState component in src/components/EmptyState.tsx. This allows displaying a primary CTA button within empty states across the application.
New "My APIs" Page: Created src/pages/MyApis.tsx which currently displays a helpful empty state when a developer has no published APIs. It includes a CTA button that navigates to the API publishing flow.
Routing and Navigation:
Added /apis/my-apis to the application routes.
Added a "My APIs" link to the primary header and footer navigation.
Added a "Go to My APIs" command to the global Command Palette.
Testing: Added src/pages/MyApis.test.tsx to verify that the empty state and CTA are rendered correctly and that navigation works as intended.
Note: While pre-existing syntax errors were discovered in the repository during development, this PR focuses strictly on the requested feature to maintain a clean and reviewable diff.
Closes #281