Skip to content

refactor: add mise, update electron-forge, add ci/cd workflow for lint - #252

Merged
Dadadah merged 1 commit into
mainfrom
refactor/addmise
Jul 24, 2026
Merged

refactor: add mise, update electron-forge, add ci/cd workflow for lint#252
Dadadah merged 1 commit into
mainfrom
refactor/addmise

Conversation

@Dadadah

@Dadadah Dadadah commented Jul 24, 2026

Copy link
Copy Markdown
Member

Add mise!
Update electron forge
Add linting and formatting to build ci/cd workflow
Fix some linting and formatting errors
Fix some types missing
Fix some dev imports missing
Fix appx import being shipped with the app (wtf?)

Some of the fixes in this PR were present in #187, so thanks @Lynden-Sylvester

Signed-off-by: Jacob Schlecht <dadadah@echoha.us>
@Dadadah
Dadadah force-pushed the refactor/addmise branch from 175de0c to bc818fa Compare July 24, 2026 06:28
@Dadadah
Dadadah merged commit 6894231 into main Jul 24, 2026
4 checks passed
@Dadadah
Dadadah deleted the refactor/addmise branch July 24, 2026 22:00
devoliverluccas added a commit to devoliverluccas/for-desktop that referenced this pull request Aug 19, 2026
…red up

Both `native/autoLaunch.ts` and `native/badges.ts` registered their IPC
handlers as an import side effect, and nothing imported either module, so
the handlers did not exist at runtime.

For autostart this was a regression:

  - e00f3a8 (stoatchat#237) removed the last direct use of `autoLaunch`, leaving the
    import unused
  - 6894231 (stoatchat#252) then removed the now-unused import during the lint pass

`ipcMain.handle("getAutostart"/"setAutostart")` went with it, so the
renderer's `desktopConfig.setAutostart()` rejects with "No handler
registered" and the toggle in settings silently does nothing. Closes stoatchat#287.

Badges were never wired up at all -- `git log -S 'native/badges'` shows the
module has not been imported since the initial commit, even though the
preload bridge has exposed `native.setBadgeCount()` since stoatchat#25. Refs stoatchat#213.

Both modules now expose an explicit `init*()` that `main.ts` calls, so the
registration is tied to a call the linter cannot quietly drop.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Signed-off-by: Lucas Oliveira <lucasferreiradeoliveira.20@gmail.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.

2 participants