Skip to content

Codex/stable surface hardening#9

Merged
utkuvibing merged 17 commits into
mainfrom
codex/stable-surface-hardening
Apr 12, 2026
Merged

Codex/stable surface hardening#9
utkuvibing merged 17 commits into
mainfrom
codex/stable-surface-hardening

Conversation

@utkuvibing
Copy link
Copy Markdown
Owner

Summary

  • What changed?
  • Why did it change?

Testing

  • List the exact commands you ran.
  • Mention any manual smoke checks.

Review & merge gates

  • Codex review completed
  • Enable auto-merge after checks pass

Risk / rollback

  • Main risk area:
  • Rollback plan:

@utkuvibing utkuvibing merged commit e9184fd into main Apr 12, 2026
1 of 2 checks passed
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: 1226653fb6

ℹ️ 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".

assert 'st.navigation(pages, position="hidden")' in app_entry
assert '_render_sidebar_page_section(t("nav.primary"), primary_pages, current_path)' in app_entry
assert 'label_visibility="collapsed"' in app_entry
assert 'header_meta_col, header_lang_col = st.columns([1.15, 0.95], gap="small")' in app_entry
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Update stale sidebar-layout assertion

This assertion hard-codes a code pattern that no longer exists in app.py, so test_sidebar_navigation_uses_grouped_scientific_structure fails before it can validate the intended navigation behavior. In CI environments that run this suite, the commit will be blocked by a deterministic false negative rather than a product regression.

Useful? React with 👍 / 👎.

Comment on lines +91 to +94
def _default_layout() -> dict:
tokens = _plot_tokens()
return dict(
template=tokens["template"],
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve DEFAULT_LAYOUT compatibility in plot builder

The refactor switched from a module-level DEFAULT_LAYOUT constant to _default_layout() without leaving a compatibility alias, but existing tests still access plot_builder.DEFAULT_LAYOUT (for example in tests/test_plot_builder.py and tests/test_xrd_page.py). This introduces AttributeError in the current repo test surface and breaks downstream callers that rely on the exported symbol.

Useful? React with 👍 / 👎.

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