@@ -1880,6 +1880,89 @@ export const WithRulesTags: Story = {
18801880 onTaskAdd : ( ) => window . alert ( 'Add task' ) ,
18811881 } ,
18821882 } ,
1883+ {
1884+ id : '5' ,
1885+ type : 'stage' ,
1886+ position : { x : 48 , y : 400 } ,
1887+ width : 304 ,
1888+ data : {
1889+ stageDetails : {
1890+ label : 'No chips (comparison)' ,
1891+ tasks : [
1892+ [ { id : 't8' , label : 'Verify applicant identity' , icon : < VerificationIcon /> } ] ,
1893+ [ { id : 't9' , label : 'Pull credit report' , icon : < DocumentIcon /> } ] ,
1894+ ] ,
1895+ } ,
1896+ onTaskClick : ( taskId : string ) => window . alert ( `Task clicked: ${ taskId } ` ) ,
1897+ onTaskAdd : ( ) => window . alert ( 'Add task' ) ,
1898+ } ,
1899+ } ,
1900+ {
1901+ id : '6' ,
1902+ type : 'stage' ,
1903+ position : { x : 400 , y : 400 } ,
1904+ width : 304 ,
1905+ data : {
1906+ stageDetails : {
1907+ label : 'ReadOnly + completed + chips' ,
1908+ isReadOnly : true ,
1909+ tasks : [
1910+ [ { id : 't10' , label : 'Verify applicant identity' , icon : < VerificationIcon /> } ] ,
1911+ [ { id : 't11' , label : 'Pull credit report' , icon : < DocumentIcon /> } ] ,
1912+ ] ,
1913+ headerChips : [
1914+ {
1915+ type : StageHeaderChipType . Entry ,
1916+ count : 1 ,
1917+ tooltip : 'Entry rules' ,
1918+ onClick : ( ) => window . alert ( 'Open entry rules panel' ) ,
1919+ } ,
1920+ {
1921+ type : StageHeaderChipType . Exit ,
1922+ count : 3 ,
1923+ tooltip : 'Exit rules' ,
1924+ onClick : ( ) => window . alert ( 'Open exit rules panel' ) ,
1925+ } ,
1926+ ] ,
1927+ } ,
1928+ execution : {
1929+ stageStatus : { status : 'Completed' , label : 'Completed' , duration : 'SLA: 4h' } ,
1930+ } ,
1931+ } ,
1932+ } ,
1933+ {
1934+ id : '7' ,
1935+ type : 'stage' ,
1936+ position : { x : 752 , y : 400 } ,
1937+ width : 304 ,
1938+ data : {
1939+ stageDetails : {
1940+ label : 'ReadOnly + in progress + chips' ,
1941+ isReadOnly : true ,
1942+ tasks : [
1943+ [ { id : 't12' , label : 'Verify applicant identity' , icon : < VerificationIcon /> } ] ,
1944+ [ { id : 't13' , label : 'Pull credit report' , icon : < DocumentIcon /> } ] ,
1945+ ] ,
1946+ headerChips : [
1947+ {
1948+ type : StageHeaderChipType . Entry ,
1949+ count : 2 ,
1950+ tooltip : 'Entry rules' ,
1951+ onClick : ( ) => window . alert ( 'Open entry rules panel' ) ,
1952+ } ,
1953+ {
1954+ type : StageHeaderChipType . Exit ,
1955+ count : 1 ,
1956+ tooltip : 'Exit rules' ,
1957+ onClick : ( ) => window . alert ( 'Open exit rules panel' ) ,
1958+ } ,
1959+ ] ,
1960+ } ,
1961+ execution : {
1962+ stageStatus : { status : 'InProgress' , label : 'In progress' , duration : 'SLA: 2h' } ,
1963+ } ,
1964+ } ,
1965+ } ,
18831966 ] ,
18841967 } ,
18851968 args : { } ,
0 commit comments