Commit graph

143 commits

Author SHA1 Message Date
Anthony Alaribe
9521695299
Teams rebased (#233)
* towards supporting teams in projects.

* Auto-format code with fourmolu

* fix htmx json encoder extension

* improve team list

* team view side page, alerts and dashbaord next

* yeah well

* validation checks and fixes

* tiny details improvments

* prepare endpoints for testing

* Auto-format code with fourmolu

* towards tests

* Auto-format code with fourmolu

* rm monoscope-test

* fix alert creation

* more tests cases

* Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

* Auto-format code with fourmolu

* feat: alerts section, teams.

* send notifications

* Auto-format code with fourmolu

* fix errs and slack install

* Auto-format code with fourmolu

* add teams column to dashboards table

* towards table component

* Auto-format code with fourmolu

* dashbaord bulk actions delete

* dashboards with teams

* team dashboard

* Auto-format code with fourmolu

* fix table

* feat: teams bulk actions delete

* Auto-format code with fourmolu

* feat: add title field & teams to dashboard modal

* Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

* Auto-format code with fourmolu

* fix and passing tests

* Auto-format code with fourmolu

* add more tests

* add dashboards spec

* Auto-format code with fourmolu

* fix pull request workflow

* fix: review change requests

* Auto-format code with fourmolu

* feat: tagify consolidation

* Auto-format code with fourmolu

* updates

* simplifications and other changes

* background changes and fixes

* Auto-format code with fourmolu

* package yaml

* Auto-format code with fourmolu

* fix typo

* towards supporting teams in projects.

* Auto-format code with fourmolu

* improve team list

* team view side page, alerts and dashbaord next

* yeah well

* validation checks and fixes

* tiny details improvments

* prepare endpoints for testing

* Auto-format code with fourmolu

* towards tests

* Auto-format code with fourmolu

* rm monoscope-test

* more tests cases

* Auto-format code with fourmolu

* alerts page improvements bug fixes and teams link

* Auto-format code with fourmolu

* feat: alerts section, teams.

* send notifications

* Auto-format code with fourmolu

* fix errs and slack install

* Auto-format code with fourmolu

* add teams column to dashboards table

* towards table component

* Auto-format code with fourmolu

* dashbaord bulk actions delete

* dashboards with teams

* team dashboard

* Auto-format code with fourmolu

* feat: teams bulk actions delete

* Auto-format code with fourmolu

* feat: add title field & teams to dashboard modal

* Auto-format code with fourmolu

* remove stack files and configure hie.yaml for better IDE support

* Auto-format code with fourmolu

* fix and passing tests

* Auto-format code with fourmolu

* add more tests

* add dashboards spec

* Auto-format code with fourmolu

* fix: review change requests

* Auto-format code with fourmolu

* feat: tagify consolidation

* Auto-format code with fourmolu

* updates

* simplifications and other changes

* background changes and fixes

* Auto-format code with fourmolu

* package yaml

* Auto-format code with fourmolu

* Migrate to master's Table API

  - Update dashboards and teams tables to use new column-based API
  - Replace ItemsList.ItemsRows with Table.TableRows
  - Add missing validateTeamDetails function
  - Fix import conflicts

* Migrate to master's Table API and fix migration idempotency

- Update dashboards and teams tables to use new column-based API
- Replace ItemsList.ItemsRows with Table.TableRows
- Add missing validateTeamDetails function
- Fix import conflicts (Wreq.header ambiguity)
- Add IF NOT EXISTS to index creation in teams migration

* Add frosted glass backdrop to modals

- Add backdrop-filter blur effect to .modal-backdrop class
- Applies 8px blur for frosted glass effect
- Includes webkit prefix for browser compatibility

* Remove padding from table container

- Remove px-6, pt-4, and pb-16 from containerClasses
- Table now renders edge-to-edge without padding

* Add padding to non-settings page content

- Remove padding from Table component's default containerClasses
- Add px-6 pt-4 pb-16 wrapper for non-settings pages in BodyWrapper
- Settings pages (Teams, etc.) remain without extra padding

* Remove duplicate padding from dashboards list page

- Remove pb-2 px-6 pt-8 from itemsListPage div
- Padding now comes from BodyWrapper parent wrapper
- Avoids double padding on dashboards list

* Align dashboard button and table checkbox with page header

* Fix double padding issue with standardized table padding system

- Remove global padding wrapper from BodyWrapper to fix double padding
- Add addPadding config option to Table component
- Update table pages to use addPadding: Dashboards, API Catalog, Issues, Monitors
- Standardize all table padding to px-6 pt-4 pb-2
- Update Monitors page section padding to match standard

* fix tables and compilation

* Auto-format code with fourmolu

* fix dulicate line

* Auto-format code with fourmolu

* fix build

* Refactor FromJSON instances to use deriving strategies

- Use deriving via with DAE.Rename for field name transformations

- Use deriving via with DAE.StripSuffix for simple underscore removal

- Extract SlackEventPayload constructors into separate record types

- Simplify TeamForm to use deriving anyclass for internal API

- Remove unused imports

Code reduction: ~80 lines of manual JSON parsing boilerplate eliminated

* Auto-format code with fourmolu

* Add team validation and permission checks

- Add admin-only restriction for team create/update
- Validate team members are project members
- Add email format validation for notification emails
- Add length limits to team name and handle
- Verify teams exist before adding to dashboards
- Extract dispatchTeamNotifications helper in BackgroundJobs
- Use TeamDetails record to simplify createTeam/updateTeam APIs
- Handle duplicate team handles with ON CONFLICT DO NOTHING

* Auto-format code with fourmolu

* Refactor teams feature with comprehensive improvements

Code Quality & Type Safety:

- Refactor createTeam/updateTeam to use TeamDetails record type

- Add compile-time safety with NonEmpty for softDeleteProjectMembers

- Standardize SQL array syntax (lowercase uuid[], consistent spacing)

- Add phone_numbers support to all team types and queries

Performance Optimizations:

- Optimize getTeamsVM/getTeamByHandle with LEFT JOIN + array_agg

- Use for_ instead of explicit null checks

Error Handling & Observability:

- Add logging for missing/deleted teams in monitor notifications

- Improve error handling for addTeamsToDashboards

- Add graceful fallback when configured teams are deleted

Code Cleanup:

- Extract dispatchTeamNotifications helper function

- Remove redundant project query

- Use idiomatic Haskell patterns

* Auto-format code with fourmolu

* Fix variable shadowing in email validation

* Refactor for code succinctness

- Simplify NonEmpty to Vector conversion (remove redundant toList)

- Extract handleQueryMonitorThreshold into focused helper functions

- Add logMissingTeams for team logging

- Add createAndInsertIssue for issue creation

- Add calculateThreshold for threshold calculation

- Add buildMonitorAlert for alert construction

- Add sendNotifications for notification dispatch

- Add sendFallbackNotifications for fallback handling

* Auto-format code with fourmolu

---------

Co-authored-by: Yussif Mohammed <yousiph77@gmail.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2025-12-18 23:38:00 +01:00
Yussif Mohammed
a85be17184
Cherry pick files (#232)
* cherry pick files

* Auto-format code with fourmolu

* add more files

* Auto-format code with fourmolu

* finx undefined var

* review changes

* Auto-format code with fourmolu

* discord channel' type rename

* Auto-format code with fourmolu

* claude rec fixes

* Auto-format code with fourmolu

* fix notification typo

* Auto-format code with fourmolu

* discord get channel log error

* fix typo

* rm reswap related code from System.Types.hs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Anthony Alaribe <anthonyalaribe@gmail.com>
2025-12-18 12:13:39 +01:00
Anthony Alaribe
2d893b8520
Fix Platform colors to reduce eye strain (#231)
* Fix badge-neutral contrast for better readability

* Remove unused CSS utilities and variables

* Adjust dark mode to premium blue aesthetic

- Darker backgrounds (15-18% vs 18-22%) for high-quality look
- Maintains visible blue tint with 0.020 chroma
- Improved text contrast ratios (textStrong: 14.58:1)
- All combinations pass WCAG AA standards

* Add surface-raised utility class for elevated surfaces

- Created .surface-raised class with bgRaised, border, and shadow
- Applied to project cards for better contrast against background
- Applied to all tables (API Catalog, Issues, etc.) via Table component
- Fixed monitor alert icons padding for uniform appearance
- Provides consistent raised platform aesthetic across the app

* revert color

* Enhance surface-raised with dimensional lighting effects

Add subtle gradient and inset shadows for 3D depth, update background
to use fillWeaker color, and apply surface-raised utility to widgets.

* Replace card-round with surface-raised for consistency

Apply surface-raised styling to all cards including stat boxes, list items,
and anomalies widget. Remove unused card-round CSS class.
2025-12-17 11:51:37 +01:00
Anthony Alaribe
9527fa7571 Reorganize project structure
Move config files to config/ directory (tailwind.config.js, workbox-config.js, weeder.toml). Move documentation to docs/ (DEVELOPMENT.md, DOCKER_COMPOSE_README.md). Update all references in Dockerfile, Makefile, tailwind.css, and documentation.
2025-12-17 00:49:42 +01:00
Anthony Alaribe
229f0d7e2d Use CSS @apply for badge classes instead of Haskell helpers
- Add .badge and .badge-outline CSS classes with @apply in tailwind.css
- Remove badge_, badgeOutline_, badgeClass from Utils.hs (-19 lines)
- Update AnomalyList.hs to use CSS classes directly
2025-11-26 22:39:13 +01:00
Anthony Alaribe
d024a55a2d Improve dark mode consistency and fix UI elements
- Convert all text colors to oklch with blue saturation for consistent theming
- Update DaisyUI theme colors to use solid oklch values for better visibility
- Fix progress bar transparency issues in both light and dark modes
- Add missing SVG sprite icons: alert-circle, activity, route, routes
- Update base colors to use oklch with proper blue tint
2025-11-18 22:40:41 +01:00
Anthony Alaribe
a1a9f8a371 Adjust dark mode background colors for better contrast
Update dark mode background to 14% lightness with increased blue saturation for improved visual comfort and brand consistency.
2025-11-18 22:40:41 +01:00
Anthony Alaribe
7d4d27e15c reduce the paddings of the tabs 2025-11-02 13:57:50 +01:00
Anthony Alaribe
42a7a30261 fix the cursor handling logic for query logs. And add performance logic and checks so we can find out whats making the query-editor sluggish 2025-10-31 18:11:11 +01:00
Anthony Alaribe
614715b313 fix tests and reduce default limit to 500 for weaker conections 2025-10-26 23:10:32 +01:00
Anthony Alaribe
b774d51c69 fix chart and timepicker dropdown behavior to collapse after use. 2025-10-26 00:43:15 +02:00
Anthony Alaribe
2f32accb97
Performance optimization (#196)
* use details and summary for presets dropdown.

* tiny query lib improvements

* improve the list better

* allow deletes remove and update list via htmx

* x

* reduce dom count of the facets elements.

* checkpoint

* fix not collapsing parent without children

* remove codemirrow

* enable source maps, update echarts, update tailwind, etc

* cleanup listeners and be more lazy in session reploay

* onboarding
2025-09-20 02:07:33 +02:00
Anthony Alaribe
c6fbc3af27 remove old monaco files so their no loaded, incase they impact performance. and remove step-assertions 2025-09-17 18:42:57 +02:00
Yussif Mohammed
830c05469b remove bg-raised class 2025-09-15 15:53:43 +00:00
Yussif Mohammed
9479985727 fix api logs page 2025-09-15 07:58:04 +00:00
Anthony Alaribe
76b2365cc9 build everything in multistage docker images. 2025-09-14 19:12:41 +02:00
Anthony Alaribe
52275c696d update skeleton 2025-08-15 03:25:29 +02:00
Yussif Mohammed
f1ddda27aa
rrweb player (#184)
* towwards reply ui

* ui improvements

* new replayer

* update icons and implement functionalities

* make session player float

* loading session data client side

* replay sesion ui integrated

* sync scroll

* sync events scroll

* fixes

* use brand colors

* re enable convert kit

* cleanup
2025-08-08 08:25:41 +00:00
dawkaka
d85fc8e4fc towwards reply ui 2025-08-07 13:10:36 +00:00
dawkaka
5013696b5c session 2025-08-03 11:05:45 +00:00
Anthony Alaribe
1c6675b209
Darkmode exploration + remove step-editor from onboarding + new logos (#181)
* darkmode colors

* introduce dark mode and theme switching

* darkmode support in monaco editors

* fix charts and other ui components like the monaco-editor to better support dark mode

* improve onboarding colors and screens

* attempt at improving issues with step editor in onboarding

* onboarding now skips the step editor stage. until its implemented to work reliably

* fix stack warnings and unused imports. as well as issue in running stack test

* make fmt

* remove unused imports in Discord.hs, Whatsapp.hs, Reports.hs
2025-07-13 14:32:30 +02:00
Anthony Alaribe
c5f218ce66 log explorer mini fixes 2025-07-01 00:06:53 +02:00
Anthony Alaribe
98526500a9 right align handling for durations as well 2025-06-30 13:03:20 +02:00
Anthony Alaribe
a54818afcb build latency and labels based on preloaded summary 2025-06-30 13:03:19 +02:00
Anthony Alaribe
2b5d882a87
Summary column (#178)
* refactors: consolidate logic and remove unused or unneeded files. TODO: include summary column to simplify query engine and remove need for adding default columns to query

* checkpoint

* helpers and dyntax

* add summary

* add onzoom

* otlpserver

* telemetry inserts and query should include summary

* checkpoint

* checkpoint

* render table based on preaggregated summary table
2025-06-28 17:19:38 +02:00
Anthony Alaribe
34c9b114ed fix some links being white and hense not visible 2025-06-15 17:32:16 -07:00
Anthony Alaribe
760430b2a3 load integration instructions from docs/landing page and improve experience 2025-06-13 19:44:10 -07:00
Anthony Alaribe
e482436075
New editor and AI query support (#172)
* checpoint working editor. need to submit query and actually search

* working handleAddQuery impl

* ask ai btn

* llm search checkpoint before integrate langchain

* working ai search checkpoint

* chekcpoint not overlapping suggestions and can search

* checkpoint

* flatter schemas support

* prettier config

* use ? for ai queries

* checkpoint. TODO: include schema to ai search with a schema resolution endpoint

* move schema to backend

* widget fixes to explorer

* register popular queries
2025-05-25 07:53:20 +02:00
Anthony Alaribe
e986f3a7dd fix not rendering dashboards for impulseCRM and improve grip and drag and drop experience for widgets 2025-05-04 09:14:19 -07:00
dawkaka
4f584e3ce7 ui updates 2025-05-02 11:18:54 +00:00
dawkaka
81e4926d91 use more subtle marker for new data stream 2025-04-23 20:18:08 +00:00
dawkaka
97ab115947 log explorer changes 2025-04-23 18:55:16 +00:00
Anthony Alaribe
b7dddf8082 self host inter and jetbrains mono to prevent cdn issues 2025-04-21 01:15:56 +02:00
dawkaka
84d1dc94e5 longer animation duration 2025-04-18 10:24:15 +00:00
dawkaka
572c053bd7 feat: add new data animation 2025-04-18 10:15:55 +00:00
Anthony Alaribe
464b598ac6 implement kafka support for events 2025-03-25 16:58:10 +01:00
Anthony Alaribe
5b9cc52a3c implement copy widget to dashboard 2025-03-18 00:01:16 +01:00
dawkaka
61cb8fda31 fix tabbox active after tailwindcss migration 2025-03-16 21:25:38 +00:00
Anthony Alaribe
8a8d2a3977 implement expand widget fxn 2025-03-15 23:46:48 +01:00
Anthony Alaribe
fafa598660 implement widget menu item 2025-03-14 23:53:59 +01:00
Anthony Alaribe
90cda0adc6 pre-implement delete and rename 2025-03-14 22:26:04 +01:00
Anthony Alaribe
531f1223e6 fix menu not showing properly 2025-03-14 19:35:18 +01:00
Anthony Alaribe
5a6481a670 migrate to tailwindcss v4 and daisyui v5 2025-03-14 00:05:46 +01:00
Anthony Alaribe
1166e728cc effect daisy ui changes 2025-03-14 00:05:46 +01:00
Anthony Alaribe
aaea58d201 support loading and saving widgets and dashboards on change 2025-03-12 01:44:20 +01:00
dawkaka
979db880b1 make latency breakdown sticky 2025-03-11 13:34:03 +00:00
Anthony Alaribe
2d5bd599e0 initial work on new widget workflow and other minor ui fixes 2025-03-10 01:57:23 +01:00
Anthony Alaribe
1b0b578856 implement dynamic variables like endpoint variable depending on the host variable 2025-03-08 04:06:27 +01:00
Anthony Alaribe
5fd869c683 implement support for rendering variables 2025-03-07 02:36:54 +01:00
dawkaka
705924342c target http spans and fix build 2025-02-11 17:32:57 +00:00