Skip to content
This repository has been archived by the owner on Sep 23, 2024. It is now read-only.

Preview card #216

Merged
merged 6 commits into from
Oct 26, 2023
Merged

Preview card #216

merged 6 commits into from
Oct 26, 2023

Conversation

JohnOberhauser
Copy link
Member

@JohnOberhauser JohnOberhauser commented Oct 26, 2023

  • Adding a link preview card to statuses
    • Had to update our models and mappings
    • Added the PreviewCard ui
  • Reducing the length of links based on the html span tags

@JohnOberhauser JohnOberhauser requested review from a team, devotaaabel and timc-mozilla and removed request for a team October 26, 2023 16:33
embedUrl = embedUrl,
blurHash = blurHash
)
else -> throw Exception("type value is incorrect")
Copy link
Contributor

Choose a reason for hiding this comment

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

I like using error("message") for these types of things which defaults to an IllegalStateException which I think is appropriate here (also it would mean we don't have to supress the detekt rule)

import kotlin.test.assertEquals

@Suppress("MaxLineLength")
class ReduceHtmlLinksTest {
Copy link
Contributor

Choose a reason for hiding this comment

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

👏

@JohnOberhauser JohnOberhauser enabled auto-merge (squash) October 26, 2023 21:52
@JohnOberhauser JohnOberhauser merged commit c3c2141 into main Oct 26, 2023
2 checks passed
@JohnOberhauser JohnOberhauser deleted the linkCard branch October 26, 2023 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants