Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
ef1063c
Implement DatePickerSingle
KoolADE85 Oct 17, 2025
bf30769
Implement DatePickerRange
KoolADE85 Nov 3, 2025
eeaea3c
Code cleanup
KoolADE85 Nov 4, 2025
ecf7331
Implement focus management
KoolADE85 Nov 6, 2025
b4e33ab
Merge branch 'v4' into feature/dcc-refactor-datepicker
KoolADE85 Nov 7, 2025
bedc7e9
Merge remote-tracking branch 'origin' into feature/dcc-refactor-datep…
KoolADE85 Nov 7, 2025
1462ce7
Merge branch 'v4' into feature/dcc-refactor-datepicker
KoolADE85 Nov 7, 2025
75fd1fe
Self review cleanup
KoolADE85 Nov 7, 2025
5593786
Remove old react.js component
KoolADE85 Nov 7, 2025
6088094
empty commit for ci
KoolADE85 Nov 7, 2025
ec6efd1
fix webpack optimization error due to import
KoolADE85 Nov 7, 2025
a4d0d09
Fix end_date persistence bug
KoolADE85 Nov 10, 2025
ccf27a0
fix flaky test
KoolADE85 Nov 10, 2025
e11a33d
css style fixes and replace useEffect
KoolADE85 Nov 13, 2025
25ffeb3
replace moment.js with date-fns
KoolADE85 Nov 17, 2025
79f120d
organize imports
KoolADE85 Nov 17, 2025
4c94bd4
empty commit for ci
KoolADE85 Nov 18, 2025
1760ae8
support localization in date-fns implementation
KoolADE85 Nov 19, 2025
ab88a95
Fix CI
KoolADE85 Nov 20, 2025
7c11689
Merge branch 'v4' into feature/dcc-refactor-datepicker
KoolADE85 Nov 20, 2025
8d6da89
Merge branch 'v4' into feature/dcc-refactor-datepicker
KoolADE85 Nov 20, 2025
647f427
fix build error introduced by merge
KoolADE85 Nov 20, 2025
26d7e45
Merge branch 'v4' into feature/dcc-refactor-datepicker
KoolADE85 Nov 20, 2025
cd54ead
fix build error introduced by merge
KoolADE85 Nov 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).

## Added
- Modernized `dcc.Tabs`
- Modernized `dcc.DatePickerSingle` and `dcc.DatePickerRange`

## Changed
- `dcc.Tab` now accepts a `width` prop which can be a pixel or percentage width for an individual tab.
Expand Down Expand Up @@ -50,7 +51,7 @@ This project adheres to [Semantic Versioning](https://semver.org/).
- [#3347](https://github.com/plotly/dash/pull/3347) Added 'api_endpoint' to `callback` to expose api endpoints at the provided path for use to be executed directly without dash.
- [#3445](https://github.com/plotly/dash/pull/3445) Added API to reverse direction of slider component.
- [#3460](https://github.com/plotly/dash/pull/3460) Add `/health` endpoint for server monitoring and health checks.
- [#3465](https://github.com/plotly/dash/pull/3465) Plotly cloud integrations, add devtool API, placeholder plotly cloud CLI & publish button, `dash[cloud]` extra dependencies.
- [#3465](https://github.com/plotly/dash/pull/3465) Plotly cloud integrations, add devtool API, placeholder plotly cloud CLI & publish button, `dash[cloud]` extra dependencies.

## Fixed
- [#3490](https://github.com/plotly/dash/pull/3490) Fix stack overflow when circular callbacks are displayed on the devtool callback
Expand Down
29 changes: 26 additions & 3 deletions components/dash-core-components/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,37 @@
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testEnvironment: 'jsdom',
roots: ['<rootDir>/tests'],
testMatch: ['**/__tests__/**/*.ts', '**/?(*.)+(spec|test).ts'],
testMatch: ['**/__tests__/**/*.{ts,tsx}', '**/?(*.)+(spec|test).{ts,tsx}'],
transform: {
'^.+\\.ts$': 'ts-jest',
'^.+\\.(ts|tsx)$': [
'ts-jest',
{
tsconfig: {
jsx: 'react',
esModuleInterop: true,
allowSyntheticDefaultImports: true,
types: ['jest', '@testing-library/jest-dom'],
},
},
],
'^.+\\.js$': [
'ts-jest',
{
tsconfig: {
allowJs: true,
},
},
],
},
collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/**/*.d.ts'],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1',
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
},
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
// Disable caching to ensure TypeScript type changes are always picked up
cache: false,
// Limit workers in CI to prevent out-of-memory errors
maxWorkers: process.env.CI ? 2 : undefined,
};
11 changes: 10 additions & 1 deletion components/dash-core-components/jest.setup.js
Original file line number Diff line number Diff line change
@@ -1,2 +1,11 @@
// Jest setup file
// This file is loaded before every test file
// This file is loaded before every test file
import '@testing-library/jest-dom';

// Mock window.dash_component_api for components that use Dash context
global.window = global.window || {};
global.window.dash_component_api = {
useDashContext: () => ({
useLoading: () => false,
}),
};
Loading