Skip to content

feat: Fetch and persist app action buttons#5935

Merged
yash-rajpal merged 16 commits intofeat/ai-app-actionsfrom
feat/persist-app-actions
Nov 25, 2024
Merged

feat: Fetch and persist app action buttons#5935
yash-rajpal merged 16 commits intofeat/ai-app-actionsfrom
feat/persist-app-actions

Conversation

@yash-rajpal
Copy link
Member

@yash-rajpal yash-rajpal commented Oct 25, 2024

Proposed changes

Fetching and storing all Rocket.Chat app actions in watermelon DB and redux state.
Also implemented real-time handling of this stored data based on streamed data from server related to apps changes.

Issue(s)

How to test or reproduce

Screenshots

Types of changes

  • Bugfix (non-breaking change which fixes an issue)
  • Improvement (non-breaking change which improves a current function)
  • New feature (non-breaking change which adds functionality)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Further comments

RCAI-23

@yash-rajpal yash-rajpal marked this pull request as ready for review November 21, 2024 15:40
const isMethodCall = endpoint?.startsWith('method.call/');
try {
const result = await this.current.post(endpoint, params);
const result = await this.current.post(endpoint, params, undefined, undefined, undefined, apiVersion);
Copy link
Member

Choose a reason for hiding this comment

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

Commenting just so we're all aware, but this is only reasonable because there's a work here that would make it possible to call sdk.post specifying api version in a more elegant way.
sdk.post('/v1/..., sdk.post('/apps/...

Hopefully this is only temporary 😬

@yash-rajpal yash-rajpal changed the base branch from develop to feat/ai-app-actions November 25, 2024 05:18
@yash-rajpal yash-rajpal merged commit 37eecd2 into feat/ai-app-actions Nov 25, 2024
@yash-rajpal yash-rajpal deleted the feat/persist-app-actions branch November 25, 2024 05:18
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.

2 participants