-
Notifications
You must be signed in to change notification settings - Fork 446
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
feat(NoteToSelf): add tasks counter #13122
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise - looks neat!
if (!this.$refs.scroller) { | ||
return | ||
} | ||
const tasksDoneCount = this.$refs.scroller.querySelectorAll('.checkbox-content__icon--checked')?.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another way could be to check message store for messages (- [ ]
and - [x]
?
In case there would be an opportunity to render not all messages (virtual scroller)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Performance-wise, it is more expensive as you will loop through messages.
Accuracy-wise, not all - [ ]
are considered a checklist, maybe we need to do the same check when clicking on a list item to change the state.
6c37e2d
to
57b5519
Compare
Signed-off-by: DorraJaouad <[email protected]>
57b5519
to
aba6325
Compare
@nickvergessen shall we backport this now, or respecting the string freeze - only after the 20.0 release? |
Drawn apart. I'd say lets do it, but the translation string looks "wrong" anyway |
/backport to stable30 |
showUpcomingEvent() { | ||
return this.nextEvent && !this.isInCall && !this.isSidebar && !this.isMobile | ||
&& this.conversation.type === CONVERSATION.TYPE.NOTE_TO_SELF | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to be unrelated and breaking upcoming events @DorraJaouad
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or supposed to be !==
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or supposed to be
!==
Still not related to task counting though 👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, it should be !==
indeed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or supposed to be
!==
Still not related to task counting though 👀
Also true, but as I was adding the counter and touching that space in TopBar
, I thought it could be slipped in this PR.
☑️ Resolves
🖌️ UI Checklist
🖼️ Screenshots / Screencasts
🏁 Checklist