Skip to content

Various fixes via detail - #100

Closed
elviskahoro wants to merge 17 commits into
LineIndent:mainfrom
elviskahoro:main
Closed

elviskahoro wants to merge 17 commits into
LineIndent:mainfrom
elviskahoro:main

Conversation

@elviskahoro

Copy link
Copy Markdown
Collaborator

Various fixes via detail

detail-app Bot and others added 17 commits October 2, 2026 21:42
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
…ed, toBase62) (#5)

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Fixes copy buttons in chart_util_wrapper and file_codeblock being
absolutely positioned without a positioned ancestor, which caused
them to anchor to the page root instead of the codeblock. Matches
the pattern already used in demo_wrapper. Closes AI-342.
Collapsible panels snap open and closed because the height state selectors have no transition. Match Accordion timing so both interactions animate consistently.
* chore: remove dead menu.py constants and type aliases

* Regenerate menu.md after dead-code removal

---------

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
* chore(tools): add gtm-linear and issue-fetch CLI

gtm-linear is a Python SDK with no executable, so
scripts/linear_cli.py wraps LinearWorkflow as read-only
commands (viewer/teams/issues/issue/search) for fetching
Linear issues. Auth resolves LINEAR_API_KEY from env or
gitignored .env.local.

* refactor(tools): port Linear CLI to Typer

Type-hint-driven commands, enum state choices, rich --help,
typer.echo/secho output. Typer added as a dev dependency.

* fix(tools): harden Linear CLI after review

- Disable Typer pretty exceptions (locals in tracebacks could
  expose the API key)
- One _fail() error style for all failure paths
- Bound --limit to 1-100 via option validation instead of
  silent clamping
- Add CliRunner tests covering state enum, exit codes, auth
  failure, and LinearAPIError mapping

* test(tools): tighten Linear CLI tests after review

Assert main() prints the API error to stderr, cover
ValidationError handling with from_env patched, document
the verified settings sources on the missing-key test, use
result.output directly (click 8.2+ interleaves stderr), note
the --limit validation behavior in the CLI docstring.

* test(tools): finish Linear CLI test polish after review

Clear every LINEAR_* env var in the missing-key smoke test,
drop the version-pinned comment, add a case proving
unrelated from_env exceptions are not misreported.

* test(tools): match LINEAR_ env vars case-insensitively

pydantic-settings resolves env names case-insensitively;
also assert the original exception message survives and
document why ValueError guards a ValidationError regression.
@elviskahoro elviskahoro closed this Oct 3, 2026
elviskahoro added a commit that referenced this pull request Nov 10, 2026
#115)

**Detail bug report:** [View on
Detail](https://app.detail.dev/org_d38a878f-9df9-4c4b-a96a-f5180b860085/bugs/bug_5ad87135-0dfa-469c-9e9c-bc9731cbd28b)

Closes #100

## Bug

`card_twenty_two` ("Financial Ledger") and `card_twenty_six`
("Medication Record") build their tables from the low-level `table.root`
primitives and passed `striped=True` to opt into zebra striping. But
`striped` is only a declared parameter of the high-level `table(...)`
builder — `TableRoot.create` captures it in `**props` and forwards it to
`Div.create`, where Reflex stores it on the component's `style` dict. It
renders as an Emotion `css:({ ["striped"] : true })` rule that browsers
silently discard (the `striped` CSS property is unknown), so the cards
shipped with no visible striping and a dead `striped=True` argument.

## Fix

Since these cards build rows manually (with per-cell styling the
high-level builder can't reproduce), the idiomatic fix is to apply the
striping utility directly to each body row and remove the inert kwarg:

- Added `class_name="even:bg-secondary/30"` to each body
`table.row(...)` in both cards — the same utility
`HighLevelTable.create` emits for striped tables.
- Removed the inert `striped=True` from both `table.root(...)` calls.

The `even:` variant is a `:nth-child(even)` selector, so attaching it to
every body row produces the same visual alternation as the high-level
builder (rows 2, 4, … shaded).

## Testing

- **Unit tests (versioned):** 4 tests in `tests/test_table_striping.py`
guard the invariants going forward — a render-level assert on
`card_twenty_two()` pins zebra striping on the fixed card, the
high-level `table(...)` builder honors `striped=True` and consumes it
(never leaking it), defaults to no striping, and a tripwire confirming
`table.root(...)` does **not** handle `striped` (so a future change to
that API is deliberate, not silent).
- **Routine checks:** full suite, pyright, and ruff all pass.
- **Browser verification:** rendered a standalone page with the
project's compiled Tailwind CSS and the actual row class names from the
fix. Striped rows 2 and 4 render `oklch(0.97 0 0 / 0.3)` backgrounds
(the `color-mix(in oklab, var(--secondary) 30%, transparent)` rule),
rows 1 and 3 stay transparent, no `striped` CSS property appears
anywhere in the DOM, and a control table without the striping class has
uniform backgrounds.
- **Live app:** the Reflex `/components` page could not be verified
end-to-end due to a pre-existing React hydration error that prevents all
masonry card content from rendering. Confirmed unrelated — the
server-rendered HTML is byte-identical with and without this change.

---
_Automatic Fixes PRs can be [configured
here](https://app.detail.dev/org_d38a878f-9df9-4c4b-a96a-f5180b860085/settings/repos/repo_04b9d58c-daa0-46b6-9560-7f39569ec6eb/bugs)._

---------

Co-authored-by: detail-app[bot] <180357370+detail-app[bot]@users.noreply.github.com>
Co-authored-by: elvis kahoro <github@elvis.ai>
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