Commit 87acfe2
committed
feat(frontend): implement session targeting
chore(frontend): load app filter
chore(frontend): show paginator and loading bar
chore(frontend): design rules table with dummy data
chore(frontend): add sampling rule button component
chore(frontend): move sampling type label
chore(frontend): add create rule page with basic scaffolding
chore(frontend): create dummy sampling rules config response
chore(frontend): handle create and edit actions
chore(frontend): implement event conditions UI
chore(frontend): add sampling rate with publish button
chore(frontend): implement session conditions UI
chore(frontend): improve layout
chore(frontend): minor improvements
chore(frontend): align trash icons
chore(frontend): padding and spacing improvements
chore(frontend): add long attr key in dummy data
chore(frontend): autoselect first event type
chore(frontend): add predefined values for session attrs
chore(frontend): add rule name
chore(frontend): modify sampling rules schema
chore(frontend): fix create page loading state
chore(frontend): add connector to conditions
chore(frontend): combine attributes in UI
chore(frontend): modify samping rate and rule name UI
chore(frontend): modify title UI
chore(frontend): remove predefined values from session attrs
chore(frontend): minor UI changes
chore(frontend): refactor components
chore(frontend): load sampling rule from server for editing
chore(frontend): handle publish rule button state
chore(frontend): fix ts errors
chore(frontend): refactor navigation
chore(frontend): handle sampling rules for trace and session
chore(frontend): implement ui conditions to cel conversion
chore(frontend): implement update sampling rule
chore(frontend): fix attribute opertators state management
chore(frontend): modify schema for rules
chore(frontend): prepend event type to attrs
chore(frontend): implement ui feedback and refactor into smaller components
chore(frontend): add data control section
chore(frontend): remove trace conditions from session targeting
chore(frontend): add a section header for conditions
chore(frontend): improve sampling conditions UI styling
- Make Configure conditions title match Event/Session conditions style
- Update Event/Session conditions titles to be smaller and secondary (text-gray-500)
- Add hover background to condition containers for better interactivity
- Align connector line colors with border colors for visual consistency
chore(frontend): refactor to session targeting
chore(frontend): implement more ui feedback
chore(frontend): remove unsused code
chore(frontend): refactor edit session targeting route
chore(frontend): update input fields design
chore(frontend): minor spacing changes
chore(backend): refactor rules schema
chore(backend): increase max conditions to 10
chore(backend): add spacing between event and session conditions
chore(backend): remove unused component
chore(backend): rename components and files to use session targeting
chore(frontend): fix save button state
chore(frontend): change scampling rate stpper to 0.01
chore(frontend): change sampling rate to %
chore(frontend): fix cel generation
chore(frontend): fix sampling rate
chore(frontend): fix url to use session targeting
chore(frontend): remove unnecessary variable
chore(frontend): fix state management
chore(frontend): spacing updates
chore(frontend): remove status badge
chore(frontend): add toggle switch for status change
chore(frontend): remove unused code
chore(frontend): remove uneeded types file
chore(frontend): fix CEL function name
chore(frontend): move shared types
chore(frontend): improve CEL parser and fix dropdown state sync
- Implement enhanced CEL parser with direct condition output and improved error handling
- Fix dropdown state synchronization when loading data from API responses
- Convert boolean types to 'bool' for UI compatibility
- Add operator mapping from CEL format to UI format
chore(frontend): fix compilation errors
chore(frontend): remove deprecated function usage
chore(frontend): implement cel parsing and generation
chore(frontend): refactor page state
chore(frontend): remove validation
chore(frontend): update swith design
chore(frontend): remove uneeded padding
chore(frontend): improve attribute input field hints
chore(frontend): add validation for empty attribute values
chore(frontend): improve variable name
chore(frontend): simplify ud-attrs logic
chore(frontend): add cel generator tests
chore(frontend): fix compilation error
chore(frontend): improve in-code documentation
chore(frontend): add cel parser tests
chore(frontend): refactor conditions file structure
chore(frontend): reorganize session targeting page code
chore(frontend): improve validation error message
chore(frontend): add loading state and toast feedback on rule submission
chore(frontend): fix compilation error
chore(frontend): rename event condition props
chore(frontend): add comment
chore(frontend): rename label for toggle
chore(frontend): fix toggle clickable area
chore(frontend): handle redirection on publish or update rule
chore(frontend): rename test descriptions
chore(frontend): update conditions container color
chore(frontend): add spacing below title
chore(frontend): improve error message
chore(frontend): rename function
chore(frontend): improve attribute row sizes
chore(frontend): move session targeting to settings
chore(frontend): increase spacing
chore(frontend): fix patch rule endpoint
chore(frontend): update variable names
chore(frontend): remove unused method argument
chore(frontend): rename function
chore(frontend): change logical operator size and color
chore(frontend): update status badge padding
chore(frontend): rename variables
chore(android): remove uneeded check in event cel parsing
chore(frontend): rename file
chore(frontend): improve error message
chore(frontend): add empty state
chore(frontend): change pagination and fix sampling rate
chore(frontend): implement deep compare to enable-disable save button
chore(frontend): refactor page state to split it into more states
chore(frontend): remove unnecessary usage of memo
chore(frontend): remove unnecesary function
chore(frontend): fix compilation error
chore(frontend): split modified by and at into different columns
chore(frontend): move cel to utils
chore(frontend): create session targeting folder under components
chore(frontend): logical operator color neutral-300
chore(frontend): modify dropdown select and reuse
chore(frontend): add component tests for page state
chore(frontend): add component tests for save rule
chore(frontend): update table spacing
chore(frontend): add test for add or remove attribute
chore(frontend): remove dependency on dequal
chore(backend): implement session targeting rules
chore(backend): implement session targeting rules get API
chore(frontend): fix handling of sampling rules API
chore(frontend): fix query to get session targeting rules
chore(frontend): updte table schema
chore(frontend): fix empty state handling
chore(backend): integrate get rule api
chore(backend): integrate create rule
chore(backend): integrate updte session targeting rules
chore(backend): integrate session targeting dashboard config
chore(frontend): fix failing test
chore(backend): modify the get rule query
chore(frontend): remove unused param
chore(backend): rename functions
chore(backend): fix email query
chore(backend): rename funciton
chore(backend): sort by last updated at timestamp
chore(backend): fix rule creation failure
chore(frontend): increase pagination limit to 50
chore(backend): sort attributes by key name
chore(backend): remove uneeded opertator for string
chore(backend): revert pagination limit change
chore(backend): add hints to session attributes
chore(backend): add comment
chore(backend): add more comments
chore(frontend): use new switch component
chore(frontend): improve session targeting table
chore(frontend): set pagination to 5
chore(backend): add validation
chore(frontend): create type for session targeting config
chore(frontend): refactor attribute naming
chore(frontend): refactor sequence of funcitons
chore(frontend): simplify props further1 parent a1e1f25 commit 87acfe2
File tree
31 files changed
+5901
-3
lines changed- backend/api
- measure
- frontend/dashboard
- __tests__
- cel
- pages
- app
- [teamId]
- session_targeting
- [appId]
- [ruleId]/edit
- create
- api
- components
- session_targeting
- utils/cel
- self-host/postgres
31 files changed
+5901
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
116 | 121 | | |
117 | 122 | | |
118 | 123 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6457 | 6457 | | |
6458 | 6458 | | |
6459 | 6459 | | |
| 6460 | + | |
| 6461 | + | |
| 6462 | + | |
| 6463 | + | |
| 6464 | + | |
| 6465 | + | |
| 6466 | + | |
| 6467 | + | |
| 6468 | + | |
| 6469 | + | |
| 6470 | + | |
| 6471 | + | |
| 6472 | + | |
| 6473 | + | |
| 6474 | + | |
| 6475 | + | |
| 6476 | + | |
| 6477 | + | |
| 6478 | + | |
| 6479 | + | |
| 6480 | + | |
| 6481 | + | |
| 6482 | + | |
| 6483 | + | |
| 6484 | + | |
| 6485 | + | |
| 6486 | + | |
| 6487 | + | |
| 6488 | + | |
| 6489 | + | |
| 6490 | + | |
| 6491 | + | |
| 6492 | + | |
| 6493 | + | |
| 6494 | + | |
| 6495 | + | |
| 6496 | + | |
| 6497 | + | |
| 6498 | + | |
| 6499 | + | |
| 6500 | + | |
| 6501 | + | |
| 6502 | + | |
| 6503 | + | |
| 6504 | + | |
| 6505 | + | |
| 6506 | + | |
| 6507 | + | |
| 6508 | + | |
| 6509 | + | |
| 6510 | + | |
| 6511 | + | |
| 6512 | + | |
| 6513 | + | |
| 6514 | + | |
| 6515 | + | |
| 6516 | + | |
| 6517 | + | |
| 6518 | + | |
| 6519 | + | |
| 6520 | + | |
| 6521 | + | |
| 6522 | + | |
| 6523 | + | |
| 6524 | + | |
| 6525 | + | |
| 6526 | + | |
| 6527 | + | |
| 6528 | + | |
| 6529 | + | |
| 6530 | + | |
| 6531 | + | |
| 6532 | + | |
| 6533 | + | |
| 6534 | + | |
| 6535 | + | |
| 6536 | + | |
| 6537 | + | |
| 6538 | + | |
| 6539 | + | |
| 6540 | + | |
| 6541 | + | |
| 6542 | + | |
| 6543 | + | |
| 6544 | + | |
| 6545 | + | |
| 6546 | + | |
| 6547 | + | |
| 6548 | + | |
| 6549 | + | |
| 6550 | + | |
| 6551 | + | |
| 6552 | + | |
| 6553 | + | |
| 6554 | + | |
| 6555 | + | |
| 6556 | + | |
| 6557 | + | |
| 6558 | + | |
| 6559 | + | |
| 6560 | + | |
| 6561 | + | |
| 6562 | + | |
| 6563 | + | |
| 6564 | + | |
| 6565 | + | |
| 6566 | + | |
| 6567 | + | |
| 6568 | + | |
| 6569 | + | |
| 6570 | + | |
| 6571 | + | |
| 6572 | + | |
| 6573 | + | |
| 6574 | + | |
| 6575 | + | |
| 6576 | + | |
| 6577 | + | |
| 6578 | + | |
| 6579 | + | |
| 6580 | + | |
| 6581 | + | |
| 6582 | + | |
| 6583 | + | |
| 6584 | + | |
| 6585 | + | |
| 6586 | + | |
| 6587 | + | |
| 6588 | + | |
| 6589 | + | |
| 6590 | + | |
| 6591 | + | |
| 6592 | + | |
| 6593 | + | |
| 6594 | + | |
| 6595 | + | |
| 6596 | + | |
| 6597 | + | |
| 6598 | + | |
| 6599 | + | |
| 6600 | + | |
| 6601 | + | |
| 6602 | + | |
| 6603 | + | |
| 6604 | + | |
| 6605 | + | |
| 6606 | + | |
| 6607 | + | |
| 6608 | + | |
| 6609 | + | |
| 6610 | + | |
| 6611 | + | |
| 6612 | + | |
| 6613 | + | |
| 6614 | + | |
| 6615 | + | |
| 6616 | + | |
| 6617 | + | |
| 6618 | + | |
| 6619 | + | |
| 6620 | + | |
| 6621 | + | |
| 6622 | + | |
| 6623 | + | |
| 6624 | + | |
| 6625 | + | |
| 6626 | + | |
| 6627 | + | |
| 6628 | + | |
| 6629 | + | |
| 6630 | + | |
| 6631 | + | |
| 6632 | + | |
| 6633 | + | |
| 6634 | + | |
| 6635 | + | |
| 6636 | + | |
| 6637 | + | |
| 6638 | + | |
| 6639 | + | |
| 6640 | + | |
| 6641 | + | |
| 6642 | + | |
| 6643 | + | |
| 6644 | + | |
| 6645 | + | |
| 6646 | + | |
| 6647 | + | |
| 6648 | + | |
| 6649 | + | |
| 6650 | + | |
| 6651 | + | |
| 6652 | + | |
| 6653 | + | |
| 6654 | + | |
| 6655 | + | |
| 6656 | + | |
| 6657 | + | |
| 6658 | + | |
| 6659 | + | |
| 6660 | + | |
| 6661 | + | |
| 6662 | + | |
| 6663 | + | |
| 6664 | + | |
| 6665 | + | |
| 6666 | + | |
| 6667 | + | |
| 6668 | + | |
| 6669 | + | |
| 6670 | + | |
| 6671 | + | |
| 6672 | + | |
| 6673 | + | |
| 6674 | + | |
| 6675 | + | |
| 6676 | + | |
| 6677 | + | |
| 6678 | + | |
| 6679 | + | |
| 6680 | + | |
| 6681 | + | |
| 6682 | + | |
| 6683 | + | |
| 6684 | + | |
| 6685 | + | |
| 6686 | + | |
| 6687 | + | |
| 6688 | + | |
| 6689 | + | |
| 6690 | + | |
| 6691 | + | |
| 6692 | + | |
| 6693 | + | |
| 6694 | + | |
| 6695 | + | |
| 6696 | + | |
| 6697 | + | |
| 6698 | + | |
| 6699 | + | |
| 6700 | + | |
| 6701 | + | |
| 6702 | + | |
| 6703 | + | |
| 6704 | + | |
| 6705 | + | |
| 6706 | + | |
| 6707 | + | |
| 6708 | + | |
| 6709 | + | |
| 6710 | + | |
| 6711 | + | |
| 6712 | + | |
| 6713 | + | |
| 6714 | + | |
| 6715 | + | |
| 6716 | + | |
| 6717 | + | |
| 6718 | + | |
| 6719 | + | |
| 6720 | + | |
| 6721 | + | |
| 6722 | + | |
| 6723 | + | |
| 6724 | + | |
| 6725 | + | |
| 6726 | + | |
| 6727 | + | |
| 6728 | + | |
| 6729 | + | |
| 6730 | + | |
| 6731 | + | |
| 6732 | + | |
| 6733 | + | |
| 6734 | + | |
| 6735 | + | |
| 6736 | + | |
| 6737 | + | |
| 6738 | + | |
| 6739 | + | |
| 6740 | + | |
| 6741 | + | |
| 6742 | + | |
| 6743 | + | |
| 6744 | + | |
| 6745 | + | |
| 6746 | + | |
| 6747 | + | |
| 6748 | + | |
| 6749 | + | |
| 6750 | + | |
| 6751 | + | |
| 6752 | + | |
| 6753 | + | |
| 6754 | + | |
| 6755 | + | |
| 6756 | + | |
| 6757 | + | |
| 6758 | + | |
| 6759 | + | |
| 6760 | + | |
| 6761 | + | |
| 6762 | + | |
| 6763 | + | |
| 6764 | + | |
| 6765 | + | |
| 6766 | + | |
| 6767 | + | |
| 6768 | + | |
| 6769 | + | |
| 6770 | + | |
| 6771 | + | |
| 6772 | + | |
| 6773 | + | |
| 6774 | + | |
| 6775 | + | |
| 6776 | + | |
| 6777 | + | |
| 6778 | + | |
| 6779 | + | |
| 6780 | + | |
| 6781 | + | |
| 6782 | + | |
| 6783 | + | |
| 6784 | + | |
| 6785 | + | |
| 6786 | + | |
| 6787 | + | |
| 6788 | + | |
| 6789 | + | |
| 6790 | + | |
| 6791 | + | |
| 6792 | + | |
| 6793 | + | |
| 6794 | + | |
| 6795 | + | |
| 6796 | + | |
| 6797 | + | |
| 6798 | + | |
| 6799 | + | |
| 6800 | + | |
| 6801 | + | |
| 6802 | + | |
| 6803 | + | |
| 6804 | + | |
| 6805 | + | |
| 6806 | + | |
| 6807 | + | |
| 6808 | + | |
| 6809 | + | |
| 6810 | + | |
| 6811 | + | |
| 6812 | + | |
| 6813 | + | |
| 6814 | + | |
| 6815 | + | |
| 6816 | + | |
| 6817 | + | |
| 6818 | + | |
| 6819 | + | |
| 6820 | + | |
| 6821 | + | |
| 6822 | + | |
| 6823 | + | |
| 6824 | + | |
| 6825 | + | |
| 6826 | + | |
| 6827 | + | |
| 6828 | + | |
| 6829 | + | |
| 6830 | + | |
| 6831 | + | |
| 6832 | + | |
| 6833 | + | |
| 6834 | + | |
| 6835 | + | |
| 6836 | + | |
| 6837 | + | |
| 6838 | + | |
| 6839 | + | |
| 6840 | + | |
| 6841 | + | |
0 commit comments