Commit Graph

20 Commits (b63bf7b3c0b2cfe9ec810b504a66b6adb4a689ae)

Author SHA1 Message Date
Brian Cao 8732d056dd
Dev (#1702)
* Initial Typescript models.

* Re-add realtime data

* get distinct sessions for session metrics

* Add queries for new schema.

* Fix Typo.

* Add some api/team endpoints.

* Fix destructure error.

* Fix getWebsites call.

* Ignore typescript build errors.

* Fix enum issue.

* add clickhouse route to deleteWebsite

* Fix Website auth.

* Updated lint-staged config.

* Add permission checks.

* Add user role api.

* Fix error when updating website.

* Fix isAdmin check.  Fix Schema.

* Initial conversion to react-basics.

* Remove user/team transfer from website update.

* delete website in relational query

* Fix login secure token creation.

* Add event type to event.

* Allow user to be added to team with role.

* Updated login form.

* Add Role to TeamUser.

* Add database migration.

* Refactored permissions check. Updated redis lib.

* Feat/um 114 roles and permissions (#1683)

* Auth checkpoint.

* Merge branch 'dev' into feat/um-114-roles-and-permissions

* Add 02 migration.

* Added lib/types.

* Updated schema.

* Updated roles and permissions logic.

* Implement react-basics styles. Fix queries.

* Update website details layout.

* Add 01 migration.

* Fix admin create.

* Update react-basics.

Co-authored-by: Francis Cao <franciscao@gmail.com>
Co-authored-by: Mike Cao <mike@mikecao.com>
Co-authored-by: Mike Cao <moocao@gmail.com>
2022-12-12 19:45:38 -08:00
Brian Cao 7bf12cc552 Assign user to userStore 2022-11-09 13:54:09 -08:00
Mike Cao f4e0da481e Use next-basics package. 2022-08-28 20:20:54 -07:00
Mike Cao 3a8bfd1dbd Move auth token logic to useApi hook. 2022-02-26 15:53:45 -08:00
Mike Cao d19b6b5a82 Added useApi hook. 2022-02-22 23:52:31 -08:00
Mike Cao 9937caa569 Replaced redux with zustand. Fixed login issue, closes #980. 2022-02-22 22:47:59 -08:00
Mike Cao d8e831db50 Switch to authentication using bearer token. 2022-01-23 00:33:06 -08:00
Mike Cao 339cd21596 Fix issues with basePath. 2020-11-09 21:01:53 -08:00
Arnelle Balane 57d459f78f
Position error tooltip below form field on narrow screen sizes 2020-10-23 02:00:58 +08:00
Mike Cao 876c8f7a68 Update language keys. 2020-10-12 22:53:59 -07:00
Mike Cao 5068ab12a9 Support basePath in all queries. 2020-09-30 22:34:16 -07:00
Mike Cao e5cd162b83 Updated api fetch to return an object. 2020-09-30 15:14:44 -07:00
Mike Cao ccca5d2d99 Added missing messages. 2020-09-07 20:41:58 -07:00
Mike Cao f0ac9b6522 Convert text for internationalization. 2020-09-05 17:27:01 -07:00
Mike Cao b905824d50 Fix error message on login. 2020-08-19 19:03:42 -07:00
Mike Cao f4ca353b5c Refactor database queries. 2020-08-11 22:24:41 -07:00
Mike Cao b392a51676 Account editing and change password. 2020-08-09 02:03:37 -07:00
Mike Cao 58a1be7a30 Added tracking code form. 2020-08-07 20:36:57 -07:00
Mike Cao c4b75e4aec Handle website delete. Added response helper functions. 2020-08-07 17:19:42 -07:00
Mike Cao 00e232fee8 Website edit functionality. 2020-08-07 02:27:12 -07:00