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

[#119] Support link blocks #120

Merged
merged 2 commits into from
Sep 8, 2023
Merged

[#119] Support link blocks #120

merged 2 commits into from
Sep 8, 2023

Conversation

dcastro
Copy link
Member

@dcastro dcastro commented Sep 8, 2023

Description

Problem: If a user types a message with a link, the link text will be ignored by the MessageBlock processor:

For example, in the message below, extractPieces will return ["Hey let's meet at ", "tomorrow?"].

Hey, let's meet at [10:30](link to google calendar here) tomorrow?

Solution: Parse blocks of type link, and collate the link text with adjacent text-like blocks.

image

Related issue(s)

Fixed #119

✅ Checklist for your Pull Request

Related changes (conditional)

  • Tests

    • If I added new functionality, I added tests covering it.
    • If I fixed a bug, I added a regression test to prevent the bug from
      silently reappearing again.
  • Documentation

    • I checked whether I should update the docs and did so if necessary:

Stylistic guide (mandatory)

✓ Release Checklist

  • I updated the version number in package.yaml.
  • (After merging) I created a new entry in the releases page,
    with a summary of all user-facing changes.
    • I made sure a tag was created using the format vX.Y

Problem: If a user types a message with a link, the link text will be
ignored by the `MessageBlock` processor:

For example, in the message below, `extractPieces` will return `["Hey
let's meet at ", "tomorrow?"]`.

```
Hey, let's meet at [10:30](link to google calendar here) tomorrow?
```

Solution: Parse blocks of type `link`, and collate the link text with
adjacent text-like blocks.
@dcastro dcastro force-pushed the diogo/#119-support-link-blocks branch from 73f9077 to cabd88f Compare September 8, 2023 10:56
@dcastro dcastro merged commit 1b2761e into main Sep 8, 2023
4 checks passed
@dcastro dcastro deleted the diogo/#119-support-link-blocks branch September 8, 2023 10:57
@dcastro dcastro changed the title Diogo/#119 support link blocks [#119] support link blocks Sep 8, 2023
@dcastro dcastro changed the title [#119] support link blocks [#119] Support link blocks Sep 8, 2023
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.

Support link blocks
1 participant