Skip to content

Tettra new components #17264

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jun 26, 2025
Merged

Tettra new components #17264

merged 5 commits into from
Jun 26, 2025

Conversation

GTFalcao
Copy link
Collaborator

@GTFalcao GTFalcao commented Jun 24, 2025

Closes #13278

Summary by CodeRabbit

  • New Features
    • Introduced Tettra integration with actions to create new pages and suggest pages, including dynamic selection of categories, subcategories, and assignable users.
  • Chores
    • Updated package metadata and dependencies for the Tettra integration.
  • Refactor
    • Replaced the previous Tettra app definition with a new, feature-rich implementation supporting key Tettra API functionalities.
  • Revert
    • Removed obsolete files and configurations related to the previous Tettra implementation.

Copy link

vercel bot commented Jun 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview Jun 24, 2025 11:19pm
pipedream-docs ⬜️ Ignored (Inspect) Jun 24, 2025 11:19pm
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) Jun 24, 2025 11:19pm

Copy link
Contributor

coderabbitai bot commented Jun 24, 2025

Walkthrough

This change introduces a new Tettra app integration along with two actions: "Create Page" and "Suggest Page." It adds modules for API interaction, dynamic property loading, and action execution. The package metadata is updated, and old files are removed or replaced to support the new implementation.

Changes

File(s) Change Summary
components/tettra/.gitignore, components/tettra/app/tettra.app.ts Deleted legacy files: .gitignore and the old Tettra app definition.
components/tettra/package.json Updated version, entry point, removed "files" field, added dependencies.
components/tettra/tettra.app.mjs Added new Tettra app definition with API methods, property definitions, and authentication handling.
components/tettra/actions/create-page/create-page.mjs Added "Create Page" action to create a new Tettra page with dynamic category/subcategory selection.
components/tettra/actions/suggest-page/suggest-page.mjs Added "Suggest Page" action to create a new suggestion in Tettra, supporting dynamic user assignment and category input.

Sequence Diagram(s)

sequenceDiagram
    participant Workflow
    participant CreatePageAction
    participant TettraApp
    participant TettraAPI

    Workflow->>CreatePageAction: Run "Create Page" action with inputs
    CreatePageAction->>TettraApp: createPage({ title, body, categoryId, subcategoryId })
    TettraApp->>TettraAPI: POST /v1/pages (with page data)
    TettraAPI-->>TettraApp: API response (page created)
    TettraApp-->>CreatePageAction: Return API response
    CreatePageAction-->>Workflow: Output summary and response
Loading
sequenceDiagram
    participant Workflow
    participant SuggestPageAction
    participant TettraApp
    participant TettraAPI

    Workflow->>SuggestPageAction: Run "Suggest Page" action with inputs
    SuggestPageAction->>TettraApp: suggestPage({ title, description, categoryId, assignableId })
    TettraApp->>TettraAPI: POST /v1/page_suggestions (with suggestion data)
    TettraAPI-->>TettraApp: API response (suggestion created)
    TettraApp-->>SuggestPageAction: Return API response
    SuggestPageAction-->>Workflow: Output summary and response

Assessment against linked issues

Objective Addressed Explanation
Add Tettra app integration (app definition, authentication, API methods) (#13278)
Implement "Create Page" action with required 'pageTitle', optional 'pageContent' (#13278) The action uses 'title' and 'body' props; mapping to 'pageTitle'/'pageContent' is not explicit.
Implement "create-suggestion" action with required 'suggestionContent' (#13278) The action uses 'title' and 'description'; mapping to 'suggestionContent' is not explicit.

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Removal of .gitignore (components/tettra/.gitignore) Deleting .gitignore is not directly related to the Tettra integration or actions objectives.
Package metadata changes unrelated to features (components/tettra/package.json) Changes to entry point, version, and dependencies are not specified in the objectives, though necessary.

Poem

In Tettra’s warren, new pages grow,
With actions swift, suggestions flow.
Categories, users, all in line,
API calls work just fine.
A bunny hops from page to page—
Integration set for a brand-new age!
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

components/tettra/actions/suggest-page/suggest-page.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:201:49)

components/tettra/actions/create-page/create-page.mjs

Oops! Something went wrong! :(

ESLint: 8.57.1

Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'jsonc-eslint-parser' imported from /eslint.config.mjs
at Object.getPackageJSONURL (node:internal/modules/package_json_reader:255:9)
at packageResolve (node:internal/modules/esm/resolve:767:81)
at moduleResolve (node:internal/modules/esm/resolve:853:18)
at defaultResolve (node:internal/modules/esm/resolve:983:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:801:12)
at #cachedDefaultResolve (node:internal/modules/esm/loader:725:25)
at ModuleLoader.resolve (node:internal/modules/esm/loader:708:38)
at ModuleLoader.getModuleJobForImport (node:internal/modules/esm/loader:309:38)
at #link (node:internal/modules/esm/module_job:201:49)


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 49cd252 and f779278.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • components/tettra/actions/create-page/create-page.mjs (1 hunks)
  • components/tettra/actions/suggest-page/suggest-page.mjs (1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (4)
  • GitHub Check: pnpm publish
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (4)
components/tettra/actions/suggest-page/suggest-page.mjs (2)

1-51: LGTM! Well-structured action with proper property definitions.

The action follows standard patterns with good use of propDefinitions for dynamic property loading and proper summary message export.


40-45: ```shell
#!/bin/bash

Revised search for API calls and field naming patterns

Search for occurrences of createPage and suggestPage handlers

rg -A5 -B5 "createPage" -g '.js' -g '.mjs'
rg -A5 -B5 "suggestPage" -g '.js' -g '.mjs'

Search for snake_case vs camelCase fields

rg -n "assignable_id" -g '.js' -g '.mjs'
rg -n "assignableId" -g '.js' -g '.mjs'
rg -n "category:" -g '.js' -g '.mjs'
rg -n "category_id" -g '.js' -g '.mjs'


</details>
<details>
<summary>components/tettra/actions/create-page/create-page.mjs (2)</summary>

`1-51`: **Excellent implementation with proper dependent properties.**

The action is well-structured with:
- Proper dependent property setup for subcategoryId based on categoryId
- Consistent API field naming (snake_case)
- Clear property descriptions and documentation links
- Standard async pattern with proper summary export

---

`27-35`: **Great use of dependent properties.**

The subcategoryId property correctly depends on categoryId, allowing for dynamic loading of subcategories based on the selected category. This is a best practice for cascading dropdowns.

</details>

</blockquote></details>

</details>
<!-- internal state start -->


<!-- DwQgtGAEAqAWCWBnSTIEMB26CuAXA9mAOYCmGJATmriQCaQDG+Ats2bgFyQAOFk+AIwBWJBrngA3EsgEBPRvlqU0AgfFwA6NPEgQAfACgjoCEYDEZyAAUASpETZWaCrKNwSPbABsvkCiQBHbGlcSHFcLzpIACJoElxcKkhyAHcFZm58cgxcRGjIFLRkBwFmdRp6OTDYD2xESkgAcWgAMTQvBjR8dAx6VHglHPgAM3goouTHAQaARgB2ACYANgAWDRga6ztUL3gMAGsogmqPJAcPMxmAZgW5gA4AGgKEBlgUUO1mZGOGL3x6yDYTJYNgUIh7IjrABy3TQtFo6ngWXakCUiAYFHg3HEWX4fCUuG0XmQKnweBOjFgmFIyD2iUU2AYUT2FNs6H8PAo+AkAzo63cnh8fkCwUQoU6WGm6AYTMQ9Xo1ApAFUbAAZLiwBLcRAcAD0uvBuF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zK7grgVgGBcqwqhFXK5gZg7g4rrK7gzKhEVgrhBxhx+LGx1LNLtKMIxhRJaBB0ww6qgA== -->

<!-- internal state end -->
<!-- finishing_touch_checkbox_start -->

<details open="true">
<summary>✨ Finishing Touches</summary>

- [ ] <!-- {"checkboxId": "7962f53c-55bc-4827-bfbf-6a18da830691"} --> 📝 Generate Docstrings

</details>

<!-- finishing_touch_checkbox_end -->
<!-- tips_start -->

---

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

<details>
<summary>❤️ Share</summary>

- [X](https://twitter.com/intent/tweet?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A&url=https%3A//coderabbit.ai)
- [Mastodon](https://mastodon.social/share?text=I%20just%20used%20%40coderabbitai%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20the%20proprietary%20code.%20Check%20it%20out%3A%20https%3A%2F%2Fcoderabbit.ai)
- [Reddit](https://www.reddit.com/submit?title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&text=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code.%20Check%20it%20out%3A%20https%3A//coderabbit.ai)
- [LinkedIn](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fcoderabbit.ai&mini=true&title=Great%20tool%20for%20code%20review%20-%20CodeRabbit&summary=I%20just%20used%20CodeRabbit%20for%20my%20code%20review%2C%20and%20it%27s%20fantastic%21%20It%27s%20free%20for%20OSS%20and%20offers%20a%20free%20trial%20for%20proprietary%20code)

</details>

<details>
<summary>🪧 Tips</summary>

### Chat

There are 3 ways to chat with [CodeRabbit](https://coderabbit.ai?utm_source=oss&utm_medium=github&utm_campaign=PipedreamHQ/pipedream&utm_content=17264):

- Review comments: Directly reply to a review comment made by CodeRabbit. Example:
  - `I pushed a fix in commit <commit_id>, please review it.`
  - `Explain this complex logic.`
  - `Open a follow-up GitHub issue for this discussion.`
- Files and specific lines of code (under the "Files changed" tab): Tag `@coderabbitai` in a new review comment at the desired location with your query. Examples:
  - `@coderabbitai explain this code block.`
  -	`@coderabbitai modularize this function.`
- PR comments: Tag `@coderabbitai` in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
  - `@coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.`
  - `@coderabbitai read src/utils.ts and explain its main purpose.`
  - `@coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.`
  - `@coderabbitai help me debug CodeRabbit configuration file.`

### Support

Need help? Create a ticket on our [support page](https://www.coderabbit.ai/contact-us/support) for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

### CodeRabbit Commands (Invoked using PR comments)

- `@coderabbitai pause` to pause the reviews on a PR.
- `@coderabbitai resume` to resume the paused reviews.
- `@coderabbitai review` to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
- `@coderabbitai full review` to do a full review from scratch and review all the files again.
- `@coderabbitai summary` to regenerate the summary of the PR.
- `@coderabbitai generate docstrings` to [generate docstrings](https://docs.coderabbit.ai/finishing-touches/docstrings) for this PR.
- `@coderabbitai generate sequence diagram` to generate a sequence diagram of the changes in this PR.
- `@coderabbitai resolve` resolve all the CodeRabbit review comments.
- `@coderabbitai configuration` to show the current CodeRabbit configuration for the repository.
- `@coderabbitai help` to get help.

### Other keywords and placeholders

- Add `@coderabbitai ignore` anywhere in the PR description to prevent this PR from being reviewed.
- Add `@coderabbitai summary` to generate the high-level summary at a specific location in the PR description.
- Add `@coderabbitai` anywhere in the PR title to generate the title automatically.

### CodeRabbit Configuration File (`.coderabbit.yaml`)

- You can programmatically configure CodeRabbit by adding a `.coderabbit.yaml` file to the root of your repository.
- Please see the [configuration documentation](https://docs.coderabbit.ai/guides/configure-coderabbit) for more information.
- If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: `# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json`

### Documentation and Community

- Visit our [Documentation](https://docs.coderabbit.ai) for detailed information on how to use CodeRabbit.
- Join our [Discord Community](http://discord.gg/coderabbit) to get help, request features, and share feedback.
- Follow us on [X/Twitter](https://twitter.com/coderabbitai) for updates and announcements.

</details>

<!-- tips_end -->

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5105a6c and 49cd252.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (6)
  • components/tettra/.gitignore (0 hunks)
  • components/tettra/actions/create-page.mjs (1 hunks)
  • components/tettra/actions/suggest-page.mjs (1 hunks)
  • components/tettra/app/tettra.app.ts (0 hunks)
  • components/tettra/package.json (1 hunks)
  • components/tettra/tettra.app.mjs (1 hunks)
💤 Files with no reviewable changes (2)
  • components/tettra/.gitignore
  • components/tettra/app/tettra.app.ts
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: Publish TypeScript components
  • GitHub Check: Verify TypeScript components
  • GitHub Check: Lint Code Base
🔇 Additional comments (11)
components/tettra/tettra.app.mjs (3)

1-5: LGTM! Well-structured app module foundation.

The import and app structure follow Pipedream conventions correctly with proper type and app identifier definitions.


48-65: LGTM! Well-implemented authentication and request handling.

The _makeRequest method correctly handles authentication by adding the API key to the data payload and sets appropriate headers. The use of the team_id in the baseURL follows Tettra's API structure.


66-94: LGTM! API methods are well-structured.

All the API methods correctly use the _makeRequest helper and follow consistent patterns. The endpoint URLs and HTTP methods align with standard REST conventions.

components/tettra/package.json (3)

3-3: LGTM! Appropriate version bump for new functionality.

The version bump to 0.1.0 correctly reflects the addition of new action components and the restructured app module.


5-5: LGTM! Correct main entry point update.

The main entry point correctly references the new app module structure, removing the build/dist dependency.


15-16: Verify the @pipedream/platform version.

Ensure that version ^3.1.0 of @pipedream/platform is stable and contains all the required features for the axios import and app functionality.

What is the latest stable version of @pipedream/platform and are there any known issues with version 3.1.0?
components/tettra/actions/create-page.mjs (3)

1-8: LGTM! Well-structured action module.

The import, metadata, and basic structure follow Pipedream action conventions correctly. The version and documentation link are appropriate.


27-35: LGTM! Correct implementation of dependent props.

The subcategoryId prop correctly uses the categoryId parameter to dynamically load subcategories. The propDefinition pattern is implemented properly.


37-50: LGTM! Proper API call implementation.

The run method correctly structures the API call with snake_case field names as expected by the Tettra API. The summary export and response handling are appropriate.

components/tettra/actions/suggest-page.mjs (2)

1-8: LGTM! Well-structured action module.

The import, metadata, and basic structure follow Pipedream action conventions correctly.


37-50: LGTM! Proper API call structure and response handling.

The run method correctly structures the API call and handles the response appropriately with summary export.

Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@GTFalcao GTFalcao merged commit cd772d0 into master Jun 26, 2025
11 checks passed
@GTFalcao GTFalcao deleted the 13278-tettra branch June 26, 2025 13:11
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.

[Components] tettra
2 participants