Skip to content

Commit

Permalink
- Using the corrected datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
krazziekay committed Dec 7, 2023
1 parent ef67e5a commit 0b4d49f
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 24 deletions.
2 changes: 1 addition & 1 deletion spa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@atlaskit/button": "^16.8.0",
"@atlaskit/checkbox": "^13.0.1",
"@atlaskit/css-reset": "^6.5.2",
"@atlaskit/datetime-picker": "^13.0.2",
"@atlaskit/datetime-picker": "^13.0.3",
"@atlaskit/dynamic-table": "^14.11.5",
"@atlaskit/form": "^8.11.8",
"@atlaskit/heading": "^1.3.7",
Expand Down
19 changes: 11 additions & 8 deletions spa/src/pages/Connections/Modals/RestartBackfillModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Button from "@atlaskit/button";
import { SuccessfulConnection } from "../../../../../src/rest-interfaces";
import { Checkbox } from "@atlaskit/checkbox";
import { Label } from "@atlaskit/form";
// import { DatePicker } from "@atlaskit/datetime-picker";
import { DatePicker } from "@atlaskit/datetime-picker";

/**
* NOTE: While testing in dev mode, please disable the React.StrictMode first,
Expand All @@ -15,10 +15,11 @@ const RestartBackfillModal = ({ subscription, setIsModalOpened }: {
setIsModalOpened: (x: boolean) => void
}) => {
const [restartFromDateCheck, setRestartFromDateCheck] = useState(false);
const [backfillDate, setBackfillDate] = useState("");

const backfill = () => {
// TODO: API call to disconnect this subscription
console.log("Backfill for", subscription.account.login, restartFromDateCheck);
console.log("Backfill for", subscription.account.login, restartFromDateCheck, backfillDate);
setIsModalOpened(false);
};

Expand All @@ -35,12 +36,14 @@ const RestartBackfillModal = ({ subscription, setIsModalOpened }: {
</p>
<p>
<Label htmlFor="backfill-date-picker">Choose date</Label>
{/* TODO: This datepicker is throwing a dependency issue saying module not found, add it later when fixed*/}
{/*<DatePicker*/}
{/* selectProps={{*/}
{/* inputId: "backfill-date-picker",*/}
{/* }}*/}
{/*/>*/}
<DatePicker
selectProps={{
inputId: "backfill-date-picker",
}}
placeholder="Select date"
autoFocus={false}
onChange={setBackfillDate}
/>
</p>
<p>
<Checkbox
Expand Down
42 changes: 27 additions & 15 deletions spa/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@
"@emotion/react" "^11.7.1"

"@atlaskit/button@^16.17.0":
version "16.17.10"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/button/-/button-16.17.10.tgz#8e305dc7ff926f44ee1acd51f29fdd270cb5fd05"
integrity sha512-C7UIVAKKrHOtwHiLT94XfyqQ/EAvWq4C7BxaxY0iTJZCvBTgZcefuHLsol9j612IaT7B8NJ/+vnwkKFpGjvFkQ==
version "16.17.11"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/button/-/button-16.17.11.tgz#2b4410b28ea7a627f529e37a50e9fb13aebddbb7"
integrity sha512-1zwdb6saW8XTf//8CQ24sEACgQqzG++bJvz1mqQo2t+embRo+OWgOgTYf4MGzkztGw9vIOMdreiiLAv9NNCpvA==
dependencies:
"@atlaskit/analytics-next" "^9.1.0"
"@atlaskit/ds-lib" "^2.2.0"
Expand Down Expand Up @@ -149,9 +149,9 @@
"@emotion/react" "^11.7.1"

"@atlaskit/calendar@^14.0.0":
version "14.0.2"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/calendar/-/calendar-14.0.2.tgz#df392186a2d64cbc6edab77affead0436c2fb4ad"
integrity sha512-v81dRWJ0EVGV2H+VVE3IPLaOehJxVcK/xIk9He1WgjN0fN/1Ejmmt96+9oxo6FbR8prSg4IDGMpUyJrBzgOg0g==
version "14.0.3"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/calendar/-/calendar-14.0.3.tgz#4e27ed33457958eec024af98512c957b77f50348"
integrity sha512-+mSUBALjCd3Qk4VwHmPvO6Y0KdblzvQSF5TAaRPRjMwoDw3V/i3USOWcTQ1obFSXm327ZulW+uLqTM3YsklvDA==
dependencies:
"@atlaskit/analytics-next" "^9.1.0"
"@atlaskit/button" "^16.17.0"
Expand Down Expand Up @@ -199,10 +199,10 @@
"@babel/runtime" "^7.0.0"
fbjs "^3.0.0"

"@atlaskit/datetime-picker@^13.0.2":
version "13.0.2"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/datetime-picker/-/datetime-picker-13.0.2.tgz#6ce8899117134801dd7ef89730b6c4b77307ec48"
integrity sha512-kz/h+/dTT8QyajUm4nWt7BTfQo1D5efpqennHQNfjck70Y0TApNVZSnesFaVn3hNn1EaLwJ5KsubtQqdSUjiiA==
"@atlaskit/datetime-picker@^13.0.3":
version "13.0.3"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/datetime-picker/-/datetime-picker-13.0.3.tgz#36ed3ac39e2baac5e69580ee197be70c9e26fc49"
integrity sha512-xWo7faLWzOnNbpk1HcpkD0XyryPhmIWwA+ee4xSjIBnHhxTJAbUTH0CdpeYJ6sZqnm2HjmVdKDmMl6cDo61xpg==
dependencies:
"@atlaskit/analytics-next" "^9.1.0"
"@atlaskit/calendar" "^14.0.0"
Expand Down Expand Up @@ -536,16 +536,16 @@
shallow-equal "^1.0.0"

"@atlaskit/select@^17.0.0":
version "17.0.1"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/select/-/select-17.0.1.tgz#04de803672673ada760101f149d622a04275cb91"
integrity sha512-vh4UALGNoislGUSVt4VZXSrgYpGWnQn5jTQwlSkrX3hutkM3z/0P8YvoEdFPIAJHdu2ryg2nq3P1w7mwLwjWTQ==
version "17.0.3"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/select/-/select-17.0.3.tgz#03fbee4d6caa74c7ee4660107f3aaa42be9efd42"
integrity sha512-YEr7plvrlqw4z/dGc6srKZI8QsyBkMf63p7PAS7mLIYuAnPG1eONwcRoVLqBVeAJeWcK5is1GUdQM5Z6kdJ5xw==
dependencies:
"@atlaskit/analytics-next" "^9.1.0"
"@atlaskit/icon" "^22.0.0"
"@atlaskit/platform-feature-flags" "^0.2.0"
"@atlaskit/spinner" "^16.0.0"
"@atlaskit/theme" "^12.6.0"
"@atlaskit/tokens" "^1.28.0"
"@atlaskit/tokens" "^1.29.0"
"@atlaskit/visually-hidden" "^1.2.0"
"@babel/runtime" "^7.0.0"
"@emotion/react" "^11.7.1"
Expand Down Expand Up @@ -670,7 +670,7 @@
"@babel/types" "^7.20.0"
bind-event-listener "^2.1.1"

"@atlaskit/tokens@^1.28.0", "@atlaskit/tokens@^1.29.0":
"@atlaskit/tokens@^1.28.0":
version "1.29.0"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/tokens/-/tokens-1.29.0.tgz#812ddab4d1baacec80f57934b92823bb9fcfd6ba"
integrity sha512-VDSl6+HKwInNt9mHXO2M2wKlWDo9rCOFhcAbXD+V3z5AsM7ccjX7Dl9Z2H9lciV6o+pkS0FkdE83DfJVgCBiRg==
Expand All @@ -682,6 +682,18 @@
"@babel/types" "^7.20.0"
bind-event-listener "^2.1.1"

"@atlaskit/tokens@^1.29.0":
version "1.29.2"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/tokens/-/tokens-1.29.2.tgz#0f909d5315c002bcda6349039d11c544c0c23351"
integrity sha512-gxJSfvpDPmVDPt76swB1GFPhrAlKcKnmKtyP/I18amBbvvW3dmcPWJn94f1e78Aax363ozfcmGbsYj/NK3bZ6A==
dependencies:
"@atlaskit/ds-lib" "^2.2.0"
"@atlaskit/platform-feature-flags" "^0.2.0"
"@babel/runtime" "^7.0.0"
"@babel/traverse" "^7.23.2"
"@babel/types" "^7.20.0"
bind-event-listener "^2.1.1"

"@atlaskit/tokens@^1.4.0", "@atlaskit/tokens@^1.8.0":
version "1.10.1"
resolved "https://packages.atlassian.com/api/npm/npm-remote/@atlaskit/tokens/-/tokens-1.10.1.tgz#28e32d1205bf7f771e0f523dea17fbecac297bdb"
Expand Down

0 comments on commit 0b4d49f

Please sign in to comment.