Skip to content

Commit a542032

Browse files
authored
Merge branch 'alpha' into codex/fix-textinput-resizing-issue-in-safari
2 parents e6118cc + b3413ba commit a542032

File tree

6 files changed

+36
-5
lines changed

6 files changed

+36
-5
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,6 @@ You can also specify custom fields with the `scrips` option:
453453

454454
```
455455

456-
457456
Next, define the Cloud Function in Parse Server that will be called. The object that has been selected in the data browser will be made available as a request parameter:
458457

459458
```js
@@ -1327,6 +1326,9 @@ In the example above, the query string will be escaped and added to the url, res
13271326
"browser/_Installation?filters=%5B%7B%22field%22%3A%22objectId%22%2C%22constraint%22%3A%22eq%22%2C%22compareTo%22%3A%22xWMyZ4YEGZ%22%2C%22class%22%3A%22_Installation%22%7D%5D"
13281327
```
13291328

1329+
> [!Tip]
1330+
> For guidance on how to create the URL query for a dashboard data browser filter, open the data browser and set the filter. Then copy the browser URL and unescape it. The query constraints in `?filters=[...]` will give you an idea of the constraint syntax.
1331+
13301332
# Contributing
13311333

13321334
We really want Parse to be yours, to see it grow and thrive in the open source community. Please see the [Contributing to Parse Dashboard guide](CONTRIBUTING.md).

changelogs/CHANGELOG_alpha.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# [7.3.0-alpha.24](https://github.com/parse-community/parse-dashboard/compare/7.3.0-alpha.23...7.3.0-alpha.24) (2025-07-19)
2+
3+
4+
### Features
5+
6+
* Add inclusive date filters "is on or after", "is on or before" in data browser ([#2929](https://github.com/parse-community/parse-dashboard/issues/2929)) ([c8d621b](https://github.com/parse-community/parse-dashboard/commit/c8d621b6e173621a01ee081b002f0673c4d90d91))
7+
18
# [7.3.0-alpha.23](https://github.com/parse-community/parse-dashboard/compare/7.3.0-alpha.22...7.3.0-alpha.23) (2025-07-19)
29

310

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "parse-dashboard",
3-
"version": "7.3.0-alpha.23",
3+
"version": "7.3.0-alpha.24",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/parse-community/parse-dashboard"

src/lib/Filters.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,18 @@ export const Constraints = {
7676
composable: true,
7777
comparable: true,
7878
},
79+
onOrAfter: {
80+
name: 'is on or after',
81+
field: 'Date',
82+
composable: true,
83+
comparable: true,
84+
},
85+
onOrBefore: {
86+
name: 'is on or before',
87+
field: 'Date',
88+
composable: true,
89+
comparable: true,
90+
},
7991
containsString: {
8092
name: 'contains string',
8193
field: 'String',
@@ -170,7 +182,15 @@ export const FieldConstraints = {
170182
Boolean: ['exists', 'dne', 'eq', 'neq', 'unique'],
171183
Number: ['exists', 'dne', 'eq', 'neq', 'lt', 'lte', 'gt', 'gte', 'unique'],
172184
String: ['exists', 'dne', 'eq', 'neq', 'starts', 'ends', 'stringContainsString', 'unique'],
173-
Date: ['exists', 'dne', 'before', 'after', 'unique'],
185+
Date: [
186+
'exists',
187+
'dne',
188+
'before',
189+
'onOrBefore',
190+
'after',
191+
'onOrAfter',
192+
'unique',
193+
],
174194
Object: [
175195
'exists',
176196
'dne',

src/lib/queryFromFilters.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,14 @@ function addConstraint(query, filter) {
127127
query.lessThan(filter.get('field'), filter.get('compareTo'));
128128
break;
129129
case 'lte':
130+
case 'onOrBefore':
130131
query.lessThanOrEqualTo(filter.get('field'), filter.get('compareTo'));
131132
break;
132133
case 'gt':
133134
query.greaterThan(filter.get('field'), filter.get('compareTo'));
134135
break;
135136
case 'gte':
137+
case 'onOrAfter':
136138
query.greaterThanOrEqualTo(filter.get('field'), filter.get('compareTo'));
137139
break;
138140
case 'starts':

0 commit comments

Comments
 (0)