Skip to content

feat: Type Admin dashboard codebase - #521

Open
siduck wants to merge 2 commits into
developfrom
api-types
Open

siduck wants to merge 2 commits into
developfrom
api-types

Conversation

@siduck

@siduck siduck commented Sep 23, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@greptile-apps

greptile-apps Bot commented Sep 23, 2026

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

The type-generation defect is non-blocking, but the explicit comment-quality requirement must be satisfied before merging.

Reviews (1) · Last reviewed commit: "feat(ui): type api responses"

Comment on lines +134 to +136
if origin in (list, tuple, set, frozenset):
item = _ts_type(args[0]) if args else "unknown"
return f"({item})[]" if " | " in item else f"{item}[]"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Tuple arity is lost

Fixed tuples are emitted as variable-length arrays using only the first element type. As a result, load_avg: tuple[float, float, float] becomes number[] instead of [number, number, number], weakening the generated contract. Preserve fixed tuple elements and add coverage for this current target.

Prompt To Fix With AI
This is a comment left during a code review.
Path: scripts/generate_ts_types.py
Line: 134-136

Comment:
**Tuple arity is lost**

Fixed tuples are emitted as variable-length arrays using only the first element type. As a result, `load_avg: tuple[float, float, float]` becomes `number[]` instead of `[number, number, number]`, weakening the generated contract. Preserve fixed tuple elements and add coverage for this current target.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Comment on lines +23 to 25
// The report the site-storage timer refreshes; measuring again is a task.

// The report the site-storage timer refreshes; measuring again is a task.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Duplicated storage comment

The site-storage comment appears twice. Remove the duplicate to satisfy the repository requirement that comments remain terse and non-redundant before merging.

Suggested change
// The report the site-storage timer refreshes; measuring again is a task.
// The report the site-storage timer refreshes; measuring again is a task.
// The report the site-storage timer refreshes; measuring again is a task.

Context Used: CLAUDE.md (source)

Prompt To Fix With AI
This is a comment left during a code review.
Path: admin/frontend/dashboard/src/api/sites.ts
Line: 23-25

Comment:
**Duplicated storage comment**

The site-storage comment appears twice. Remove the duplicate to satisfy the repository requirement that comments remain terse and non-redundant before merging.

```suggestion
  // The report the site-storage timer refreshes; measuring again is a task.
```

**Context Used:** CLAUDE.md ([source](https://github.com/frappe/pilot/blob/main/CLAUDE.md))

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!

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