Bug 485368 - Cheat sheet doesn't work
Summary: Cheat sheet doesn't work
Status: RESOLVED FIXED
Alias: None
Product: KleverNotes
Classification: Applications
Component: UI (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal (vote)
Target Milestone: ---
Assignee: Louis Schul
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-11 11:48 UTC by Nicolas Fella
Modified: 2024-04-11 16:13 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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