Skip to content

Format Composio trigger labels#2

Closed
oxoxDev wants to merge 4 commits into
mainfrom
format-composio-trigger-labels-13749960330781174990
Closed

Format Composio trigger labels#2
oxoxDev wants to merge 4 commits into
mainfrom
format-composio-trigger-labels-13749960330781174990

Conversation

@oxoxDev
Copy link
Copy Markdown
Owner

@oxoxDev oxoxDev commented May 4, 2026

This change replaces raw provider enum slugs like GOOGLECALENDAR_GOOGLE_CALENDAR_EVENT_CREATED_TRIGGER with formatted, human-readable labels (e.g., Google Calendar Event Created) across all user-facing UI components.

Key improvements:

  • New shared utility formatTriggerLabel in app/src/lib/composio/formatters.ts.
  • Intelligent deduplication of leading provider prefixes.
  • Improved accessibility with formatted aria-label on toggles.
  • Subtitle at TriggerToggles.tsx:183 is now also formatted.
  • Comprehensive unit tests for the formatter and updated integration tests for the component.

Raw slugs are preserved in component state and props to ensure no regressions in enable/disable or signature logic.


PR created automatically by Jules for task 13749960330781174990 started by @oxoxDev

@google-labs-jules
Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

- Added `formatTriggerLabel` utility to handle slug humanization.
- Implemented prefix deduplication (e.g., GOOGLECALENDAR_GOOGLE_CALENDAR -> Google Calendar).
- Enforced "GitHub" casing for tokens.
- Updated TriggerToggles and ComposeioTriggerHistory to use the formatter.
- Updated relevant tests to reflect formatted labels.

Co-authored-by: oxoxDev <164490987+oxoxDev@users.noreply.github.com>
@oxoxDev oxoxDev force-pushed the format-composio-trigger-labels-13749960330781174990 branch from 8e99819 to d6e281e Compare May 4, 2026 09:29
google-labs-jules Bot and others added 3 commits May 4, 2026 17:44
…ilter empty tokens (tinyhumansai#1129)

CodeRabbit feedback: explicit empty-string overrides were being skipped by
the truthy check. Switch to hasOwnProperty so mapped values are always
honored. Also filter empty tokens from split() so consecutive underscores
(e.g. LINEAR__ISSUE___CREATED) collapse to single spaces.

Co-authored-by: oxoxDev <164490987+oxoxDev@users.noreply.github.com>
…inyhumansai#1129)

CodeRabbit feedback: prior multi-underscore test only had single underscores.
Replaced with LINEAR__ISSUE___CREATED. Also added a test asserting the
hasOwnProperty path returns explicit empty-string overrides.

Co-authored-by: oxoxDev <164490987+oxoxDev@users.noreply.github.com>
…tinyhumansai#1129)

CodeRabbit feedback: when multiple repos share the same trigger slug, the
plain 'Enable GitHub Push Event' label was indistinguishable to screen-reader
users. Now appends 'for <owner>/<repo>' for github_repo scope.

Co-authored-by: oxoxDev <164490987+oxoxDev@users.noreply.github.com>
@oxoxDev oxoxDev closed this May 5, 2026
@oxoxDev oxoxDev deleted the format-composio-trigger-labels-13749960330781174990 branch May 5, 2026 08:22
oxoxDev added a commit that referenced this pull request May 19, 2026
…ai#1398)

rand::random::<u64>() draws from a thread-local PRNG with predictable
seeding — adequate for non-adversarial code paths but unsafe for an
on-chain order salt where predictability is exploitable by front-runners
who observe partial nonce/salt sequences and replay/front-run.

Switch to OsRng (re-exported through chacha20poly1305::aead, the same
import shape encryption/core.rs already uses), draw 8 fresh bytes from
the OS entropy source, and feed those to the existing u64 salt slot.

Addresses M3gA-Mind review (must-fix #2).

Refs tinyhumansai#1398 (Polymarket trading)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant