Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…into nm/acessible-tiles
  • Loading branch information
nimam-bentley committed Jan 16, 2025
2 parents 921b8c2 + 50fc03b commit 288c458
Show file tree
Hide file tree
Showing 8 changed files with 52 additions and 6 deletions.
2 changes: 1 addition & 1 deletion packages/apps/storybook/.env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Registered client which have access to scopes "imodels:read", "imodels:modify", "itwins:read" and "itwins:modify", redirectUrl should be http://localhost:6006/signin-oidc.html
# Registered client which has access to the "itwin-platform" scope, redirectUrl should be http://localhost:6006/signin-oidc.html
# Please create .env.local file and put the client id there to avoid accidentally commiting this file.
STORYBOOK_AUTH_CLIENT_ID=
2 changes: 1 addition & 1 deletion packages/apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"@itwin/create-imodel-react": "^2.0.0",
"@itwin/delete-imodel-react": "^2.0.0",
"@itwin/delete-itwin-react": "^2.0.0",
"@itwin/imodel-browser-react": "~2.2.1",
"@itwin/imodel-browser-react": "~2.3.0",
"@itwin/itwinui-react": "^2.12.18",
"@itwin/manage-versions-react": "~2.0.0",
"@itwin/storybook-auth-addon": "^0.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,3 +299,9 @@ export const WithPostProcessCallback: Story<ITwinGridProps> =
WithPostProcessCallback.args = {
apiOverrides: { serverEnvironmentPrefix: "qa" },
};

export const FetchAllSubclasses = Template.bind({});
FetchAllSubclasses.args = {
apiOverrides: { serverEnvironmentPrefix: "qa" },
iTwinSubClass: "All",
};
24 changes: 24 additions & 0 deletions packages/modules/imodel-browser/CHANGELOG.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
{
"name": "@itwin/imodel-browser-react",
"entries": [
{
"version": "2.3.0",
"tag": "@itwin/imodel-browser-react_v2.3.0",
"date": "Wed, 15 Jan 2025 16:32:32 GMT",
"comments": {
"minor": [
{
"comment": "add ITwinSubClass \"All\" option to fetch all itwins regardless of subclass"
}
]
}
},
{
"version": "2.2.2",
"tag": "@itwin/imodel-browser-react_v2.2.2",
"date": "Fri, 10 Jan 2025 14:12:35 GMT",
"comments": {
"patch": [
{
"comment": "added accessibility to grid tiles"
}
]
}
},
{
"version": "2.2.1",
"tag": "@itwin/imodel-browser-react_v2.2.1",
Expand Down
16 changes: 15 additions & 1 deletion packages/modules/imodel-browser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,20 @@
# Change Log - @itwin/imodel-browser-react

This log was last generated on Thu, 09 Jan 2025 03:49:28 GMT and should not be manually modified.
This log was last generated on Wed, 15 Jan 2025 16:32:32 GMT and should not be manually modified.

## 2.3.0
Wed, 15 Jan 2025 16:32:32 GMT

### Minor changes

- add ITwinSubClass "All" option to fetch all itwins regardless of subclass

## 2.2.2
Fri, 10 Jan 2025 14:12:35 GMT

### Patches

- added accessibility to grid tiles

## 2.2.1
Thu, 09 Jan 2025 03:49:28 GMT
Expand Down
2 changes: 1 addition & 1 deletion packages/modules/imodel-browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@itwin/imodel-browser-react",
"description": "Components that let the user browse the iModels of a context and select one.",
"repository": "https://github.com/iTwin/admin-components-react/tree/main/packages/modules/imodel-browser",
"version": "2.2.1",
"version": "2.3.0",
"main": "cjs/index.js",
"module": "esm/index.js",
"types": "cjs/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export const useITwinData = ({
const endpoint = ["favorites", "recents"].includes(requestType)
? requestType
: "";
const subClass = `?subClass=${iTwinSubClass}`;
const resolvedITwinSubClass = iTwinSubClass === "All" ? "" : iTwinSubClass;
const subClass = `?subClass=${resolvedITwinSubClass}`;
const paging = `&$skip=${page * PAGE_SIZE}&$top=${PAGE_SIZE}`;
const search =
["favorites", "recents"].includes(requestType) || !filterOptions
Expand Down
3 changes: 2 additions & 1 deletion packages/modules/imodel-browser/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ export type ITwinSubClass =
| "Asset"
| "Portfolio"
| "Program"
| "WorkPackage";
| "WorkPackage"
| "All";
export type ITwinClassType = "Thing" | "Endeavor";
export type ITwinStatus =
| "Active"
Expand Down

0 comments on commit 288c458

Please sign in to comment.