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

feat(MessageBody): apply checkbox interactivity #12063

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

DorraJaouad
Copy link
Contributor

@DorraJaouad DorraJaouad commented Apr 11, 2024

☑️ Resolves

🖌️ UI Checklist

🖼️ Screenshots / Screencasts

Recording.2024-04-11.152411.mp4

🏁 Checklist

  • 🌏 Tested with Chrome, Firefox and Safari or should not be risky to browser differences
  • 🖥️ Tested with Desktop client or should not be risky for it
  • 🖌️ Design was reviewed, approved or inspired by the design team
  • ⛑️ Tests are included or not possible
  • 📗 User documentation in https://github.com/nextcloud/documentation/tree/master/user_manual/talk has been updated or is not required

@DorraJaouad DorraJaouad added enhancement feature: chat 💬 Chat and system messages labels Apr 11, 2024
@DorraJaouad DorraJaouad added this to the 💙 Next Major (30) milestone Apr 11, 2024
@DorraJaouad DorraJaouad self-assigned this Apr 11, 2024
@DorraJaouad DorraJaouad force-pushed the feat/11402/checkbox-interactivity branch from 91501ea to 4319499 Compare April 11, 2024 14:23
Copy link
Contributor

@Antreesy Antreesy left a comment

Choose a reason for hiding this comment

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

Oh, and also should message should be editable ⚠️
Please refer to the #11402 (comment)

let checkBoxIndex = 0
const lines = this.message.split('\n')
for (let i = 0; i < lines.length; i++) {
if (lines[i].trim().match(/^- {1,4}\[\s\]/) || lines[i].trim().match(/^- {1,4}\[x\]/)) {
Copy link
Contributor

@Antreesy Antreesy Apr 11, 2024

Choose a reason for hiding this comment

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

could be more that 4 spaces. Maybe use ^\s*-\s+\[(\s|x)\]?
image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

between - and [ ] ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I assume you are referring to the spaces before -, trim() is there for that.

Signed-off-by: DorraJaouad <dorra.jaoued7@gmail.com>
@DorraJaouad DorraJaouad force-pushed the feat/11402/checkbox-interactivity branch from 4319499 to dab36c8 Compare April 11, 2024 14:54
@DorraJaouad
Copy link
Contributor Author

/backport to stable29

@DorraJaouad DorraJaouad merged commit b4da366 into main Apr 11, 2024
45 checks passed
@DorraJaouad DorraJaouad deleted the feat/11402/checkbox-interactivity branch April 11, 2024 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature: chat 💬 Chat and system messages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interactive checklist in messages
3 participants