Introduce 'Document Ready' state in project open process#2806
Conversation
dbarashev
commented
Jun 22, 2026
…Refactored code that waits for the document. Extracted code that installs Colloboque client
…d coroutines with the state machine. - Restored import startup document functionality.
- ProjectOpenActivityFactory is now a singleton
…ven without a call to ProjectUIFacade
…-in-project-open-sm
…sing the fetch result - changed the icon in the fork dialogs and extracted shared code
The reason was that removing decorators caused the Swing chart component to detach from its peer. Essentially in this case it becomes detached from the component hierarchy, considered as "not showing" and thus receives no paint/mouse events.
…ient.kt * Added failure state handler to the Cloud Document page in Project Properties (this may trigger when fetching a version of a cloud document)
…-in-project-open-sm
|
Claude finished @dbarashev's task in 2m 56s —— View job PR Review: Introduce 'Document Ready' state in project open process
This is a solid refactoring that moves the project-open flow into an explicit state machine and removes the fragile channel-plumbing. The new 🔴 Correctness1. fun activate(exitValue: T) { value = exitValue }The new immediate-call path lives only in 2. 3. init {
ProjectOpenActivityFactory.addBuilder { sm ->
sm.stateCompleted.await { it.document.asOnlineDocument()?.let { webSocket.start() } }
}
}
4. Fork-dialog CANCEL marks the activity 🟠 Functional regression worth confirming5. Decorator "fix" removes the offline-mode warning badge — 🟡 Cleanup (large volume of dead/commented code)These should be removed before merge — they make the diff hard to read and will rot:
🟢 Minor / nits
Tests pass (349 ✅) and the architecture direction is good. Items #1–#4 are the ones I'd want resolved or explicitly confirmed before merge; the rest is cleanup. |
…used coroutines. Enhanced barrier behavior with activation restrictions and immediate exit calls.
|
@claude review |
|
Claude finished @dbarashev's task in 6s —— View job I'll analyze this and get back to you. |
|
Claude finished @dbarashev's task in 2m 26s —— View job Re-review: Introduce 'Document Ready' state in project open process
Thanks for the iterations — several of the earlier blockers are now resolved. Here's where things stand against my previous review. ✅ Resolved since last review
🔴 Still open — confirmedA. Missing i18n keys (was "please verify", now confirmed). The error keys built by the state machine do not exist in any B. #2 C. #5 Offline-mode warning badge still disabled. Unchanged — 🟡 Cleanup still pendingThese were flagged last time and are still in the tree:
🟢 Minor / nits
Net: the architecture is solid and #1/#3/#4 are properly fixed. Before merge I'd want (A) the i18n keys added (otherwise users see raw keys on any open failure), plus a decision on (B) the global factory lifecycle and (C) the offline badge. The rest is cleanup. |