Files
JayuCloud/docs/changes/2026-05-16-system-message-and-mysql-mcp-followup.md
T

50 lines
2.6 KiB
Markdown

# 2026-05-16 System Message And MySQL MCP Follow-up
## Scope
- Added system message publishing for admins and store managers.
- Added Web admin message publishing, Web user notifications, and WeChat mini program notifications.
- Kept SQL consolidated in `YumiNail-Core/src/main/resources/files/YumiNail.sql`; no extra SQL files were added.
- Added acceptance seed messages and message user state rows.
## MySQL MCP Status
- Nacos `YumiNail-Dev / DEFAULT_GROUP / datasource.yaml` was read successfully.
- Datasource target used for verification: `192.168.5.15:3306/nailart`, user `root`; password was read from Nacos and was not printed.
- `C:\Users\21616\.codex\config.toml` was updated so both `mcp_servers.mysql` and `mcp_servers.toolbox-mysql` point to the Nacos datasource; MySQL MCP write flags were enabled for this test.
- The active Codex session still did not hot-load MySQL MCP tools after config update, so SQL execution used a temporary Node `mysql2` runner as the configured-connection fallback.
- `YumiNail.sql` was executed against `nailart` on 2026-05-16. The runner completed with 143 executed statements and 80 ignored already-existing/repeat-seed statements.
## Database Verification
- Message tables present: `t_system_message`, `t_system_message_user_state`.
- Message permissions present: `message:view`, `message:create`, `message:delete`.
- Acceptance messages present: 3.
- Participating production records present: 2.
- SQL directory check: only `YumiNail.sql` remains.
## Verification
- `rtk mvn -q -DskipTests compile` in `YumiNail-Core`: passed.
- `rtk npm run build` in `YumiNail-Frontend`: passed, with the existing Vite large chunk warning.
- Full WeChat mini program JavaScript syntax check with `node --check`: passed.
- `rtk git diff --check`: passed.
- SQL execution fallback: passed against Nacos datasource database.
## Acceptance Data Added
- `t_system_message`
- `Acceptance Platform Notice`
- `Acceptance Shop Notice`
- `Acceptance Selected User Notice`
- `t_system_message_user_state`
- Covers read, unread, popup shown, and popup pending states.
## Remaining Manual Checks
- Verify admin can publish platform, shop, and selected-user messages.
- Verify store manager can publish only current-shop and selected current-shop-user messages.
- Verify user popup messages appear once, then remain visible in the notification list.
- Verify dynamic shop targeting by binding a user to a target shop after message creation and confirming the message becomes visible.
- Restart Codex or open a new session to expose the reconfigured MySQL MCP tools directly.