LearnNewsExamplesServices
Frontmatter
id8108
titleRefactor Legit App to use a dedicated Service
stateClosed
labels
enhancementairefactoring
assigneestobiu
createdAtDec 13, 2025, 4:31 PM
updatedAtDec 13, 2025, 5:00 PM
githubUrlhttps://github.com/neomjs/neo/issues/8108
authortobiu
commentsCount0
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtDec 13, 2025, 5:00 PM

Refactor Legit App to use a dedicated Service

Closed v11.17.0 enhancementairefactoring
tobiu
tobiu commented on Dec 13, 2025, 4:31 PM

To improve architecture and error handling, we will introduce Legit.service.Legit as a singleton.

New File: apps/legit/service/Legit.mjs

Responsibilities:

  • Load external dependencies (@legit-sdk/core, memfs).
  • Initialize the file system.
  • Handle git-like operations (loadTree, loadTreeDelta).
  • Provide file I/O methods.

Updates:

  • apps/legit/view/ViewportController.mjs: Delegate logic to the new service.
tobiu added the enhancement label on Dec 13, 2025, 4:31 PM
tobiu added the ai label on Dec 13, 2025, 4:31 PM
tobiu added the refactoring label on Dec 13, 2025, 4:31 PM
tobiu assigned to @tobiu on Dec 13, 2025, 4:32 PM
tobiu referenced in commit 436df64 - "Refactor Legit App to use a dedicated Service #8108" on Dec 13, 2025, 4:59 PM
tobiu closed this issue on Dec 13, 2025, 5:00 PM