feedback kcm: Make it about Plasma
ClosedPublic

Authored by apol on Oct 17 2019, 1:34 PM.

Details

Summary

At the moment we were merging two different concepts into a same KCM and it was
too confusing.
Simplify making the kcm only about Plasma by removing the kill switch and
making sure the text only affects Plasma components.

Diff Detail

Repository
R120 Plasma Workspace
Branch
nokillswitch
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 17825
Build 17843: arc lint + arc unit
apol created this revision.Oct 17 2019, 1:34 PM
Restricted Application added a project: Plasma. Β· View Herald TranscriptOct 17 2019, 1:34 PM
Restricted Application added a subscriber: plasma-devel. Β· View Herald Transcript
apol requested review of this revision.Oct 17 2019, 1:34 PM

+++

kcms/feedback/feedback.h
31

Should we keep this readonly and grey out the whole UI if unset?

Or better yet, is it possible to disable the entire KCM through some .desktop file trick?

Indeed, this is much nicer.

The explanatory text for "Disabled" appears to duplicate some of the text above it though:

apol updated this revision to Diff 68153.Oct 17 2019, 2:44 PM
apol marked an inline comment as done.

Remove duplicated text, disable when the kill switch is on

Ok, now I see this:

Is that caused by a change here, or did something truly change on my system in the last hour?

apol added a comment.Oct 17 2019, 4:00 PM

It's changed in the last iteration of the patch. You probably enabled the kill switch on the present version of the kcm.

In D24733#549185, @apol wrote:

It's changed in the last iteration of the patch. You probably enabled the kill switch on the present version of the kcm.

Yeah, I did. So now how do I turn it off? πŸ˜‚ Is there a CLI tool we can mention in the message, maybe?

apol added a comment.Oct 17 2019, 4:03 PM
In D24733#549185, @apol wrote:

It's changed in the last iteration of the patch. You probably enabled the kill switch on the present version of the kcm.

Yeah, I did. So now how do I turn it off? πŸ˜‚ Is there a CLI tool we can mention in the message, maybe?

you need to change ~/.config/KDE/UserFeedback.conf to Enabled=true

It already is:

apol updated this revision to Diff 68181.Oct 17 2019, 5:47 PM

Ehm...

Yay, that update fixed the issue, phew!

However the strings are still a little garbled:

apol updated this revision to Diff 68184.Oct 17 2019, 6:20 PM

update the description with the applicationName change

The introductory "We make plasma for you..." text is still inappropriately shown in the explanatory text for the Disabled state rather than on top:

apol added a comment.Oct 17 2019, 11:16 PM

Oh, I see what you mean, this text is entirely coming from KUserFeedback.
Maybe it's something we can tackle there:
https://phabricator.kde.org/source/kuserfeedback/browse/master/src/provider/core/feedbackconfiguicontroller.cpp$187

I agree with Nate's comment, but lets get this in and then tackle that there.

I just one QML line that I don't follow, then lets ship it

kcms/feedback/package/contents/ui/main.qml
41–43

warning? It's not really an error exactly if it's configured.

112

Option to consider with regards to Nate's comment:

enabled: slider.value > 0

so it greys out really showing it's disabled, but still has the useful text.

116

I don't understand this top line

apol marked an inline comment as done.Oct 23 2019, 4:36 PM
apol added inline comments.
kcms/feedback/package/contents/ui/main.qml
116

Yeah... feedbackController.telemetryDescription() function depends on applicationName, but since it's a function we don't have a way to notify the text changes. Maybe we could look into improving the API upstream, but it's the only reliable way I found to do this as is.

apol updated this revision to Diff 68620.Oct 23 2019, 4:39 PM

Integrate David's feedback

apol marked an inline comment as done.Oct 23 2019, 4:39 PM
apol added a comment.Oct 23 2019, 4:43 PM

I integrated David's idea to move this patch forward, but I think here we should look into move this text elsewhere:
https://cgit.kde.org/kuserfeedback.git/tree/src/provider/core/feedbackconfiguicontroller.cpp#n188

In this text we are talking about why to enable user feedback while on the other levels we are talking about which information is being sent.

This will need discussion with @vkrause and KUserFeedback.

davidedmundson accepted this revision.Oct 23 2019, 4:43 PM
This revision is now accepted and ready to land.Oct 23 2019, 4:43 PM
ngraham accepted this revision.Oct 23 2019, 4:57 PM

All right, let's fix it there.

This revision was automatically updated to reflect the committed changes.