Jordi Enric and Joshen Lim
6e6910f82b
warehouse ui/ux fixes ( #29057 )
...
* fix metadata not showing in Raw tab in log detail
* fix rows not filling up horizontal space
* show collection loader only when fetching collections, since the query can be disabled
* simplify language in create collection modal
* fix create collection modal copy in cta
* rm typecast, add tooltip on collection creation
* improve copy on empty collection
* improve copy on colelction empty state
* rm unused code
* prompt users to refresh, add button to refresh, after sending first events to a collection
* use generic mr skelington instead of supalogo
* add template for search in event message
* hide field reference when source is warehouse
* rm font bold on selected log
* update curl example
* add focusable prop to codeblock
* change focus border color in codeblock
* make codeblock focusable by default
* move refresh btn
* rm unnecessary focusable i codeblcok
* fix raw log rendering
* add search
* update plceholder
* add timerange search
* improve empty state copy in wh
* add open in warehouse explorer button
* update test conection dialog ui
* Update apps/studio/components/interfaces/DataWarehouse/TestCollectionDialog.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
* Update apps/studio/components/interfaces/DataWarehouse/WarehouseCollectionDetail.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
* Update apps/studio/components/interfaces/DataWarehouse/WarehouseCollectionDetail.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
* rm clog
* Update apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
* fix loading state in collections sidebar
* fix test collection sheet layout
* add some keyboard shortcuts to filters
* use isLoading in wh log detail to prevent double loaders
* make search input longr
* truncate titles
* truncat sidebar names
* rename dayjs
* update copy from warehouse to collections
* update remove collection copy
---------
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-09-09 17:16:12 +02:00
Alaister Young and Kevin Grüneberg
70da0f1d1d
chore: cleanup packages ( #27770 )
...
* chore: cleanup packages
- Avoid circular imports
- Export API-types as types
- pg-format without depending on Node internal Buffer (not browser-compatible)
- Avoid importing from barrel files in ui dir
* chore: avoid barrel file imports in studio (#27771 )
* chore: avoid barrel file imports
- Removes some unused imports
- Avoids barrel file import for faster builds + less memory
* add eslint rule
* type fixes
* delete layouts barrel
* delete components/grid barrel file
* delete components/grid/utils barrel file
* delete components/grid/components/common barrel file
* delete components/grid/components/editor barrel file
* delete components/grid/components/formatter barrel file
* delete components/grid/components/grid barrel file
* delete components/grid/components/header/filter barrel file
* remote components/grid/store barrel file
* remove components/interfaces/Auth/Policies barrel file
* delete components/interfaces/Settings/Logs barrel file
* delete components/ui/CodeEditor barrel file
* delete components/ui/Forms barrel file
* delete components/ui/Shimmers barrel file
* delete data/analytics barrel file
* delete hooks barrel file
* cleanup lib/common/fetch barrel file
* final * barral files cleanup
* global react-data-grid styles
* remove console.log
---------
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com >
* fix build
---------
Co-authored-by: Kevin Grüneberg <k.grueneberg1994@gmail.com >
2024-07-04 14:48:10 +08:00
9fd85e76fb
feature: warehouse ( #23714 )
...
* add event collection ui, queries, routing
* fix alignment issue
* renaming
* wip
* feat: initial data hooks and integration with feature flagging
* update with naming, correct mocks, etc
* feat: add source crud integration
* mock data, fix form, add motion to drawer
* feat: optimize warehouse fetch behaviour
* feat: add in valid query
* chore: ermove collection mocks
* feat: optimize tenant fetching
* cleanup + update openapi client + fix fetch calls
* cleanup imporst
* on delete success, redirect to main logs page
* fix dropdown event propagating to link and opening page
* Refactor code to use useParams and useRouter in CreateWarehouseCollection.tsx, WarehouseCollectionDetail.tsx, and LogsLayout.tsx
* clean warehouse query
* warehouse access tokens create, list
* add warehouse access token revokal
* fix access tokens table, fix access tokens revoke feature
* format date in access tokens table
* fix some state issues and warnings in access tokens forms
* warehouse/feat: introduction when creating event collections (#23244 )
feat: add introduction for event collections
* warehouse/feat: rename headers and nav items (#23243 )
* feat: rename headers
* feat: use feature flag for navigation bar
* move header name flag to component
* fix typeerror in create collection query
---------
Co-authored-by: Jordi Enric <jordi.err@gmail.com >
* ui fixes, rm deprecated icons
* render table with events
* fix typeerror results arr
* add pagination
* some ui fixes
* fix loading states, format dates, test connection dialog
* patch type errors
* Fix access token selection in TestCollectionDialog and update column name in WarehouseAccessTokens
* rm unused querytype
* rm unused querytype in logtable
* patch type errors in warhouse collection mutations
* rm unused component
* mr unused import
* show connection dialog in staging
* fix Run btn now showing up
* fix undef argument
* show pagination only when there are results
* fix issues in connection dialog, improve ux
* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseAccessToken.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseAccessToken.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* fix infinite render loop, adapt component to render log metadata on log selection
* rm unused import, prevent ui from breaking when some data may be missing from an event
* update WAT create mutation to use template
* follow mutation template in delete access token mutation
* refactor naming, improve code in some areas
* rm unused mocks for msw
* skip tests - this will get fixed on the vitest PR
* Update apps/studio/components/interfaces/Settings/Logs/LogsQueryPanel.tsx
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
* fix loading compo
* rm unused import
* use correct alert title
* rm unnecessary div
* fix layout in projectpaused alert
* fix type err, refactor to new method
* rm observer
* rm observer
* refactor warehouse collections update
* use correct get method, comment out so it doesnt err
* use correct method
* fix formatting issues
* ref imports
* ref imports
* clean up imports
* clean imports
* clean imports
* rename props
* destructure props
* cleanup imports
* Update apps/studio/components/interfaces/DataWarehouse/CreateWarehouseCollection.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* ref scale class
* cleanup divs
* Update apps/studio/components/interfaces/DataWarehouse/TestCollectionDialog.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* refactor to rhf
* reuse types, cleanup, refactor to react query hooks instead of el events
* refactor table component to handle empty state
* Update TestCollectionDialog to use unique keys for SelectItem components
* Update TestCollectionDialog to use unique keys for SelectItem components
* Update TestCollectionDialog to use unique keys for SelectItem components
* fix empty state ui
* use destructured queries
* rename query types
* Update apps/studio/components/interfaces/DataWarehouse/WarehouseAccessTokens.tsx
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
* chore: Refactor WarehouseCollectionDetail component
* rm unused imports
* rename loadolder
* rm typcast
* rhf in create token
* improve err handling
* refactor to rhf, refactor queries, use cn utils, cleanup
* fix loading logselection
* add correct type to warehouse access tokens query
* use correct types in err & clean unused types
* toggle token in curl exampel
* use product empty state component in warehouse
* add client side validation of collection name, temp fix
* add New badge
* update testcolldialog
* cleanup unnecessary div and rm double border
* code style fixes
* handle err
* code style fix
* add correct type
* add correct err type
* fix type error
* fix type err
* fix missing type
---------
Co-authored-by: TzeYiing <ty@tzeyiing.com >
Co-authored-by: Ziinc <Ziinc@users.noreply.github.com >
Co-authored-by: Joshen Lim <joshenlimek@gmail.com >
2024-05-29 10:32:46 +02:00