question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configurable Cards

See original GitHub issue

Discuss whether users should be able to configure a custom set of cards.

Code is prepared and does support that. Currently the client contains hard-coded card configuration:

[
    {label: '?', value: -2, color: '#bdbfbf'},
    {label: '1/2', value: 0.5, color: '#667a66'},
    {label: '1', value: 1, color: '#839e7a'},
    {label: '2', value: 2, color: '#8cb876'},
    {label: '3', value: 3, color: '#96ba5b'},
    {label: '5', value: 5, color: '#b6c76b'},
    {label: '8', value: 8, color: '#c9c857'}
]

The rest of the app is agnostic to the content of that config, as long as every card specifies a label, a value and a color.

Idea

  • Remove hardcoded “cardConfig” from client. Default “cardConfig” is set in the backend as property on the “room” object. Client receives that together with rest of room state on “joinedRoom” event. (and can be put onto redux store)
  • Introduce “setCardConfig” command and “cardConfigSet” event.
  • Provide UI for users to set custom cardConfig

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xeronimuscommented, Sep 29, 2020

Deployed in release 0.7.0

0reactions
ackvfcommented, Sep 29, 2020

Yeah, it’s perfect. The interface seems simple enough as well. Anyway, I suspect that people will be writing the JSON in an IDE anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configurable Cards feature configuration
The Configurable Cards feature enables you to add and customize the features in Engagement Messenger that are not available by default.
Read more >
Configuration Card - Dribbble
Configuration Card. Inspirational designs, illustrations, and graphic elements from the world's best designers. Want more inspiration?
Read more >
Customizable Cards - Etsy
Check out our customizable cards selection for the very best in unique or custom, handmade pieces from our shops.
Read more >
Customizable / Cards & Card Stock / Paper & Printable Media
Online shopping for Office Products from a great selection of Greeting Cards, Postcards, Business Cards, Index Cards, Cover Stock, Tent Cards & more...
Read more >
Photo Cards and Photo Invitations | Customized Online
Looking to create custom photo cards and invites for your special occasion? Check out Mixbook's card templates collection. Get up to 50% off...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found