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

feat: add support for display text in links #1431

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open

Conversation

levimykel
Copy link
Contributor

@levimykel levimykel commented Aug 20, 2024

Resolves: DT-2256

Description

Adds support for the display text property in link fields.

Checklist

  • If my changes require tests, I added them.
  • If my changes affect backward compatibility, it has been discussed.
  • If my changes require an update to the CONTRIBUTING.md guide, I updated it.

Preview

How to QA 1

Footnotes

  1. Please use these labels when submitting a review:
    ❓ #ask: Ask a question.
    💡 #idea: Suggest an idea.
    ⚠️ #issue: Strongly suggest a change.
    🎉 #nice: Share a compliment.

Copy link

vercel bot commented Aug 20, 2024

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

Name Status Preview Updated (UTC)
slice-machine ✅ Ready (Inspect) Visit Preview Sep 17, 2024 10:22pm

@levimykel levimykel marked this pull request as ready for review August 23, 2024 10:16
@levimykel levimykel requested a review from a team as a code owner August 23, 2024 10:16
Copy link
Contributor

@jomifepe jomifepe left a comment

Choose a reason for hiding this comment

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

LGTM 🚀 Left only some minor suggestions

Copy link
Contributor

@dani-mp dani-mp left a comment

Choose a reason for hiding this comment

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

left some comments

Copy link
Collaborator

@xrutayisire xrutayisire left a comment

Choose a reason for hiding this comment

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

Just tested the alpha and saw that the default value for "Allow display text" is false where it should be true by default.

@levimykel
Copy link
Contributor Author

Just tested the alpha and saw that the default value for "Allow display text" is false where it should be true by default.

Done ✅

Comment on lines 39 to 45
checked={Boolean(text)}
onChange={(event) => {
void setFieldValue(
"config.text",
event.target.checked ? { type: "Text" } : undefined,
);
}}
Copy link
Contributor

Choose a reason for hiding this comment

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

nice 👍

# Conflicts:
#	package.json
#	packages/slice-machine/package.json
#	yarn.lock
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.

4 participants