Bug 485368

Summary: Cheat sheet doesn't work
Product: [Applications] KleverNotes Reporter: Nicolas Fella <nicolas.fella>
Component: UIAssignee: Louis Schul <schul9louis>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Nicolas Fella 2024-04-11 11:48:26 UTC
Clicking on "Cheat sheet" doesn't open anything and prints

qrc:/contents/ui/main.qml:114: TypeError: Cannot read property 'cheatSheet' of null
Comment 1 Louis Schul 2024-04-11 11:52:13 UTC
Intentionnal behavior.

The cheat sheet only opens when a note is currently open.

However, the error message should be fixed.
Comment 2 Nicolas Fella 2024-04-11 12:13:11 UTC
That's not good UX though. If something is clickable I expect something to happen when I click it. If the element is not relevant it should be disabled or moved somewhere else so that it only appears in the relevant context.

In this particular case I don't see why we wouldn't enable it all the time, it's just a static list of markdown syntax, no?
Comment 3 Louis Schul 2024-04-11 12:19:45 UTC
(In reply to Nicolas Fella from comment #2)
> That's not good UX though. If something is clickable I expect something to
> happen when I click it. If the element is not relevant it should be disabled
> or moved somewhere else so that it only appears in the relevant context.
> 
> In this particular case I don't see why we wouldn't enable it all the time,
> it's just a static list of markdown syntax, no?

Yes, it make sens, will fix.
Comment 4 Louis Schul 2024-04-11 16:13:30 UTC
FIXED BY:
"Allow opening CheatSheet outside of a note" -> https://invent.kde.org/office/klevernotes/-/merge_requests/91