This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch docs/federate-storybook
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/docs/federate-storybook by 
this push:
     new afd1cb377c fix(docs): complete showNow changes for DatePicker story
afd1cb377c is described below

commit afd1cb377cb99717ad795c2a57cd4131e99db44c
Author: Evan Rusackas <[email protected]>
AuthorDate: Tue Jan 20 19:29:18 2026 -0800

    fix(docs): complete showNow changes for DatePicker story
    
    Co-Authored-By: Claude Opus 4.5 <[email protected]>
---
 .../src/components/DatePicker/DatePicker.stories.tsx        | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)

diff --git 
a/superset-frontend/packages/superset-ui-core/src/components/DatePicker/DatePicker.stories.tsx
 
b/superset-frontend/packages/superset-ui-core/src/components/DatePicker/DatePicker.stories.tsx
index d909bff65a..1168ae69a9 100644
--- 
a/superset-frontend/packages/superset-ui-core/src/components/DatePicker/DatePicker.stories.tsx
+++ 
b/superset-frontend/packages/superset-ui-core/src/components/DatePicker/DatePicker.stories.tsx
@@ -80,11 +80,17 @@ export const InteractiveDatePicker: any = (args: 
DatePickerProps) => (
 InteractiveDatePicker.args = {
   ...commonArgs,
   placeholder: 'Placeholder',
-  showToday: true,
+  showNow: true,
   showTime: { format: 'hh:mm a', needConfirm: false },
 };
 
-InteractiveDatePicker.argTypes = interactiveTypes;
+InteractiveDatePicker.argTypes = {
+  ...interactiveTypes,
+  showNow: {
+    description: 'Show "Now" button to select current date and time.',
+    control: 'boolean',
+  },
+};
 
 InteractiveDatePicker.parameters = {
   actions: {
@@ -104,7 +110,6 @@ InteractiveDatePicker.parameters = {
       placement: 'bottomLeft',
       size: 'middle',
       showNow: true,
-      showToday: true,
       placeholder: 'Select date',
       showTime: { format: 'hh:mm a', needConfirm: false },
     },
@@ -113,7 +118,7 @@ InteractiveDatePicker.parameters = {
     <DatePicker
       placeholder="Select date"
       format="YYYY-MM-DD hh:mm a"
-      showToday
+      showNow
       showTime={{ format: 'hh:mm a', needConfirm: false }}
     />
   );

Reply via email to