3.0 KiB
Recent Changes and Migration Context
This file captures recent cleanup/migration work so future agents do not reverse it.
AntD 5 Deprecation Cleanup
Warnings addressed:
Collapse expandIconPositionleft/right deprecated.rc-collapse childrendeprecated.Table rowKeyindex parameter deprecated.- Static
messagecannot consume dynamic theme context. Dropdown overlaydeprecated.RangePicker rangesdeprecated.
Patterns now used:
Collapse itemsexpandIconPosition="end"Dropdown menu- stable table row keys
RangePicker presetssrc/util/antdFeedback.jsfor feedback APIs- AntD
<App>wrapper and bridge insrc/App/App.jsx
Redux CreateStore Warning
src/redux/store.js imports:
import { legacy_createStore as createStore, applyMiddleware, compose } from "redux";
This intentionally keeps the current Redux architecture while avoiding the visual deprecation warning. Do not change to plain createStore.
Job Detail Flash Fix
src/components/organisms/jobs-detail/jobs-detail.organism.jsx debounces selected job id and shows a skeleton during transitions. This prevents a fraction-of-a-second stale/partial render in the left panel.
When editing this area:
- Preserve stale-data guards.
- Preserve a stable loading state when selected id changes.
- Do not render details for a job whose id does not match current selection.
Apollo Pagination/Cache Fixes
src/graphql/GraphQLClient.js includes offset merge policies:
Query.jobsQuery.search_jobs
List components were hardened against missing previous/incoming arrays.
Electron Package Upgrades
Packages upgraded together:
electron-context-menuto^4.1.2electron-is-devto^3.0.1electron-storeto^11.0.2electronto^42.3.0electron-builderto^26.8.1@sentry/electronto^7.13.0
Important migration consequences:
electron-storeis initialized asynchronously via dynamic import.electron-context-menuis dynamically imported.electron-is-devis no longer used in runtime code; useapp.isPackaged/process checks.- Sentry uses protocol IPC mode.
- Electron builder pack check uses
electron-builder.pack-check.cjs.
Electron Warning Cleanup
Circular dependency warning fixed by removing mainWindow export/import patterns. IPC modules use Electron APIs directly:
BrowserWindow.fromWebContents(event.sender)
Sentry preload deprecation warnings were addressed by using protocol IPC mode:
ipcMode: Sentry.IPCMode.Protocol
DevTools behavior:
- Development opens DevTools by default again.
- Use
ELECTRON_OPEN_DEVTOOLS=0to suppress. - React DevTools extension install remains opt-in.
Pack Check Safety
User specifically requested pack checks without publishing.
package.json:
"pack": "electron-builder --dir --publish never --config electron-builder.pack-check.cjs"
electron-builder.pack-check.cjs disables Azure signing options for this local check. Do not remove --publish never from the pack script.