[CustomCom] Better display for [p]cc list #2215

Merged
Tobotimus merged 6 commits from V3/bugfix/2104 into V3/release/3.0.0 2018-10-15 23:39:45 +02:00
Tobotimus commented 2018-10-09 12:54:08 +02:00 (Migrated from github.com)

Uses a menu, optionally embedded with respect to the embed settings, for scrolling through the custom command list, each cc with a ~50 character preview. Format is purposefully similar to the help menu.

Resolves #2104.

Uses a menu, optionally embedded with respect to the embed settings, for scrolling through the custom command list, each cc with a ~50 character preview. Format is purposefully similar to the help menu. Resolves #2104.
palmtree5 (Migrated from github.com) reviewed 2018-10-09 12:54:08 +02:00
tekulvw (Migrated from github.com) reviewed 2018-10-09 12:54:08 +02:00
mikeshardmind (Migrated from github.com) requested changes 2018-10-15 01:35:04 +02:00
mikeshardmind (Migrated from github.com) left a comment

I don't think these changes are of the quality we should push for. It may make the list cleaner, but significantly less functional. If we need an RC3 to accomplish this, so be it in my mind.

I don't think these changes are of the quality we should push for. It may make the list cleaner, but significantly less functional. If we need an RC3 to accomplish this, so be it in my mind.
mikeshardmind (Migrated from github.com) commented 2018-10-15 01:33:22 +02:00

I don't like this pagification method with embed. I think this is a good case for field based pagination to allow new lines in previews. While this method is certainly cleaner looking than the previous one, It's also less functional for many purposes.

As an example, I have many CCs in a codiing discord utilizing code blocks. The only thing I get is the language specifier and escaped backticks for those.

I don't like this pagification method with embed. I think this is a good case for field based pagination to allow new lines in previews. While this method is certainly cleaner looking than the previous one, It's also less functional for many purposes. As an example, I have many CCs in a codiing discord utilizing code blocks. The only thing I get is the language specifier and escaped backticks for those.
Twentysix26 commented 2018-10-15 22:50:13 +02:00 (Migrated from github.com)

I like it, certainly leagues better than the previous form.
Maybe the issue with the code blocks could be resolved by replacing the new lines characters in the previews with a space.
Minor nitpick and maybe up to personal preference: I think it may look better displayed on two lines for each command

cmd1
preview
cmd2
preview
(...)
I like it, certainly leagues better than the previous form. Maybe the issue with the code blocks could be resolved by replacing the new lines characters in the previews with a space. Minor nitpick and maybe up to personal preference: I think it may look better displayed on two lines for each command ``` cmd1 preview cmd2 preview (...) ```
mikeshardmind (Migrated from github.com) approved these changes 2018-10-15 22:53:59 +02:00
mikeshardmind (Migrated from github.com) left a comment

After discussion in discord, I'm modifying my review to approval.

If nobody else does, I'll eventually be looking to add an additional way to browse CCs myself later with more detail, but this shouldn't block unbreaking the current behavior for.

After discussion in discord, I'm modifying my review to approval. If nobody else does, I'll eventually be looking to add an additional way to browse CCs myself later with more detail, but this shouldn't block unbreaking the current behavior for.
Tobotimus commented 2018-10-15 23:03:05 +02:00 (Migrated from github.com)

@Twentysix26 I actually hadn't thought of replacing newlines with spaces, I will actually give that a go. For displaying the preview on the next line, I think I personally prefer the current method for similarity with the help menu, but I will do it and post some screenshots FTR.

@Twentysix26 I actually hadn't thought of replacing newlines with spaces, I will actually give that a go. For displaying the preview on the next line, I think I personally prefer the current method for similarity with the help menu, but I will do it and post some screenshots FTR.
Tobotimus commented 2018-10-15 23:33:33 +02:00 (Migrated from github.com)

Screenshots

Original PR style embed (click me)

With newlines replaced with spaces

With preview on following line

I prefer the 2nd one, so I'm gonna go with it 😃

### Screenshots <h4> <details> <summary>Original PR style embed (click me)</summary> <img src=https://user-images.githubusercontent.com/7438501/46979408-44016900-d11d-11e8-9453-8bfd4c4c45af.png /> </details> </h4> <h4> <details> <summary>With newlines replaced with spaces</summary> <img src=https://user-images.githubusercontent.com/7438501/46979638-d43fae00-d11d-11e8-8a9e-0e3f5a08280a.png /> </details> </h4> <h4> <details> <summary>With preview on following line</summary> <img src=https://user-images.githubusercontent.com/7438501/46979669-e6b9e780-d11d-11e8-86d3-5a21b16ca9e4.png /> </details> </h4> I prefer the 2nd one, so I'm gonna go with it :smiley:
Sign in to join this conversation.
No labels
Automated PR
Blocked
Blocked By: Damage Control
Blocked By: Dependency
Blocked By: Other PR
Breaking Change
Category: CI
Category: Cogs - Admin
Category: Cogs - Alias
Category: Cogs - Audio
Category: Cogs - Bank
Category: Cogs - Cleanup
Category: Cogs - CustomCommands
Category: Cogs - Dev
Category: Cogs - Downloader
Category: Cogs - Economy
Category: Cogs - Filter
Category: Cogs - General
Category: Cogs - Image
Category: Cogs - Mod
Category: Cogs - Modlog
Category: Cogs - Mutes
Category: Cogs - Permissions
Category: Cogs - Reports
Category: Cogs - Streams
Category: Cogs - Trivia
Category: Cogs - Trivia - Lists
Category: Cogs - Warnings
Category: Core - API - App Commands Package
Category: Core - API - Audio
Category: Core - API - Bank
Category: Core - API - Commands Package
Category: Core - API - Config
Category: Core - API - Other
Category: Core - API - Utils Package
Category: Core - Bot Class
Category: Core - Bot Commands
Category: Core - Command-line Interfaces
Category: Core - Downloader
Category: Core - Help
Category: Core - i18n
Category: Core - Modlog
Category: Core - Other Internals
Category: Core - RPC/ZMQ
Category: Docker
Category: Docs - Changelogs
Category: Docs - For Developers
Category: Docs - Install Guides
Category: Docs - Other
Category: Docs - User Guides
Category: Meta
Category: RPC/ZMQ methods
Category: Vendored Packages
Changelog Entry: Added
Changelog Entry: Pending
Changelog Entry: Skipped
Closed: Duplicate
Closed: External
Closed: Invalid
Closed: User Error
Closed: Won't Fix
Complex Issue
Docs-only
Feature Branch
Good First Issue
Help Wanted
High Priority
Needs Backport To stable-docs
No Activity
No Repro
QA: Bypassed
QA: Changes Requested
QA: Passed
Release Blocker
Status: Accepted
Status: Frozen
Status: In Progress
Status: Needs Discussion
Status: Needs Info
Status: Needs Triage
Status: PRs Welcome
Type: Bug
Type: Dependency Update
Type: Deprecation
Type: Enhancement
Type: Feature
Type: Informational
Type: Merge
Type: Optimisation
Type: Question
Type: Removal
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Mrcoolgamer11/Red-DiscordBot!2215
No description provided.