Skip to content

Fix/add dbd card deck#3094

Merged
sydseter merged 4 commits into
OWASP:masterfrom
Adarshkumar0509:fix/add-dbd-card-deck
Jun 11, 2026
Merged

Fix/add dbd card deck#3094
sydseter merged 4 commits into
OWASP:masterfrom
Adarshkumar0509:fix/add-dbd-card-deck

Conversation

@Adarshkumar0509

@Adarshkumar0509 Adarshkumar0509 commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

Description

Resolved #2640

Adds Digital Benefits Deck (DBD) card support to copi.owasp.org.

Changes

  • Copy dbd-cards-1.0-en.yaml into priv/repo/cornucopia
  • Migration to alter misc column from string to text (DBD cards exceed varchar 255)
  • Migration to populate DBD cards into the database
  • DBD card template in show.html.heex following the webapp/companion pattern
  • DBD CSS in cards.scss using SCSS map with official suit colours and gradient left-bar
  • DBD added to game creation dropdown
  • DBD session label and version added 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: Café Au Lait #A8854C
  • Porosity: Chestnut #944C36
  • Cornucopia: Puce Red #613030
  • Wild Card: Pastel Orange #FEB048

Tested locally

  • Cards render correctly at localhost:4000/cards with gradient left-bar ribbons
  • "Need more info?" links point to digitalbenefits.uk/deck/{suit}/{value}
  • DBD appears in deck dropdown at localhost:4000/games/new
  • All 6 DBD suits load correctly in game creation
  • J/Q/K cards render with semi-transparent suit colour background
  • Game creation works end to end

Screenshots:

image

and i am just 1 image because there is lot of image

image

AI Tool Disclosure

  • My contribution does not include any AI-generated content
  • My contribution includes AI-generated content, as disclosed below:
  • Parts of this implementation were developed with AI assistance (ChatGpt).
  • All code was reviewed, tested locally, and verified against the existing pattern

Affirmation

- 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
@Adarshkumar0509 Adarshkumar0509 marked this pull request as draft June 10, 2026 04:01

@sydseter sydseter left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@Adarshkumar0509 Adarshkumar0509 marked this pull request as ready for review June 10, 2026 11:49
@Adarshkumar0509

Copy link
Copy Markdown
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.

@sydseter

sydseter commented Jun 11, 2026

Copy link
Copy Markdown
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
X [ERROR] unmatched "}".

1732 │ }
│ ^

  • 1732:1 root stylesheet [plugin sass-plugin]

@Adarshkumar0509

Copy link
Copy Markdown
Contributor Author

Okay I will take a look

@Adarshkumar0509

Copy link
Copy Markdown
Contributor Author

hii @sydseter, done!

@sydseter sydseter self-requested a review June 11, 2026 20:57
@sydseter sydseter dismissed their stale review June 11, 2026 20:57

Great!

@sydseter sydseter merged commit aa2fd3b into OWASP:master Jun 11, 2026
9 checks passed
@Adarshkumar0509 Adarshkumar0509 deleted the fix/add-dbd-card-deck branch June 12, 2026 04:12
@cw-owasp

Copy link
Copy Markdown
Collaborator

@Adarshkumar0509 thank you very much for adding DBD Cornucopia

@Adarshkumar0509

Copy link
Copy Markdown
Contributor Author

Hii @cw-owasp it's all my pleasure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add DBD card deck to copi.owasp.org

3 participants