Skip to content
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

Feature: Show threads by ID #465

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bmulholland
Copy link

@bmulholland bmulholland commented Oct 14, 2022

Code changes

We have a list of threads that we've assembled using our app's "secret sauce," and now want to show the user this curated lists of threads as kind of an automatically created folder. We don't want to create folders or labels for the user, because that gets into preferences of if (and how) they'd like their email data modified.

We also want to make the mailbox UI interactive, which is to say, we want the Nylas component to run HTTP requests. It should load the body of emails, contact data, and write data back, allowing for star/unstar etc. The only current way to display a specific set of threads in the Mailbox is to supply all_threads, but that requires optimistic loading of all data (very slow), and disables all the interactive parts of the component.

This change, previously discussed with Hazik Azfal, adds support for passing in a list of thread IDs, which fulfills all requirements. We're about to deploy the mailbox component to production with this modification (along with other changes in other PRs)

Closes #439

Readiness checklist

  • Added changes to component CHANGELOG.md
  • New property added? make sure to update component/src/properties.json
  • Cypress tests passing?
  • New cypress tests added?
  • Included before/after screenshots, if the change is visual

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

@vercel
Copy link

vercel bot commented Oct 14, 2022

@bmulholland is attempting to deploy a commit to the Nylas Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Oct 14, 2022

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

Name Status Preview Updated
components ❌ Failed (Inspect) Oct 18, 2022 at 2:43PM (UTC)

// at a time :(
const queryString = `${getMiddlewareApiUrl(
query.component_id,
)}/threads/${thread_id}?view=expanded`;
Copy link
Author

Choose a reason for hiding this comment

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

It would be a lot faster if the Nylas API had a way to fetch a list of threads in a single call. Also, fetching the expanded view seems like a lot of data. Combined, these queries are slow and would ideally be improved.

@AaronDDM AaronDDM requested review from yifanplanet, a team and krisgardiner and removed request for a team October 14, 2022 17:41
@yifanplanet yifanplanet removed the request for review from krisgardiner January 9, 2023 19:31
@yifanplanet yifanplanet removed their request for review March 17, 2023 14:56
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.

Feature Request: Mailbox with custom list of threads
1 participant