Repository navigation
fix(console): restrict column number inputs and hide unbounded min/max - #15081
Conversation
|
Review complete. 🟡 1 medium 💬 Inline comments (1)
🧹 Nitpicks (2) — 🟢 2 low
This change refines the column edit drawer in the console so that columns created with full-range (unbounded) min/max values open with empty bound fields instead of giant sentinel numbers, and adds keydown guards to numeric inputs to block invalid characters like Reviewed commit: a5c83d7 |
New ConsoleProject ID: Tip Function scopes give you fine-grained control over API permissions |
🟢 Tier S · Ready to merge
The column drawer filters invalid keystrokes and pasted characters from string/varchar size fields and integer/double bound fields. When editing integer or double columns whose stored bounds are their full type range, those bounds display as empty, and leaving them empty preserves the stored bounds on update. The latest change factors the shared bound normalization into a generic helper. Latest changes: The newest commit consolidates the duplicate min/max full-range normalization into a generic helper without changing its behavior.
📂 Walkthrough · 1
Reviewed the commits since |
There was a problem hiding this comment.
The PR improves the TablesDB column drawer by displaying unbounded min/max bounds as empty fields and guarding numeric inputs, though three residual issues remain in the sentinel handling.
Key findings
- 🟡 Float sentinel check erases legitimate int64 bounds — Column.tsx:308

What changed
e,E,+,-,.keystrokes; integer min/max rejecte,E,+,.; double min/max rejecte,E,+.±9223372036854775807,±1.7976931348623157e+308); those fields show empty. Leaving them empty on update sends null, which keeps the stored bounds.Testing
PHP_INT_MAX/PHP_FLOAT_MAXin the attribute create actions, null keeps existing bounds on update).Fixes #9217
Fixes #7706