Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 4 additions & 12 deletions docs/next-steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,28 +2,20 @@

Focused follow-up work for `@knighted/develop`.

1. **Style isolation behavior docs**
- Document ShadowRoot on/off behavior and how style isolation changes in light DOM mode.
- Clarify that light DOM preview can inherit shell styles and include recommendations for scoping.

2. **Preview UX polish**
- Keep tooltip affordances for mode-specific behavior.
- Continue tightening panel control alignment and spacing without introducing extra markup.

3. **In-browser component/style linting**
1. **In-browser component/style linting**
- Explore running lint checks for component and style sources directly in the playground.
- Prefer CDN-delivered tooling where possible and preserve graceful fallback behavior when unavailable.

4. **In-browser component type checking**
2. **In-browser component type checking**
- Add editor-linked diagnostics navigation so each issue can jump to the exact line/column in the component source.
- Surface line/column context directly in the diagnostics UI (not just message text) to speed up triage.
- Continue improving typecheck performance for first-run and large sources while keeping the preview loop non-blocking.

5. **In-browser component testing**
3. **In-browser component testing**
- Explore authoring and running component-focused tests in-browser (for example, a Vitest-compatible flow) using CDN-delivered tooling.
- Define a lightweight test UX that supports writing tests, running them on demand, and displaying results in-app.

6. **CDN failure recovery UX**
4. **CDN failure recovery UX**
- Detect transient CDN/module loading failures and surface a clear recovery action in-app.
- Add a user-triggered retry path (for example, Reload page / Force reload) when runtime bootstrap imports fail.
- Consider an optional automatic one-time retry before showing recovery controls, while avoiding infinite reload loops.
7 changes: 6 additions & 1 deletion src/styles/layout-shell.css
Original file line number Diff line number Diff line change
Expand Up @@ -298,10 +298,15 @@
overflow: hidden;
}

.app-grid:not(.app-grid--preview-right):not(.app-grid--preview-left) .preview-panel {
min-height: 0;
}

.preview-panel .panel-content {
min-height: 0;
height: 100%;
max-height: 100%;
overflow: hidden;
overflow: auto;
}

.preview-panel.panel--collapsed-horizontal,
Expand Down
10 changes: 6 additions & 4 deletions src/styles/panels-editor.css
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,9 @@ textarea:focus {
}

.preview-panel.panel--collapsed-horizontal .panel-collapse-toggle {
width: 100%;
min-width: 0;
width: 32px;
min-width: 32px;
height: 32px;
justify-content: center;
}

Expand Down Expand Up @@ -377,8 +378,9 @@ textarea:focus {

.component-panel.panel--collapsed-horizontal .panel-collapse-toggle,
.styles-panel.panel--collapsed-horizontal .panel-collapse-toggle {
width: 100%;
min-width: 0;
width: 32px;
min-width: 32px;
height: 32px;
}

@media (max-width: 900px) {
Expand Down
1 change: 1 addition & 0 deletions src/styles/preview-controls.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
--preview-host-z-index: 1;
display: var(--preview-host-display);
flex: var(--preview-host-flex);
height: 100%;
min-height: var(--preview-host-min-height);
max-height: 100%;
padding: var(--preview-host-padding);
Expand Down
Loading