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

Button! #1808

Merged
merged 1 commit into from
Oct 12, 2021
Merged

Button! #1808

merged 1 commit into from
Oct 12, 2021

Conversation

marcoambrosini
Copy link
Contributor

@marcoambrosini marcoambrosini commented Mar 31, 2021

@Pytal

This comment has been minimized.

@marcoambrosini

This comment has been minimized.

@marcoambrosini

This comment has been minimized.

@marcoambrosini marcoambrosini changed the title Feature/noid/button2 Button! Aug 16, 2021
@marcoambrosini marcoambrosini self-assigned this Aug 16, 2021
@marcoambrosini marcoambrosini added 1. to develop Accepted and waiting to be taken care of component Component discussion and/or suggestion technical debt 2. developing Work in progress and removed 1. to develop Accepted and waiting to be taken care of labels Aug 16, 2021
@raimund-schluessler

This comment has been minimized.

@marcoambrosini

This comment has been minimized.

@raimund-schluessler

This comment has been minimized.

@nimishavijay

This comment has been minimized.

@marcoambrosini

This comment has been minimized.

@raimund-schluessler

This comment has been minimized.

@marcoambrosini
Copy link
Contributor Author

Yes, that's what I meant. I got a warning when I had both Button and a button in the same component. But I didn't further check on this problem to be honest.

Let's call it nc-button? cc @skjnldsv @juliushaertl

Great, it's fine for me. I was just wondering, sorry.

No worries, that's on me :)

@raimund-schluessler
Copy link
Contributor

Yes, that's what I meant. I got a warning when I had both Button and a button in the same component. But I didn't further check on this problem to be honest.

Let's call it nc-button? cc @skjnldsv @juliushaertl

I thought about this again and I think one can just import/mount the Button component under a different name in case there is a clash between the button tag and the Button component. So I guess it's a matter of taste if we rename it or not. It should work either way.

Signed-off-by: marco <marcoambrosini@pm.me>
Copy link
Contributor

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

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

Very nice 👍

Copy link
Contributor

@ChristophWurst ChristophWurst left a comment

Choose a reason for hiding this comment

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

Code looks good

@ChristophWurst ChristophWurst merged commit 89161d4 into master Oct 12, 2021
@ChristophWurst ChristophWurst deleted the feature/noid/button2 branch October 12, 2021 06:16
@raimund-schluessler
Copy link
Contributor

I guess this will be in nextcloud/vue@4.3.0 since it is not a breaking change.

But due to nextcloud/server#25774 using the Button component will require Nextcloud 22.2.1 or higher. How do we handle this, and could we maybe backport nextcloud/server#25774 to stable21 and stable20 as well (since they are still supported)?

@ChristophWurst
Copy link
Contributor

I guess this will be in nextcloud/vue@4.3.0 since it is not a breaking change.

This new component doesn't work with older versions of Nextcloud. This is a breaking change IMO. I would make a clear cut with a major release.

Ref nextcloud/server#25774 (comment)

@raimund-schluessler
Copy link
Contributor

raimund-schluessler commented Oct 12, 2021

This new component doesn't work with older versions of Nextcloud. This is a breaking change IMO. I would make a clear cut with a major release.

But it also doesn't break anything for apps that upgrade, since the component simply wasn't available before 🙈. I guess it's a matter of interpretation under which version number we release it.

The more severe problem is which server version will be compatible. If we really don't backport, many apps (e.g. Calendar, Tasks, Maps, Contacts, all which support all server versions with a single release) will only be able to use the button component (or strictly speaking, updating to nc-vue@5.0.0) once server v23 is the oldest supported version (July 2022). This will make the component quite useless until then.

Is there maybe the possibility to make the Button component self-contained (i.e. not dependent on a specific server version), by including all CSS properties and variables in nc-vue? That way, it could be used with any server version.

@marcoambrosini
Copy link
Contributor Author

Is there maybe the possibility to make the Button component self-contained (i.e. not dependent on a specific server version), by including all CSS properties and variables in nc-vue? That way, it could be used with any server version.

It heavily relies on the theming engine in the server. This is something we will encounter every time we'll have to add new Colors, I don't think that bringing everything to the component's scoped styles is a good solution.

@raimund-schluessler
Copy link
Contributor

Is there maybe the possibility to make the Button component self-contained (i.e. not dependent on a specific server version), by including all CSS properties and variables in nc-vue? That way, it could be used with any server version.

It heavily relies on the theming engine in the server. This is something we will encounter every time we'll have to add new Colors, I don't think that bringing everything to the component's scoped styles is a good solution.

That's up to Nextcloud to decide internally, I guess. It just means that this component is mainly useless until server v22 is EOL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews component Component discussion and/or suggestion technical debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Button standardization
8 participants