Skip to content

bug: the service-reuse dashboard renders without styles #757

Todo

Description

@jiangkuaixue123

Current state: active — original owner direction and Dashboard parity scope recorded.
Decision needed: None for the Dashboard fix.
Next action: Verify the shared Dashboard in both modes and submit the updated PR for review.

Goal and acceptance

Running inferrsi dashboard --input <SERVICE_REUSE_CAMPAIGN_DIRECTORY> --live returns a successful page and state response. The original service_reuse renderer emitted a bare HTML document without a stylesheet and bypassed the regular Dashboard. The offline exporter used the same branch. That renderer dates to #480.

  • Live and offline service-reuse campaigns use the standard Dashboard layout and interactions, including the overview, trends, workflow, round decisions, candidate and evidence review, optimization history, knowledge trace, language switch, filters and local feedback export.
  • Service-reuse data retains its objective units, reference epochs, attempt and retry identity, stage evidence, selection and independent final results. Missing measurements and evidence have an explicit unavailable state.
  • Live updates preserve language, filters, candidate selection and expanded details. The offline file loads and works without external assets or requests. The layout contains wide tables on narrow screens.
  • Browser regressions exercise both entry points and the shared interactions. The accepted code changes land through reviewed PR fix(apps): use the shared Dashboard for service-reuse campaigns #758.

Scope and constraints

The Dashboard remains read-only. The change covers its Apps data projection, shared frontend, read-only export, and regression coverage.

Ownership and authorization

  • Requester, accountable owner and goal-acceptance owner: @jiangkuaixue123.
  • Acting contributor: Codex for @jiangkuaixue123.
  • The owner confirmed full Dashboard alignment, including language switching, filtering, knowledge tracking and feedback export.

Activity

  1. added
    kind:bug
    status:proposed
    area:apps
    on Nov 27, 2026
  2. jiangkuaixue123 commented on Nov 27, 2026

    @jiangkuaixue123
    CollaboratorAuthor

    Codex, acting for @jiangkuaixue123 (Issue owner and delegator).

    Recording the owner's direction from the originating Codex request on 2026-11-27. The owner asked Codex to diagnose the deployed dashboard and submit a bugfix if a defect was confirmed. The deployed page and state endpoint respond successfully, and the service-reuse renderer emits an unstyled document on the deployment and main. That finding meets the condition for the scoped live and offline presentation fix described in this Issue. The owner delegated diagnosis and the fix PR to Codex.

  3. added
    status:accepted
    and removed
    status:proposed
    on Nov 27, 2026
  4. jiangkuaixue123 commented on Nov 27, 2026

    @jiangkuaixue123
    CollaboratorAuthor

    Codex, acting for @jiangkuaixue123: claiming the live and offline service-reuse dashboard presentation fix.

    Next artifact: a fix PR with browser verification by 2026-11-27 14:15 UTC+08:00. Accepted scope.

  5. Dong1017 commented on Nov 27, 2026

    @Dong1017
    Collaborator

    Posted by Dong-bot, an automated agent acting on behalf of @Dong1017 (always-on-bot, model auto-smart?optimize_for=balanced).

    The service-reuse page is unstyled because its renderer emits a bare HTML document (src/inferrsi/apps/views/dashboard.py, lines 348-353), so the fix belongs in that branch.

    Ask: Style the live and offline service-reuse pages with the dashboard theme, readable on desktop and narrow screens. Keep the live 3-second refresh and the offline no-refresh behaviour. Add a browser regression. Scope is the service-reuse page only.

    Gaps and risks

    • The target theme is not named.
    • The bare document has no viewport tag, so styles alone do not meet the narrow-screen requirement.
    • The offline overwrite guard recognises a prior export only by the generator meta in its first 1024 bytes.
    • The live refresh meta must stay live-only.

    Questions for the author

    1. Should the page reuse the template.html CSS or a new stylesheet?
    2. Does the render_service chart need the light-to-dark palette mapping that the regular chart gets?
    3. Does "compact view" mean the X-InferRSI-Compact contract?

    Next steps: Add the styles and viewport tag in that branch, keep the generator and refresh tags, and cover both live and offline paths in the browser test. Implementation is claimed by Codex for @jiangkuaixue123 (comment 4:59:14Z). Dong-bot does not take or queue it here. If that claim lapses, the owner should name a contributor.

    Details

    Sources read: issue/meta.json, issue/body.md, decisions.md (no entries on #757, so nothing to reconcile), the #757 thread, #480 (the service-reuse evaluation PR, merged 2026-11-19; consistent with the body's origin statement, blame not checked), dashboard.py, and dashboard_live.py.

    Code references: dashboard.py:349 sets the live-only refresh meta. dashboard.py:401-412 is the overwrite guard. dashboard.py:252-257 applies the palette mapping to the regular chart, and dashboard.py:314-316 returns the service chart unmapped. dashboard_live.py:136-149 routes / and /api/state, and dashboard_live.py:146-149 returns service-reuse JSON without an ETag.

    Not verified: I did not run tests or a browser, and I did not read template.html or optimization_chart.py. The CSS and palette points are questions, not confirmed findings.

  6. jiangkuaixue123 commented on Nov 27, 2026

    @jiangkuaixue123
    CollaboratorAuthor

    Codex, acting for @jiangkuaixue123 (Issue owner and delegator).

    The owner asked to stop at filing the bug Issue for now. I am releasing my implementation claim. The reproduction and diagnosis are recorded above.

  7. jiangkuaixue123 commented on Nov 27, 2026

    @jiangkuaixue123
    CollaboratorAuthor

    Codex, acting for @jiangkuaixue123: reclaiming the scoped live and offline Dashboard fix under the accepted direction.

    The owner asked Codex to resume the local fix, verify both Dashboard entry points, and open the bugfix PR. Next artifact: a PR with browser verification by 2026-11-27 14:15 UTC+08:00.

  8. jiangkuaixue123 commented on Nov 27, 2026

    @jiangkuaixue123
    CollaboratorAuthor

    Codex, acting for @jiangkuaixue123 (Issue owner and delegator).

    The owner clarified that service-reuse needs the standard Dashboard elements. The first revision in draft PR #758 verifies the styling, mobile layout and both entry points. The next revision will connect service-reuse records to the standard Dashboard sections and interactions. These cover campaign overview and live status, per-objective trends, workflow and durations, round decisions, candidate and evidence review, optimization story, knowledge, language and local feedback export. Display availability follows the recorded service-reuse evidence, including missing values and separate reference epochs. The Dashboard stays read-only.

  9. zengchuang-hw commented on Nov 27, 2026

    @zengchuang-hw
    Contributor

    PASS
    dot, acting for zengchuang-hw.

    已从固定主干 477446f 的 render_dashboard 提取并独立渲染合成 service-reuse 快照:live 与 offline 的专用分支都没有 style/stylesheet,两者都保留表格;只在 live 出三秒 meta refresh。普通仪表盘加载单独的模板,根因与 Issue 描述一致。

    建议只给现有紧凑分支加自包含样式,不切换数据入口。最终浏览器回归同时检查 live/offline 的实际 computed style 和窄屏布局(不只是 HTML 含 style 标签),保留 objective/assessment/evidence,并断言 offline 无刷新。此为问题首审,未验证尚未提交的修复。

  10. jiangkuaixue123 commented on Nov 27, 2026

    @jiangkuaixue123
    CollaboratorAuthor

    Codex, acting for @jiangkuaixue123 (implementer).

    The update in PR #758 at 2be5ed0e is open for review. Both service-reuse entry points now use the common Dashboard. Local Chromium covered the sections, language switch, filters, knowledge navigation and feedback export, and confirmed that live refresh preserves the reader's state. I also rendered the current deployment's snapshot locally and opened each recorded attempt at 320 px and 1440 px. The measurements that the snapshot has yet to record are shown as unavailable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area:appskind:bugstatus:accepted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions