Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the application section to support SSO integration templates #5896

Merged
merged 133 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from 123 commits
Commits
Show all changes
133 commits
Select commit Hold shift + click to select a range
3d0b2f0
implement components for dynamically generating fields in the applica…
DilshanSenarath Mar 29, 2024
fc00a6e
complete the template grid implementation
DilshanSenarath Apr 3, 2024
c2b157a
resolve merge conflicts and changes
DilshanSenarath Apr 4, 2024
3666024
implement categorization for application templates view
DilshanSenarath Apr 5, 2024
0876cb3
add supported categorization
DilshanSenarath Apr 8, 2024
906e409
fix tmeplate filtering issue
DilshanSenarath Apr 9, 2024
a6f4e77
improve application list and connected apps views
DilshanSenarath Apr 9, 2024
42ce81c
implement dynamic app creation wizard
DilshanSenarath Apr 14, 2024
be76ff0
fix the validation issue and i18n content
DilshanSenarath Apr 15, 2024
c756fc8
fix submission issues of dynamic application create wizard
DilshanSenarath Apr 16, 2024
8a51eef
fix connections connected-apps tab issue
DilshanSenarath Apr 16, 2024
aa7e3df
implement common feature providers component
DilshanSenarath Apr 16, 2024
37afa1b
implement dynamic tab conrtrolling mechanism
DilshanSenarath Apr 17, 2024
a1cb3e5
implement dynamic application edit form and guide
DilshanSenarath Apr 19, 2024
fc721c2
fix the types issues of dynamic forms
DilshanSenarath Apr 19, 2024
29c8270
implement internal tab redirection for resorce tab panes
DilshanSenarath Apr 21, 2024
3c3975e
add default props for the resource tab component
DilshanSenarath Apr 21, 2024
b4cf969
fix the import issue
DilshanSenarath Apr 21, 2024
096f058
Change the implementation to use the minimal app creation wizard if t…
DilshanSenarath Apr 22, 2024
b962a57
add i18n and documnetation links
DilshanSenarath Apr 22, 2024
4ef768c
merge local changes with master branch
DilshanSenarath Apr 22, 2024
6c3e11b
add sso template resources
DilshanSenarath Apr 25, 2024
6dbf08c
Merge branch 'master' into sso-templates
DilshanSenarath May 13, 2024
d63f037
add unit test for application templates provider
DilshanSenarath May 15, 2024
3bc693e
fix eslint errors
DilshanSenarath May 15, 2024
27c7b1c
add test for the application list component
DilshanSenarath May 16, 2024
b44ee91
add export to the application list props interface
DilshanSenarath May 16, 2024
8109715
add unit test
DilshanSenarath May 17, 2024
b9c2c0c
add a custom script to the body before rendering component
DilshanSenarath May 17, 2024
6ebfb33
add the script to the head element
DilshanSenarath May 17, 2024
86d2aaf
change the application creation adapter test
DilshanSenarath May 17, 2024
b7fe4f0
mock the dynamic aplication create wizard
DilshanSenarath May 17, 2024
a7b9183
declare the global variable
DilshanSenarath May 17, 2024
1b7302c
Merge branch 'wso2:master' into sso-templates
DilshanSenarath May 20, 2024
68e7f15
update the application creation adapter unit test
DilshanSenarath May 20, 2024
adee90f
add unit test for the application-create-wizard component
DilshanSenarath May 21, 2024
96ade48
add unit tests
DilshanSenarath May 21, 2024
884105f
add unit test for field validations
DilshanSenarath May 22, 2024
d1f7737
add unit tests for the application templates selection page component
DilshanSenarath May 25, 2024
32078ac
add unit tests for the application templates management utils
DilshanSenarath May 25, 2024
4c3b468
add unit tests for the build callback url function
DilshanSenarath May 25, 2024
218c0fa
Merge branch 'master' into sso-templates
DilshanSenarath May 25, 2024
1249899
fix the unit test failures
DilshanSenarath May 25, 2024
3a11371
fix the eslint issue
DilshanSenarath May 25, 2024
e5ffb07
refactor the unit test mocks
DilshanSenarath May 25, 2024
8ad1429
refactor the code
DilshanSenarath May 26, 2024
492a028
Merge branch 'master' into sso-templates
DilshanSenarath May 26, 2024
46e789c
refactor the code
DilshanSenarath May 26, 2024
1d4d81e
Add changeset 🦋
DilshanSenarath May 26, 2024
b546698
change the import in test configs
DilshanSenarath May 26, 2024
0c5a5a5
Merge branch 'master' into sso-templates
DilshanSenarath May 26, 2024
b706ee4
add templateId when creating apps
DilshanSenarath May 27, 2024
e095a36
update unit test
DilshanSenarath May 27, 2024
030fd6b
Merge branch 'master' into sso-templates
DilshanSenarath Jun 12, 2024
d83b239
merge master branch with the feature branch
DilshanSenarath Jul 3, 2024
8218d14
add the poc solution implementation
DilshanSenarath Jul 4, 2024
2bf533a
merge feature branch with master
DilshanSenarath Jul 4, 2024
beb96dc
refcator the application templates provider
DilshanSenarath Jul 8, 2024
00a28e0
add template providers
DilshanSenarath Jul 8, 2024
391d2b0
refactor the code to use template providers
DilshanSenarath Jul 9, 2024
e9b73db
refactor the code
DilshanSenarath Jul 9, 2024
a141479
fix the import paths
DilshanSenarath Jul 9, 2024
f084278
remove unused files
DilshanSenarath Jul 9, 2024
ad11e69
refactor the markdown guide
DilshanSenarath Jul 10, 2024
82bd8f7
clean the application utils
DilshanSenarath Jul 10, 2024
494ff56
refactor the for life cycle handling
DilshanSenarath Jul 10, 2024
4d09840
complete refactoring of application create wizard
DilshanSenarath Jul 11, 2024
f35e0b2
refactor the application edit form
DilshanSenarath Jul 12, 2024
6f2a426
complete refactoring of the dynamic application edit form
DilshanSenarath Jul 12, 2024
c14ee13
refactor the markdown guide
DilshanSenarath Jul 13, 2024
f96d5e3
remove unnecessary api calls
DilshanSenarath Jul 14, 2024
9aa5c0d
clean the code base
DilshanSenarath Jul 14, 2024
dfcf7e0
add missing semi colon
DilshanSenarath Jul 14, 2024
50ca723
add support to hide the application tab components through template
DilshanSenarath Jul 14, 2024
a0596f9
merge development branch with master branch
DilshanSenarath Jul 14, 2024
97edf15
revert pnpm lock file changes
DilshanSenarath Jul 14, 2024
8ce2b47
fix the import issue in unit test
DilshanSenarath Jul 14, 2024
126a8ff
add pnpm lock changes
DilshanSenarath Jul 14, 2024
ce62d7a
fix the linting erros
DilshanSenarath Jul 14, 2024
a55e4b5
add file picker adapter component
DilshanSenarath Jul 15, 2024
aea13ac
downgrade the eslint version
DilshanSenarath Jul 15, 2024
23780f4
update pnpm lock file
DilshanSenarath Jul 15, 2024
41f8393
remove unnecessary resources
DilshanSenarath Jul 15, 2024
ca6af9c
convert markdown to have similar behaviour as in standard markdown
DilshanSenarath Jul 16, 2024
d45293a
add feature status label to the application template card
DilshanSenarath Jul 16, 2024
76f3f34
refactor the application edit tab forms
DilshanSenarath Jul 16, 2024
13c95d6
merge the development branch with master branch
DilshanSenarath Jul 17, 2024
05b4813
move unit test code into seperate PR
DilshanSenarath Jul 17, 2024
d78b7b1
fix the package json issue
DilshanSenarath Jul 17, 2024
31202b5
fix the lint issues
DilshanSenarath Jul 17, 2024
e8eac36
fix the lint issues
DilshanSenarath Jul 17, 2024
146ece6
mock the react-markdown module
DilshanSenarath Jul 18, 2024
8c10e02
merge master branch with development branch
DilshanSenarath Jul 18, 2024
00ee3fb
Add changeset 🦋
DilshanSenarath Jul 18, 2024
c24a64e
fix license header issues in svg images
DilshanSenarath Jul 18, 2024
2253e2e
remove defaultProps from functional components
DilshanSenarath Jul 19, 2024
e701ae4
remove common-feature-provider
DilshanSenarath Jul 19, 2024
0cee40b
address code review comments
DilshanSenarath Jul 19, 2024
e94a20c
merge development branch with master branch
DilshanSenarath Jul 19, 2024
05c3686
merge development branch with master
DilshanSenarath Jul 24, 2024
f879fd3
add pnpm lock changes
DilshanSenarath Jul 24, 2024
4af30d6
merge development branch with master
DilshanSenarath Jul 24, 2024
71394fd
change the directory structure of handlers
DilshanSenarath Jul 24, 2024
5ad79b4
change the directory structure of handlers
DilshanSenarath Jul 24, 2024
184e369
add a constant to holder the protocol keys
DilshanSenarath Jul 24, 2024
bd0cc60
add state data types
DilshanSenarath Jul 24, 2024
66cb2e1
update any data type to unknown
DilshanSenarath Jul 24, 2024
a2f9bdd
update hasRequiredScopes to useRequiredScopes
DilshanSenarath Jul 24, 2024
4630290
add border disabling support for markdown image
DilshanSenarath Jul 24, 2024
3332643
improve readability of the code
DilshanSenarath Jul 24, 2024
aa88229
rename the enum
DilshanSenarath Jul 24, 2024
350c50b
change the import line
DilshanSenarath Jul 24, 2024
bf53b37
change the method formating
DilshanSenarath Jul 24, 2024
fc420ca
fix equal opertaion issue
DilshanSenarath Jul 24, 2024
b7f6e9e
remove unnecessary spaces
DilshanSenarath Jul 24, 2024
f29d03c
remove unnecessary changes
DilshanSenarath Jul 24, 2024
00bd4f2
add minor formatting fixes
DilshanSenarath Jul 24, 2024
d7fad44
add optional chaining
DilshanSenarath Jul 24, 2024
a80d626
merge development branch with master
DilshanSenarath Jul 24, 2024
0f30bba
fix the es-lint issues
DilshanSenarath Jul 24, 2024
6c4b2c9
fix the exisiting unit tests
DilshanSenarath Jul 24, 2024
67d7fc4
add empty mock component
DilshanSenarath Jul 24, 2024
202ff7c
add template version support when creating applications
DilshanSenarath Jul 25, 2024
7c81c22
fix the copyright year
DilshanSenarath Jul 25, 2024
a35ac06
add a new line
DilshanSenarath Jul 25, 2024
77bf3be
change the markdown exports
DilshanSenarath Jul 30, 2024
971af90
merge development branch with master
DilshanSenarath Aug 2, 2024
13be80d
fix string concate issue
DilshanSenarath Aug 4, 2024
325dbf1
Merge remote-tracking branch 'upstream/master' into sso-templates
DilshanSenarath Aug 9, 2024
265a8d9
merge master branch
DilshanSenarath Aug 9, 2024
6204407
set initial version to 0.0.0
DilshanSenarath Aug 9, 2024
2df56be
set initial version to 0.0.0
DilshanSenarath Aug 9, 2024
c6364a2
add major bump for new components
DilshanSenarath Aug 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/fast-rules-complain.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
"@wso2is/admin.applications.v1": minor
"@wso2is/console": minor
"@wso2is/admin.application-templates.v1": patch
"@wso2is/admin.template-core.v1": patch
"@wso2is/admin.connections.v1": patch
"@wso2is/admin.extensions.v1": patch
"@wso2is/admin.core.v1": patch
"@wso2is/unit-testing": patch
"@wso2is/i18n": patch
---

Update the application section to support SSO integration templates
7 changes: 7 additions & 0 deletions .changeset/giant-crabs-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@wso2is/react-components": minor
---

- Improve the React Markdown component to have the documentation theme
- Add support for automatic tab redirection based on tab ID
- Enhance the link component to include a title attribute
5 changes: 5 additions & 0 deletions .changeset/rich-buses-matter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/form": minor
---

Add a file-picker adapter and update the style of the text field adapter for read-only mode
Original file line number Diff line number Diff line change
Expand Up @@ -1683,6 +1683,13 @@
{% endfor %}
{% endif %}
],
"hiddenApplicationTemplates": [
{% if console.ui.hiddenApplicationTemplates is defined %}
{% for value in console.ui.hiddenApplicationTemplates %}
"{{ value }}"{{ "," if not loop.last }}
{% endfor %}
{% endif %}
],
"hiddenUserStores": [
{% if console.ui.hidden_user_stores is defined %}
{% for value in console.ui.hidden_user_stores %}
Expand Down
4 changes: 3 additions & 1 deletion apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@
"slashes": "^2.0.2",
"styled-components": "^4.4.1",
"swr": "^2.0.0",
"uuid": "^8.3.0"
"uuid": "^8.3.0",
"@wso2is/admin.application-templates.v1": "^1.0.0",
"@wso2is/admin.template-core.v1": "^1.0.0"
},
"devDependencies": {
"@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
Expand Down
86 changes: 47 additions & 39 deletions apps/console/src/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

import { BasicUserInfo, DecodedIDTokenPayload, useAuthContext } from "@asgardeo/auth-react";
import { AccessControlProvider, AllFeatureInterface, FeatureGateInterface } from "@wso2is/access-control";
import { ApplicationTemplateConstants } from "@wso2is/admin.application-templates.v1/constants/templates";
import { EventPublisher, PreLoader } from "@wso2is/admin.core.v1";
import { ProtectedRoute } from "@wso2is/admin.core.v1/components";
import { Config, DocumentationLinks } from "@wso2is/admin.core.v1/configs";
Expand All @@ -34,6 +35,8 @@ import { AppState } from "@wso2is/admin.core.v1/store";
import { commonConfig } from "@wso2is/admin.extensions.v1";
import { useGetAllFeatures } from "@wso2is/admin.extensions.v1/components/feature-gate/api/feature-gate";
import { featureGateConfig } from "@wso2is/admin.extensions.v1/configs/feature-gate";
import { ResourceTypes } from "@wso2is/admin.template-core.v1/models/templates";
import ExtensionTemplatesProvider from "@wso2is/admin.template-core.v1/provider/extension-templates-provider";
import { AppConstants as CommonAppConstants } from "@wso2is/core/constants";
import { IdentityAppsApiException } from "@wso2is/core/exceptions";
import { CommonHelpers, isPortalAccessGranted } from "@wso2is/core/helpers";
Expand Down Expand Up @@ -466,46 +469,51 @@ export const App: FunctionComponent<Record<string, never>> = (): ReactElement =>
</Trans>)
}
/>
<Switch>
<Redirect
exact
from="/"
to={ AppConstants.getAppHomePath() }
/>
{
baseRoutes.map((route: RouteInterface, index: number) => {
return (
route.protected ?
(
<ProtectedRoute
component={ route.component }
path={ route.path }
key={ index }
exact={ route.exact }
/>
)
:
(
<Route
path={ route.path }
render={
(props: RouteComponentProps<
{ [p: string]: string },
StaticContext, unknown
>) => {
return (<route.component
{ ...props }
/>);
<ExtensionTemplatesProvider
resourceType={ ResourceTypes.APPLICATIONS }
categories={ ApplicationTemplateConstants.SUPPORTED_CATEGORIES_INFO }
>
<Switch>
<Redirect
exact
from="/"
to={ AppConstants.getAppHomePath() }
/>
{
baseRoutes.map((route: RouteInterface, index: number) => {
return (
route.protected ?
(
<ProtectedRoute
component={ route.component }
path={ route.path }
key={ index }
exact={ route.exact }
/>
)
:
(
<Route
path={ route.path }
render={
(props: RouteComponentProps<
{ [p: string]: string },
StaticContext, unknown
>) => {
return (<route.component
{ ...props }
/>);
}
}
}
key={ index }
exact={ route.exact }
/>
)
);
})
}
</Switch>
key={ index }
exact={ route.exact }
/>
)
);
})
}
</Switch>
</ExtensionTemplatesProvider>
</>
</SessionManagementProvider>
</AccessControlProvider>
Expand Down
2 changes: 1 addition & 1 deletion apps/console/src/configs/routes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ export const getAppViewRoutes = (): RouteInterface[] => {
category: "console:develop.features.sidePanel.categories.application",
children: [
{
component: lazy(() => import("@wso2is/admin.applications.v1/pages/application-template")),
component: lazy(() => import("@wso2is/admin.application-templates.v1/pages/application-template")),
exact: true,
icon: {
icon: getSidePanelIcons().childIcon
Expand Down
1 change: 1 addition & 0 deletions apps/console/src/public/deployment.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -1100,6 +1100,7 @@
"gravatarConfig": {
"fallback": "404"
},
"hiddenApplicationTemplates": [],
"hiddenAuthenticators": [
"BasicAuthRequestPathAuthenticator",
"OAuthRequestPathAuthenticator"
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading