Commit Graph

19 Commits

Author SHA1 Message Date
dependabot[bot] d84c3a6a0f
Bump prettier from 3.2.2 to 3.2.3 (#2163)
* Bump prettier from 3.2.2 to 3.2.3

Bumps [prettier](https://github.com/prettier/prettier) from 3.2.2 to 3.2.3.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.2.2...3.2.3)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* fixed format

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2024-01-17 10:53:32 +00:00
Aswin V a5ac299bbb
Bootstrap ui sdk development with Login component (#735)
* Push sdk folder

* Ignore `sdk` from root tsconfig

* Add postcss config

* Tweaks to the vite setup

* Cleanup and add `Login` component

* Test

* Undo test commit

* Turn off next linter rule for sdk

* Tweaks to component doc

* Add dom libs to tsconfig

* html id generation

* Component WIP

* Update tsconfig and lock file

* Refactor

* Tweak props and handle error display

* Simplify `useId` hook

* Update JSDOC

* Remove ErrorDisplayComponent prop

* Minor refactor

* Refactor id generation, add jsdoc

* Support styling via props and add default styles

* Sync lock files

* More default styles for input

* Sync lock file

* Tweak box-shadow

* Minor tweak comment

* WIP

* Update package name and lock file

* Update vite config fileName

* Exclude type emit for internal components

* Tweak package.json

* Rename `react-ui`

* Add repo and bugs fields

* Fix import name and jsdoc

* Support `unstyled` prop

* Tweak README and docs

* Minor tweaks

* Tweak README and update favicon

* Add workflow for npm publish

* Update build script and use node 16

* Add trigger on push

* Add dev dependencies to fix failing build

* Add missing dev dependency

* set access to public

* Move react & others to dev dependencies

* Fix main,module,exports in package.json

* Include types in package.json

* Fix types path

* Fix return type for `forwardTenant`

* Include react as a peer dependency

* Add react plugin to vite

* Handle `undefined`

* Inject defaultStyles into build

* Update tsconfig

* Update homepage

* Update type to void for no return

* Update usage

* [skip ci] update lock file

* [skip ci] Merge branch 'main' into 702-react-sdk-login

* WIP tweak component

* Handle submission state, align focus styles

* Sync lock file

* Swap ::set-output with `$GITHUB_OUTPUT`

* Use ci job output for getting npm version and publish tag

* trigger sdk jobs on `workflow_call`

* Use sdk workflow

* Fix workflow path

* Replace version in sdk package.json

* Move condition to sdk workflow

* Update vite to v4 and cleanup dependencies

* Publish a beta version for testing

* Revert removal of autoprefixer

* Update node version and inherit secrets

* Tweaks

* Update SDK README

* Revert changes related to testing

* Align border-radius with boxyhq ui

* Temporarily allow publish

* Style alignment with boxyhq ui

* - Update default styling to that of a b/w look
- Support style attr for container
- Tweak types
- Support CSS vars on container element to
style input and button outlines plus button hover

* Accept any color format

* Tweak README and demos

* Support spreading props for input/button

* Tweak style injection so that userland classes
load later and override the default styles

* Try non injection of css

* Add style.css to exports and files

* Formatting change

* Add styling section

* Bump up version

* - Use defaultClasses only if custom classes
are not set
- Remove `unstyled` prop

* Update demos

* Add style for disabled state

* Tweak README

* Bring back css injection

* Remove style from files and exports fields

* Scope css properties to appropriate inner elements

* Remove css properties

* Bump version

* Support HTMLAttributes for container and label also

* Prep for release

* Export types from entry point file

* Tweak for local usage via npm linking

* Replace package.json fields before publish

* Tweak demos

* updated dependabot for new package.json

* fixed yaml

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2023-01-11 22:16:23 +00:00
Aswin V 00dce93bdf
Fix duplicate key in tsconfig.json (#806) 2023-01-03 21:14:03 +00:00
Utkarsh Mehta 0d7fac092b
Retraced Admin UI (#452)
* Merged

* Revert the changes

* changes

* dropdown working

* fixes

* added custom classes for log viewer

* Create Project & styling fixes

* Update package-lock.json

* fixed react datepicker css issues

* Showing apis keys after project is created

* View tokens page

* minor changes

* masking for tokens

* warning fixes

* Fix the sidebar active state

* wip

* wip

* wip

* Showing publisher api url

* Fixed create new projects and list projects

* Improved the ProjectInfo page

* Fix the copy to clipboard button

* Add the codesnippet

* wip

* wip UI

* Improve the code snippet

* Fixes and improve the UIs

* Replace the product logos

* Set the group null

* Fix the conflicts

* Fix the heroicons

* Remove the unused method

* Make the ProjectDetails 2 columns

* Fix the logs-viewer not displaying

* read event log from admin-ui

* Jackson docker compose file & retraced integration related changes

* minor fix

* fixes for created key of audit log

* fixed the expiry for self signed certificate

* using node forge for self signed certs

* Revert "using node forge for self signed certs"

This reverts commit c027b5b7ce.

* fix

* package lock changes

* installed missing dependancies and added new packages

* minor fixes

* fixes

* added missing translations for retraced pages

* - pin deps
- removed react-copy-to-clipboard, react-host-toast

* fixed typo

* cleanup

* tweak

* switched to ButtonIcon

* switch to button components and added back buttons where needed

* checking npm ci

* simplified env vars for Retraced

* tweaks

* If Retraced host is not specified then show a message

* added audit logs logo

* - added admin_token to bypass user and project specific queries
- fixed project details view to read any length for environments

* switched to daisyui Select

* fixed auth check for api routes, get email for claims from the jwt

* updated package-lock

* switched to clipboard component

* tweaks to CodeSnippet

* padding tweaks

* updated package-lock

* updated package-lock

* fixed z-index for modal in logs-viewer

* select -> Select

Co-authored-by: Kiran <kiran@boxyhq.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2022-12-30 17:02:16 +00:00
Kiran K 7287a6bb37
Federated SAML (#685)
* Add alert component

* Add a loading state component

* Now Emptystate accept an optional prop description

* SAML federation create app controller

* Add the UI to create and list SAML federation apps

* Create SAML federation app and metadata

* wip

* wip

* wip

* Cleanup

* Fix the return values

* Delete the session after the SAML response is sent to the user

* wip

* Revert the changes to the ConnectionAPIController

* wip - IdP selection, session fixes

* Fix the flow

* Refactor

* Refactor

* wip

* Refactor the idp selection page - wip

* Refactor

* Refactor the resolve connection

* Refactor the idp selection

* Refactor the idp/app selection and other fixes

* wip

* Refactor

* Refactor the SAML response handling to merge the logic

* Rename the methods

* Move the saml federation to /ee folder

* Fix the imported types

* wip

* wip /ee

* Move the federated SAML UI to /ee

* Move to /ee folder

* wip admin portal

* Delete the SAML federation app

* Rename the controllers

* Add the translation

* Add the proper license check

* Add the unit tests

* tweaks to test

* tweaks to test

* Changes to the controller and other cleanup

* Fix API routes headers

* Use new toast

* Add button to download cert

* Tweaks

* log cleanup

* saml federation is part of enterprise sso

* entityID now contains the unique hash needed for each tenant + product combination

* cleanup

* cleanup

* we don't need a unique entityID

* text tweaks

Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
2022-12-16 15:38:59 +00:00
Deepak Prabhakara cf68288347
enable sourcemaps (#701) 2022-11-24 21:27:02 +00:00
Deepak Prabhakara c947ff5e0d
Update Typeorm (#135)
* updated typeorm

* renamed connection

* updated migration scripts to new TypeORM version (v3)

* synchronize for now, need to sort out instructions for running migration scripts and also a way to run migration when the service starts

* verbose logging for migrations

* exclude typeorm.ts from the build
2022-03-31 12:58:47 +01:00
vishalboxyhq 3313580ed8
Redis,Mem DB pagination, mongo init function changes and some unit test cover (#129)
* Redis,Mem DB pagination, mongo inti func change

* spelling correction and add comment

* spelling coreection

* add downlevelIteration for mem.ts

* add downlevelIteration for mem.ts in main tsconfig
2022-03-29 16:28:33 +01:00
Aswin V bd44c3479c
Admin interface for Jackson (#71)
* NextAuth + users providers

* Add a temporary fix for verification token - don't use it in production

* Admin ui files

* Admin controller

* getAll db apis

* IdP provider page and api route

* Fix padding

* Style fixes

* middleware to check session

* Loading state handling

* fetcher better response handling

* Add new provider form and api route

* Tab panel in client add form

* Tab switching plus new fields

* Flowbite config

* darkMode with flowbite

* Save config

* Update route path to saml

* Reusable component for add/edit

* cleanup

* Set Secret in NextAuth options

* Prettier lint changes

* Support for delete operation

* Link update

* PopUp Modal reusable component

* Popup confirm before delete

* disable SWR revalidation on focus

* Display IdP metadata, clientID,secret

* Header fixed positioning and style fixes

* Filter raw XML in edit mode

* Add name field to config

* - Edit/New form delta
- Split by newline
- Route back after POST

* Remove flowbite

* Remove flowbite [cleanup]

* Add description field

* updateConfig implementation

* Route PATCH to updateConfig

* Naming change

* Naming Client -> Connection

* AddEdit component updates

* Omit provider, returns full config

* Destructure session first

* Change to domain ACL

* Delete unused component

* Support glob and list of emails for ACL

* Delete unused CSS

* Update package lock

* Remove flowbite from content source

* Redirect to admin route

* Check session in Layout and redirect to login

* Logout in dropdown

* vertical alignment

* Show status message on save (edit)

* Consolidate fields to one long vertical column

* GetAll function for SQL and Add CreationDate and Modification Date for Mongo and SQL

* Add name as header

* Styling and opacity transition for status

* Configure button style fix

* overflow for smaller viewports and rounded border

* Fallback to default behavior of useSession

* Store, use and dispose (after signIn)
verification token in db

* Remove unused class

* Rename Connections ➡ Configurations

* Handle getAll and getConfig using slug

* Better naming

* Update fetch paths

* Refactor getAllConfig ➡ getConfig (By Id)

* Better naming

* Rename saml ➡ samlconf

* Use light theme by not defaulting to system theme

* Path update /samlconf ➡ /saml/config

* Fix path

* Revert manual changes

* getall funcationality and migration  script

* message

* Updating migration file formating

* message

* Pull and fix package.json and lock file

* correcting the migration script formatting

* remove file

* add new migration files

* e2e with playwright

* Better naming

* Remove comment

* Make headless

* Run npm install from root

* Add e2e steps in workflow

* try with separate npm installs

* Move higher in the pipeline to test

* Fix quote

* Rely on npx

* fixed migration script formatting

* spelling correction

* headless for CI but false for local

* Use secret

* Type fixes for mongo

* [skip ci] Swagger annotation for getConfig

* Adding migration scriptis for all db's

* added migration script to prettierignore

* unformat migration script

* removing postgress migration files

* generate new migration files

* remove wrong migration files

* Add new migration files  for mysql and mariadb

* [skip ci] Swagger annotation for updateConfig

* Return empty for update op

* Update swagger spec

* Fix type

* Wait for mongo to start

* Fix db_engine

* Test with pg

* Test with POSTGRES_DB env to auto create db

* Swap install-deps with install

* Use prod build

* enable @ts-ignore

* Test some fixes

* Can be omitted in next-auth v4, uses secret

* Move env to playwright config

* authDbSeed script needs the db and other secrets

* Typo

* Bad typo day 😅

* Again typo

* Set NEXTAUTH_URL

* Use prod build in CI

* Prefix the env for seeding

* Try with inline

* tidying up migration scripts

* fixed migration scripts

* Set env in actions yml

* Remove comma

* Target chromium

* Prefix the env

* Try inline in playwright

* print env

* Move build to action step

* Remove console log

* Let env sit on the job level

* Add ACL

* Fix attribute check

* Add name field

* add name in metadata preload config

* Use postgres

* Remove unneeded secret

* Remove env/options from mongo service

* Fix swagger

* Update swagger spec

* [skip ci] Fix eslint warning

* Add updateConfig test

* Add description to preloaded config

* [skip ci] cleanup

* minor fix

* Update comment

* Expose PATCH in config api

* Added missing validation for clientSecret

* Update swagger spec

* updated example postgres url, updated deps

* Redirect to saml config route

* Remove unused pages/routes

* Update in package lock

* Add primary and secondary colors to tailwind

* Swap icon

* Remove text-color and apply default theme

* Use the primary color from theme

* Reusable custom class for btn-primary

* Add link-primary reusable class

* Use primary secondary colors for main logo

* Show error status & color align with primary color

* Show product if name is absent

* Simplify required attribute setting,
'description' is not required

* Make description optional

* Fix placeholder text

* Swagger updates

* Add validation for description

* Swagger - add missing status codes & descriptions

* Update swagger artifact

* Fix styling for status message

* revalidate config on successful save

* style text highlight globally

* Fix cancel button style

* Set the main height to 100%-headerHeight,
add overflow

* removed default ACL, if someone forgets to change it then we might have Tony Stark logging into everyones instances :)

* print the arch/platform

* Collect platform info

* Disable swc and remove platform query steps

* Try with custom babel config to disable swc

* Add next.js build cache

* Refactor step

* trying swc

* Make name parameter optional

* Update form state from backend after save

* port 5000 -> 5225

* Handle empty value case for ACL

* bumped up version

Co-authored-by: Kiran <kiran@boxyhq.com>
Co-authored-by: Vishal Lodha <vishal@boxyhq.com>
Co-authored-by: Deepak Prabhakara <deepak@boxyhq.com>
Co-authored-by: Utkarsh Mehta <ukrocks.mehta@gmail.com>
2022-02-22 19:03:21 +00:00
Deepak Prabhakara 3754f2b13d
Next.js service (#53)
* moved jackson-next to this repo

* fixed working-directory

* updated package-lock

* fixed docker build

* fixed dockerfile

* cleanup

* save npm version for use in the build step

* switching the order

* fixed env secret

* update saml-jackson to the current version before building the next.js service

* build from typescript and change main and types before publishing npm

* copy README.md from root before publishing npm

* update README only for prod versions

* read version from root package.json file

* fixed artifact

* updated package-lock
2022-01-05 12:09:51 +00:00
Deepak Prabhakara eb1c6aadfb - moved JacksonTTL to annotations
- db tests passing
2021-12-29 15:56:38 +00:00
Aswin V d115f16b8a split tsconfig for build and dev testing 2021-12-29 16:51:25 +05:30
Aswin V 548a2933c7 set ts-node files to true so that tests can resolve the ts module 2021-12-29 01:10:02 +05:30
Aswin V 41e19a4ef7 Update include 2021-12-28 23:18:01 +05:30
Kiran 8f8c540171 Fixed the database and api.test 2021-12-28 14:19:42 +05:30
Aswin V c36aa67b6f Unblock jackson run 2021-12-23 18:19:21 +05:30
Kiran c58f41e68a wip 2021-12-23 14:55:45 +05:30
Kiran 5283424737 TS conversion for api.js 2021-12-23 13:51:31 +05:30
Aswin 329603a3ce ts convertion initial commits 2021-12-23 11:17:15 +05:30