Fix/add dbd card deck#3094
Merged
Merged
Conversation
- Copy dbd-cards-1.0-en.yaml into priv/repo/cornucopia - Add migration to alter misc column from string to text (DBD cards exceed 255 chars) - Add migration to populate DBD cards into the database - Add DBD card template in show.html.heex following cumulus pattern - Add DBD CSS in cards.scss with official suit colours from digitalbenefits.uk - Add DBD to game creation dropdown in create_game_form.ex - Add DBD session label and version in game_live/show.ex and player_live/show.ex Official DBD suit colours: - Scope: Rifle Green #3E4736 - Architecture: Mustard Green #677740 - Agency: Sunray #DBBC58 - Trust: Cafe Au Lait #A8854C - Porosity: Chestnut #944C36 - Cornucopia: Puce Red #613030 - Wild Card: Pastel Orange #FEB048 Closes OWASP#2640
- Replace custom layout with standard left-bar ribbon and main-content - Use SCSS map with official DBD suit colours for gradient left-bar - J/Q/K cards get semi-transparent suit colour background - Remove misc/research credit text from Joker cards in copi display - Template updated to match webapp left-bar structure
sydseter
previously requested changes
Jun 10, 2026
Contributor
Author
|
Now this pr is ready for review thats why i am taking this out of draft. @sydseter whenever you have time please take a look at this. |
Collaborator
|
@Adarshkumar0509 You are missing a "}" in the stylesheet. When running mix phx.server I am getting: [info] Access CopiWeb.Endpoint at http://localhost:4000
|
Contributor
Author
|
Okay I will take a look |
Contributor
Author
|
hii @sydseter, done! |
sydseter
approved these changes
Jun 11, 2026
Collaborator
|
@Adarshkumar0509 thank you very much for adding DBD Cornucopia |
Contributor
Author
|
Hii @cw-owasp it's all my pleasure! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Resolved #2640
Adds Digital Benefits Deck (DBD) card support to copi.owasp.org.
Changes
dbd-cards-1.0-en.yamlintopriv/repo/cornucopiamisccolumn fromstringtotext(DBD cards exceed varchar 255)show.html.heexfollowing the webapp/companion patterncards.scssusing SCSS map with official suit colours and gradient left-bargame_live/show.exandplayer_live/show.exOfficial DBD suit colours
Tested locally
localhost:4000/cardswith gradient left-bar ribbonsdigitalbenefits.uk/deck/{suit}/{value}localhost:4000/games/newScreenshots:
and i am just 1 image because there is lot of image
AI Tool Disclosure
Affirmation