Skip to content

Show a skeleton while the editor loads, and an error when it can't - #263

Merged
PhilReinking merged 2 commits into
mainfrom
fix/bits-281-editor-loading
Oct 13, 2026
Merged

PhilReinking merged 2 commits into
mainfrom
fix/bits-281-editor-loading

Conversation

@PhilReinking

Copy link
Copy Markdown
Contributor

While the questions load, the editor now shows skeleton rows instead of "Welcome to the Editor … It might be empty now". When loading fails, it says "Couldn't load the questions." with Try again, instead of a spinner that turns forever.

Fixes BITS-281

  • The editor page now loads the questions. Skeleton and error box are one small component, so the document editor can reuse it.
  • The welcome text shows only for a loaded form without questions. After deleting the open question, the workbench now stays empty.

Tested: Vitest, lint, vue-tsc, build; 3 of 4 new tests fail on main. By hand at 1440 and 390: slow load, failed load with Try again, empty form.

Not tested: screen reader output (roles and text checked only).

Known gap: after Try again, keyboard focus goes back to the page start, as the button leaves with the error box.

🤖 Generated with Claude Code

PhilReinking and others added 2 commits October 13, 2026 00:46
…in when it can't

The editor page now loads the questions itself and passes the state to
the question list. The empty-form text shows only for a loaded form
without questions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@PhilReinking PhilReinking left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK at 48802a1, CI green.

3 of the 4 new tests fail on main for the right reason. Beyond that: a ?block= link still opens that question on the first load and after Try again. A failed retry shows the error again. The alert stays the same element when the rest of the editor updates, so it is announced once. Lint, types and both builds pass locally.

@PhilReinking
PhilReinking merged commit d9eb3b8 into main Oct 13, 2026
6 checks passed
@PhilReinking
PhilReinking deleted the fix/bits-281-editor-loading branch October 13, 2026 12:47
ferbinu pushed a commit to ferbinu/input that referenced this pull request Oct 15, 2026
Brings in the duplicate endpoint (deck9#262) and the editor loading states (deck9#263).
The page keeps deck9#263's loading; the document shows its skeleton and error box
instead of loading on its own. The old list (Storyboard.vue) stays removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant