⚡️ Ideas
Dmytro Shevchenko Dmytro Shevchenko Dec 11, 2024

Allow adding titles for URLs via Input API

Explain the problem as you see it

When inserting a URL node via the Input API, there seems to be no way to specify the title. As a result, URLs look like this:
image.png

I want to be able to specify a human-readable title, e.g.:
image.png

Why is this a problem for you?

My data (in particular, in URL fields) is not convenient to read if I can't specify titles for my URLs. And I miss out on additional semantic context I could provide in the title.
Besides, links are often long, and they don't look nice in e.g. table views.

Suggest a solution

The API schema should include a new "url" field:

{
    "nodes": [
        {
            "url": "https://tana.inc/", /* <–– new field */
            "name": "Tana homepage", /* <–– allow free text in the name if a url is provided */
            "dataType": "url"
        }
    ]
}

To preserve backwards compatibility, the "name" could still accept the URL and preserve the existing behavior if the "url" field is not provided.