Skip to content

Divyanshu | Sidebar and All widget preview feature#524

Merged
Saurabh186 merged 9 commits intodevelopmentfrom
divyanshu-dev
Apr 4, 2026
Merged

Divyanshu | Sidebar and All widget preview feature#524
Saurabh186 merged 9 commits intodevelopmentfrom
divyanshu-dev

Conversation

@dvCodeWorld
Copy link
Copy Markdown
Collaborator

No description provided.

@windsurf-bot
Copy link
Copy Markdown

windsurf-bot bot commented Apr 3, 2026

PR review rate limit exceeded

- Add redirect_path to WidgetConfig type definition
- Transform redirect_path into addInfo.redirect_path in API payload
- Set default redirect_path to '/login' when not in preview mode
- Update documentation with redirect_path usage and behavior
- Remove unused otherData input from UserProfileComponent
…ove UX

- Rename WidgetShowcaseDialogComponent to WidgetPreviewDialogComponent
- Rename openShowcase() to openPreview() in FeaturePreviewComponent
- Replace inline auth token input with locked state indicators
- Add system theme detection with computed isDark signal
- Sync active tab and theme with URL query parameters
- Auto-navigate to User Profile after successful authorization
- Replace custom sidebar with MatListModule for
…e class bindings

- Replace isDark/isDarkTheme getter with computed(() => themeService.isDark$()) in
  app, login, register, send-otp-center, organization-details, user-management,
  user-profile, and widget components
- Fix Shadow DOM dark mode: replace dark: utility classes with signal-driven
  [class.*]="isDark() && ..." bindings in user-profile and user-management templates
- Fix widget.component.ts: skip theme override when `this.theme` is falsy (external input)
- Confirm dialog portal: fix [class.dark]="isDark" -> isDark()

feat(widget-preview): responsive code preview with sidebar + copy snippet

- Add MatSidenavModule with mobile drawer (BreakpointObserver / isMobile signal)
- Add viewMode signal toggling between 'preview' and 'code' views
- Add widget-code-snippet.ts helper (buildCodeSnippet)
- Integrate MarkdownModule + CopyButtonComponent for rendered code display
- Add activeTabLabel, demoDiv, proxyAuthScript, codeSnippet computed signals
- Fix goBack() to navigate to /app/features when no browser history

fix(copy-button): add inline-flex centering to default btnClass

docs(widget-integration-guide): modernize code examples
- Use arrow functions, script onload attribute pattern, cleaner config objects
- Prettier 3.x supports Angular @if/@for control flow syntax natively
- Reverts **/*.component.html from .prettierignore (no longer needed)
- Ran prettier --write on all *.component.html files across the monorepo
@dvCodeWorld dvCodeWorld changed the title Divyanshu | Sidebar changes Divyanshu | Sidebar and All widget preview feature Apr 4, 2026
@Saurabh186 Saurabh186 merged commit 18ca89e into development Apr 4, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants