Skip to content

Commit 160ebf4

Browse files
committed
feat(backend): 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 pick 821268a chore(rn): remove unused kotlin version 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 further chore(frontend): improve keyboard navigation chore(frontend): improve table titles chore(frontend): clear stale data when apps is switched chore(frontend): make CTA title sentence case chore(backend): add hints to event attributes chore(backend): add comments chore(backend): add dashboard api docs chore(backend): improve error messages chore(backend): populate email id correctly chore(backend): implement sdk config api chore(backend): update SDK API docs chore(backend): fix empty state message chore(backend): implement max-age cache control header chore(frontend): handle app not onboarded case
1 parent a1e1f25 commit 160ebf4

34 files changed

+6669
-3
lines changed

backend/api/main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ func main() {
5959
// SDK routes
6060
r.PUT("/events", measure.ValidateAPIKey(), measure.PutEvents)
6161
r.PUT("/builds", measure.ValidateAPIKey(), measure.PutBuilds)
62+
r.GET("/config", measure.ValidateAPIKey(), measure.GetConfig)
6263

6364
// Proxy routes
6465
r.GET("/proxy/attachments", measure.ProxyAttachment)
@@ -113,6 +114,11 @@ func main() {
113114
apps.GET(":id/bugReports/:bugReportId", measure.GetBugReport)
114115
apps.PATCH(":id/bugReports/:bugReportId", measure.UpdateBugReportStatus)
115116
apps.GET(":id/alerts", measure.GetAlertsOverview)
117+
apps.GET(":id/sessionTargetingRules", measure.GetSessionTargetingRules)
118+
apps.GET(":id/sessionTargetingRules/:ruleId", measure.GetSessionTargetingRule)
119+
apps.POST(":id/sessionTargetingRules", measure.CreateSessionTargetingRule)
120+
apps.PATCH(":id/sessionTargetingRules/:ruleId", measure.UpdateSessionTargetingRule)
121+
apps.GET(":id/sessionTargetingRules/config", measure.GetSessionTargetingDashboardConfig)
116122
}
117123

118124
teams := r.Group("/teams", measure.ValidateAccessToken())

0 commit comments

Comments
 (0)