Skip to content

Commit

Permalink
Merge branch 'master' into 11994/summary-validation-error
Browse files Browse the repository at this point in the history
  • Loading branch information
juliannaeapicella authored Dec 2, 2024
2 parents c129489 + 0329f51 commit 341173e
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 30 deletions.
48 changes: 30 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/common/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## @esri/hub-common [15.13.1](https://github.com/Esri/hub.js/compare/@esri/[email protected]...@esri/[email protected]) (2024-11-27)


### Bug Fixes

* **hub-common:** fix Events 3 create and edit form validations ([#1749](https://github.com/Esri/hub.js/issues/1749)) ([5a20b99](https://github.com/Esri/hub.js/commit/5a20b999ec88248c0beb16aed7ac4de365d14191))

# @esri/hub-common [15.13.0](https://github.com/Esri/hub.js/compare/@esri/[email protected]...@esri/[email protected]) (2024-11-25)


Expand Down
4 changes: 2 additions & 2 deletions packages/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@esri/hub-common",
"version": "15.13.0",
"version": "15.13.1",
"description": "Common TypeScript types and utility functions for @esri/hub.js.",
"main": "dist/node/index.js",
"module": "dist/esm/index.js",
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/events/_internal/EventSchemaCreate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const EventEditorTypes = [
export const buildSchema = (): IConfigurationSchema => {
const { startDate } = getDefaultEventDatesAndTimes();
return {
$async: true,
required: ["name", "startDate", "endDate"],
properties: {
name: ENTITY_NAME_SCHEMA,
Expand Down
1 change: 1 addition & 0 deletions packages/common/src/events/_internal/EventSchemaEdit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
*/
export const buildSchema = (): IConfigurationSchema => {
return {
$async: true,
required: ["name", "startDate", "endDate", "timeZone"],
properties: {
name: ENTITY_NAME_SCHEMA,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ describe("EventSchemaCreate", () => {
const res = buildSchema();
expect(getDefaultEventDatesAndTimesSpy).toHaveBeenCalledTimes(1);
expect(res).toEqual({
$async: true,
required: ["name", "startDate", "endDate"],
properties: {
name: ENTITY_NAME_SCHEMA,
Expand Down
10 changes: 1 addition & 9 deletions packages/common/test/events/_internal/EventSchemaEdit.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,9 @@ import {
describe("EventSchemaEdit", () => {
describe("buildSchema", () => {
it("should return the expected ui schema", async () => {
const datesAndTimes = {
startDate: "2024-03-31",
startDateTime: new Date(),
startTime: "12:00:00",
endDate: "2024-03-31",
endDateTime: new Date(),
endTime: "14:00:00",
timeZone: "America/New_York",
};
const res = buildSchema();
expect(res).toEqual({
$async: true,
required: ["name", "startDate", "endDate", "timeZone"],
properties: {
name: ENTITY_NAME_SCHEMA,
Expand Down

0 comments on commit 341173e

Please sign in to comment.