Commit 9a2b993
committed
Fix Try It Out response display and improve dark mode support
Portal Generator Fixes:
- Fix Try It Out response not showing in default sidebar layout
- Added min-height: 200px to .try-response-content and .try-response-body
- Previously had min-height: 0 causing ACE editor containers to collapse
- Added base display rules to .try-response for proper flex layout
- Added .try-response.empty state CSS for default sidebar layout
- Add dark mode support for ACE editors
- Dynamically switch between textmate (light) and monokai (dark) themes
- Added getAceTheme(), updateAceEditorBackground(), updateAllAceEditors()
- Integrated with dark mode toggle to update all editors on theme change
- Removed hardcoded background colors to let themes handle styling
- Fix response display logic in sendRequest
- Always show response with empty state before request
- Override template's inline display:none
- Properly remove empty class and show response after data loads
- Add comprehensive debug logging for troubleshooting
- Log response div state, dimensions, and computed styles
- Track ACE editor creation and display flow
- Added console logs throughout sendRequest lifecycle
API Spec Improvements (agent-scanner-configuration-service):
- Refactor path parameters to use component references
- All path parameters now reference components/parameters
- Eliminates duplicate parameter definitions across endpoints
- Uses x-origin annotated parameters for better documentation
- Remove redundant Authorization header parameters
- Security scheme handles authentication globally
- Removed 15+ duplicate Authorization parameter definitions
- Cleaner spec following OpenAPI best practices
UI Polish:
- Added border-radius to select elements for consistency
- Improved x-origin source selector styling
- Added overflow handling for parameter descriptions1 parent a4da8f8 commit 9a2b993
3 files changed
Lines changed: 202 additions & 279 deletions
File tree
- apis/agent-scanner-configuration-service
- scripts/portal_generator/assets
0 commit comments