Skip to content

feat(methods): report_module_state dashboard UI#35

Merged
Undline merged 1 commit intomainfrom
dev
Apr 6, 2026
Merged

feat(methods): report_module_state dashboard UI#35
Undline merged 1 commit intomainfrom
dev

Conversation

@Undline
Copy link
Copy Markdown
Contributor

@Undline Undline commented Apr 6, 2026

  • Methods: card-style editors for standard metrics and validator pie; hidden metric params; preserve hidden values when switching methods; validate only visible required fields; cap custom dashboard cards; move health CSV block last.
  • reportModuleStateDetail: constants and compose/build helpers aligned with UI.
  • Core: require integer schema_version and granularity_hours; reject NaN/Inf health_activity points; add tests.
  • Frontend dev: webpack poll/debounce for all compilers on win32; optional NEXT_WEBPACK_POLL_MS; npm run dev:incremental skips .next clean.

…tion; Windows dev HMR

- Methods: card-style editors for standard metrics and validator pie; hidden
  metric params; preserve hidden values when switching methods; validate only
  visible required fields; cap custom dashboard cards; move health CSV block last.
- reportModuleStateDetail: constants and compose/build helpers aligned with UI.
- Core: require integer schema_version and granularity_hours; reject NaN/Inf
  health_activity points; add tests.
- Frontend dev: webpack poll/debounce for all compilers on win32; optional
  NEXT_WEBPACK_POLL_MS; npm run dev:incremental skips .next clean.

Made-with: Cursor
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b2a865f424

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +48 to +52
const next: Record<string, string> = {};
for (const p of def.params) {
if (p.hidden) {
next[p.name] = prev[p.name] ?? "";
} else if (p.options?.length) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve hidden report values across method switches

Rebuilding state in buildInitialValuesForMethod from only the newly selected method’s params drops keys that aren’t in that method. For report_module_state, this means hidden dashboard fields are lost as soon as the user switches to another method, and switching back restores them as empty strings instead of preserving prior input. This creates repeated data loss during normal navigation and undermines the hidden-field preservation this change is trying to provide.

Useful? React with 👍 / 👎.

@Undline Undline merged commit 64df481 into main Apr 6, 2026
1 check passed
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.

1 participant