diff --git a/backend/setup.py b/backend/setup.py index 6b05920f..2e627142 100644 --- a/backend/setup.py +++ b/backend/setup.py @@ -10,7 +10,7 @@ "flask_bcrypt", "flask_cors", "flask_mail", - "Flask>=2", + "Flask>=2,<2.3.0", "Flask-SQLAlchemy<3.0", "flatdict", "google-api-python-client", diff --git a/frontend/cypress.config.ts b/frontend/cypress.config.ts index 90a480f1..d333cb52 100644 --- a/frontend/cypress.config.ts +++ b/frontend/cypress.config.ts @@ -6,9 +6,10 @@ export default defineConfig({ framework: "create-react-app", bundler: "webpack", }, + specPattern: "src/**/*.cy.{js,jsx,ts,tsx}", + excludeSpecPattern: "**/node_modules/**", viewportHeight: 660, viewportWidth: 1000 }, video: false, - }, -); +}); diff --git a/frontend/package.json b/frontend/package.json index adf80e29..792f5f21 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -12,10 +12,10 @@ "@babel/preset-flow": "^7.18.6", "@babel/preset-react": "^7.18.6", "@greatsumini/react-facebook-login": "^2.1.5", - "@monaco-editor/react": "^4.4.6", + "@monaco-editor/react": "4.4.6", "@patternfly/patternfly": "^4.224.2", "@patternfly/react-charts": "^6.94.18", - "@patternfly/react-core": "^4.276.6", + "@patternfly/react-core": "^4.276.9", "@patternfly/react-icons": "^4.93.6", "@patternfly/react-styles": "^4.92.6", "@patternfly/react-table": "^4.112.39", diff --git a/frontend/src/components/add-token-modal.js b/frontend/src/components/add-token-modal.js index 0a8f1260..3602d58d 100644 --- a/frontend/src/components/add-token-modal.js +++ b/frontend/src/components/add-token-modal.js @@ -14,6 +14,15 @@ import { import { ExclamationCircleIcon } from '@patternfly/react-icons'; +function getToday() { + const now = new Date(); + return now.toISOString().split('T')[0]; +} + +function dateParse(val) { + return val && val.split('-').length === 3 && new Date(`${val}T00:00:00`); +} + export class AddTokenModal extends React.Component { static propTypes = { onSave: PropTypes.func, @@ -25,7 +34,7 @@ export class AddTokenModal extends React.Component { super(props); this.state = { name: '', - expiryDate: '', + expiryDate: getToday(), isNameValid: true, isExpiryValid: true }; @@ -115,12 +124,17 @@ export class AddTokenModal extends React.Component { > document.getElementById('add-token-modal')} + dateParse={dateParse} onChange={this.onExpiryDateChange} value={this.state.expiryDate} inputProps={{ id: "token-expiry-date", validated: this.state.isExpiryValid ? ValidatedOptions.default : ValidatedOptions.error }} + popoverProps={{ + enableFlip: false, + position: 'bottom' + }} /> diff --git a/scripts/make-release.sh b/scripts/make-release.sh index 895b04ed..0041811b 100755 --- a/scripts/make-release.sh +++ b/scripts/make-release.sh @@ -104,7 +104,7 @@ if [[ "$CAN_COMMIT" = true ]]; then git add . > /dev/null 2>&1 COMMIT_MSG="Release $NEW_VERSION" if [[ $GENERATE_CHANGELOG = true ]]; then - COMMIT_MSG="$COMMIT_MSG\n\n$CHANGELOG" + COMMIT_MSG="$COMMIT_MSG"$'\n\n'"$CHANGELOG" fi git commit -q -m "$COMMIT_MSG" echo "done, new branch created: $BRANCH_NAME"