feat: add subscription details page and improvements#690
Merged
Conversation
Adds a versatile JSON viewer with auto-detection for optimal display mode: - Static mode: Syntax highlighting for simple JSON structures - Interactive mode: Expandable tree view for complex nested JSON - Auto-detection: Analyzes complexity to choose best display mode - Features: Copy to clipboard, raw/formatted toggle, dark mode support - Design system compliant styling with proper light/dark themes
Implements comprehensive subscription details page with: - Main details page component with metadata fetching and error handling - Metadata display component showing subscription properties - Tabbed interface for filters and rules views - Subscription state badge with semantic color mapping - Integration with Next.js App Router for dynamic routes - Storybook stories for component development
Enhances subscription list functionality: - Add account filtering support with optional accountFilter prop - Implement auto-search functionality with autoSearch prop - Split into client/server components for better performance - Update API route to accept account parameter (defaults to session user) - Improve styling with proper container layout and height management - Better error handling and loading states for account information
Adds active account context to command palette navigation: - Fetch site header to get active account in command palette - Pass account to navigation commands for account-scoped searches - Add buildSubscriptionSearchUrl utility for subscription search URLs - Enable account-based subscription filtering from command palette - Cache site header data with 5-minute stale time for performance
Adds comprehensive E2E tests for subscription details page: - Test metadata display and badge rendering - Verify tab navigation and content switching - Test error handling for invalid subscriptions - Validate copyable heading functionality - Check responsive layout and styling
Refactors tip components with improved code structure: - Reformat TipCard variants for better readability - Update TipsPanel with consistent styling - Format tip content strings for better line length - Update tips stories with improved examples - Maintain all existing functionality while improving code quality
Updates rule creation and list components: - Improve CreateRuleStageOptions layout and styling - Update CreateRuleStageStorageTable for better consistency - Refine CreateRuleStageSummary display - Polish ListRule component styling - Maintain all functionality while improving visual consistency
Enhances DID details components: - Update DetailsDIDSimpleTable styling and layout - Improve DetailsDIDDatasetReplicas view consistency - Polish component structure for better maintainability
Applies consistent code formatting (Prettier): - Format auth configuration and OIDC provider files - Update x509 login session controller formatting - Format middleware and header client - Update TimeInput stories formatting - Format auth session test - No functional changes, only formatting improvements
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.
Summary
Fixes #689