nextcloud-libraries / nextcloud-libraries/nextcloud-vue

[NcField] [NcSelect] field in forms

Open
#8,436 11 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

design
Dominant language
Vue
Stars
246
Forks
99
Avg merge
1d 20h
Merged PRs (30d)
103

Description

This came up recently in https://github.com/nextcloud-libraries/nextcloud-vue/pull/7838#issuecomment-4238313817, a little while ago in https://github.com/nextcloud/talk-desktop/pull/1530#issuecomment-3563283763, and https://github.com/nextcloud/server/pull/59431 which is still open.

It's clear that we want a way to more easily fit inputs into forms.

I'm proposing to adapt a solution similar to Talk Desktop:

Image

For fields, a pencil icon would indicate that the field is editable. After clicking it, the "button" would be swapped out by an actual NcField, matching the styling and metrics of the button. Clicking on the checkmark would "save" the value and bring back the button.

For selects, it would be a similar story. Clicking on the button would swap it out with an expanded NcSelect of the same proportions, collapsing it would swap it back.

#7838 may still be viable for simpler selects, but we agreed that it isn't useful for everything, so we'd still need something like this.

What do you think @susnux @ShGKme @nimishavijay?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked nextcloud-vue, Talk Desktop, and server pull requests, then inspect the existing NcField and NcSelect components. Clarify the interaction, component API, and styling requirements with the issue participants before implementation. Done means an agreed and working editable-field and select experience that matches the stated form proportions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
design, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.