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

BUG: Character Creation - Resolved. Code Base Cleaned Up. REAMDE Cleaned Up and Updated. #15

Open
wants to merge 21 commits into
base: develop
Choose a base branch
from

Conversation

ErikPlachta
Copy link
Collaborator

No description provided.

ErikPlachta and others added 16 commits February 20, 2022 20:22
Bug fixing in Develop to push to main.
All BUGS worked out and Develop Finalized
add added DnD API and Character Sheet CSS to list of techs used in README.md
…eetshow.erikplachta.com, and add link to website on repo..
…g creation to crash due to DnD API API change in profs.
Resolved Bug with Character Creation
BUG Resolved: Character Creation Failing
@ErikPlachta ErikPlachta self-assigned this Oct 30, 2022
@ErikPlachta
Copy link
Collaborator Author

ErikPlachta commented Oct 30, 2022

@NicaVulcan - I'm not sure if you want to merge these changes, but I got the application working on Character Creation again and wanted to make sure you were aware.

This merge contains A LOT more than just the BUG fix

@ErikPlachta ErikPlachta added bug Something isn't working documentation Improvements or additions to documentation labels Oct 30, 2022
…ionality in functioncreateAbilityScores(), cleaned up logic, add comments, verified works.
Resolved Bugs with Asset Mapping and Enabled/Verified AbilityScores are generating
Fixed Asset mapping. Enabled Ability Score generation.
@@ -0,0 +1,21 @@
MIT License
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added a license

@@ -1,41 +1,138 @@
# The-Sheet-Show
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Overhaul on README content and design.

@@ -85,6 +85,11 @@ router.get('/:id', (req, res) => {

// create hero
router.post('/', withAuth, (req, res) => {
/** CharacterCreator.js sends in payload from user input and D&D API
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Made note of what this is doing while working on it.

@import url('./animations.css');
@import url('./login.css');
@import url('./character-sheet-template.css');
@import url('./hero-card.css');
:root {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Importing all CSS to simplify / make it quicker to fix an issue.

@@ -0,0 +1,115 @@
// Retrieve selected race ability bonus info
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I pulled this from the branch @NicaVulcan is working on knowing it will change, but I didn't want the app to be partially working.

}

async function createAbilityScores () {
/** Manage calculating abilities scores when user clicks "Calculate" button.
Copy link
Collaborator Author

@ErikPlachta ErikPlachta Oct 30, 2022

Choose a reason for hiding this comment

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

Did some big cleanup on this function and enabled things

for (let i = 0; i < array.length; i++) {
arr.push(array[i].index);

const get_nRandomProficiencies = function (array, n) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Simplified this, added comments, and verified working.

This was the source of the Character Creation failure

@@ -15,7 +15,8 @@ const loginFormHandler = async (event) => {
// alert('Login Success.');
document.location.replace('/');
} else {
alert('Failed to log in.');
// console.log(response)
alert('Failed to log in. Please check username, password and try again.');
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Add more complete message for now

@@ -2,6 +2,36 @@
<form id="character-form">
<h1>Character Creator</h1>

<!-- Name input-->
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Rearranged input order

@@ -1,4 +1,4 @@
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Removed Bootstrap as it's not needed

Copy link
Collaborator Author

@ErikPlachta ErikPlachta left a comment

Choose a reason for hiding this comment

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

Updated with comments and verified

Taking down the app as i no longer want to work on it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants