fsanyoto commited on
Commit
1223a94
·
verified ·
1 Parent(s): 235c142

Deploy AIOS web (React glide grid + FastAPI slice)

Browse files
RELEASES.json CHANGED
@@ -1,6 +1,12 @@
1
  {
2
- "current": "v58 (c526ced)",
3
  "releases": [
 
 
 
 
 
 
4
  {
5
  "version": "v58",
6
  "sha": "c526ced",
 
1
  {
2
+ "current": "v59 (3cb73ce)",
3
  "releases": [
4
+ {
5
+ "version": "v59",
6
+ "sha": "3cb73ce",
7
+ "date": "2026-08-29",
8
+ "subject": "release v59"
9
+ },
10
  {
11
  "version": "v58",
12
  "sha": "c526ced",
VERSION CHANGED
@@ -1 +1 @@
1
- v58 (c526ced)
 
1
+ v59 (3cb73ce)
web/src/customer-grid/DatePicker.tsx CHANGED
@@ -107,7 +107,10 @@ export function DatePicker({ anchor, field, fields, scopeKey, value, today, onCh
107
  const days = new Date(Date.UTC(cursor.getUTCFullYear(), cursor.getUTCMonth() + 1, 0)).getUTCDate();
108
  const cells = Array.from({ length: Math.ceil((leading + days) / 7) * 7 }, (_, index) => index - leading + 1);
109
 
110
- return <AnchoredOverlay anchor={anchor} className="cg-date-picker" placement="bottom-start" onDismiss={onClose} role="dialog" ariaLabel={`Choose a date for ${field.label}`} dataKind="date-picker">
 
 
 
111
  <label className="cg-date-boundary">Date<input className="cg-input" type="date" value={selectedIso} aria-label={`Date value for ${field.label}`} onChange={(event) => onChange(event.target.value)} /></label>
112
  <div className="cg-date-picker-head"><button type="button" className="cg-icon-button" aria-label="Previous month" onClick={() => setCursor(addMonths(cursor, -1))}>‹</button><strong>{MONTHS[cursor.getUTCMonth()]} {cursor.getUTCFullYear()}</strong><button type="button" className="cg-icon-button" aria-label="Next month" onClick={() => setCursor(addMonths(cursor, 1))}>›</button></div>
113
  <div className="cg-date-weekdays">{WEEKDAYS.map((day) => <span key={day}>{day}</span>)}</div>
 
107
  const days = new Date(Date.UTC(cursor.getUTCFullYear(), cursor.getUTCMonth() + 1, 0)).getUTCDate();
108
  const cells = Array.from({ length: Math.ceil((leading + days) / 7) * 7 }, (_, index) => index - leading + 1);
109
 
110
+ // This is a body-portal overlay, so `cg-date-picker` alone only supplies its width and padding.
111
+ // Keep the shared `cg-pop` contract on the same element: it supplies the opaque surface, border,
112
+ // elevation, and readable ink that every anchored editor needs over Glide's canvas.
113
+ return <AnchoredOverlay anchor={anchor} className="cg-pop cg-date-picker" placement="bottom-start" onDismiss={onClose} role="dialog" ariaLabel={`Choose a date for ${field.label}`} dataKind="date-picker">
114
  <label className="cg-date-boundary">Date<input className="cg-input" type="date" value={selectedIso} aria-label={`Date value for ${field.label}`} onChange={(event) => onChange(event.target.value)} /></label>
115
  <div className="cg-date-picker-head"><button type="button" className="cg-icon-button" aria-label="Previous month" onClick={() => setCursor(addMonths(cursor, -1))}>‹</button><strong>{MONTHS[cursor.getUTCMonth()]} {cursor.getUTCFullYear()}</strong><button type="button" className="cg-icon-button" aria-label="Next month" onClick={() => setCursor(addMonths(cursor, 1))}>›</button></div>
116
  <div className="cg-date-weekdays">{WEEKDAYS.map((day) => <span key={day}>{day}</span>)}</div>