-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix: Ensure login form inputs are contained within the form container #214
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,16 +1,4 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||
node_modules | ||||||||||||||||||||||||||||||||||||||||||||||||||
.sass-cache | ||||||||||||||||||||||||||||||||||||||||||||||||||
.idea | ||||||||||||||||||||||||||||||||||||||||||||||||||
*.sublime-workspace | ||||||||||||||||||||||||||||||||||||||||||||||||||
package-lock.json | ||||||||||||||||||||||||||||||||||||||||||||||||||
vendor | ||||||||||||||||||||||||||||||||||||||||||||||||||
wp-content | ||||||||||||||||||||||||||||||||||||||||||||||||||
package.json | ||||||||||||||||||||||||||||||||||||||||||||||||||
.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
templates/.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
assets/.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
assets/css/.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
*.DS_Store | ||||||||||||||||||||||||||||||||||||||||||||||||||
.vscode | ||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
1
to
+4
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Critical: Reconsider removal of package management files According to the AI summary,
Apply this diff to restore package management: node_modules
vendor
*.DS_Store
.vscode
+!package.json
+!package-lock.json 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1 @@ | ||||||||||
20 | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider specifying the complete version number. Howzit! The version specification could be more precise. While specifying just the major version (20) works, it would be lekker to align it exactly with the minimum version requirement in package.json (>=20.10.0) to ensure proper compatibility across all development environments. Here's a suggested change: -20
+20.10.0 📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Specify the complete Node.js version number Howzit! The version specified is quite broad, hey. While Node.js version 20 is correct, it would be lekker to specify the complete version number (20.10.0) to match your Apply this change: -20
+20.10.0 📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,18 +1,26 @@ | ||||||||||||||||||||||||||
<?xml version="1.0"?> | ||||||||||||||||||||||||||
<ruleset | ||||||||||||||||||||||||||
name="WordPress-LSX" | ||||||||||||||||||||||||||
name="WordPress-LSX-Design" | ||||||||||||||||||||||||||
namespace="WordPressCS\WordPress" | ||||||||||||||||||||||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||||||||||||||||||||||||||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd" | ||||||||||||||||||||||||||
> | ||||||||||||||||||||||||||
<description>Coding standards</description> | ||||||||||||||||||||||||||
<description>WordPress Coding Standards for HTML and PHP files in the project.</description> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
Comment on lines
+8
to
+9
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider enhancing the description Whilst the description is accurate, it could be more informative by mentioning the specific WordPress coding standards being enforced. - <description>WordPress Coding Standards for HTML and PHP files in the project.</description>
+ <description>WordPress Coding Standards (Core, Docs, and Extra) for HTML and PHP files in the LSX Design project.</description>
|
||||||||||||||||||||||||||
<rule ref="WordPress"/> | ||||||||||||||||||||||||||
<rule ref="WordPress-Core"/> | ||||||||||||||||||||||||||
<rule ref="WordPress-Docs"/> | ||||||||||||||||||||||||||
<rule ref="WordPress-Extra"/> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<!-- Paths to exclude from the scan --> | ||||||||||||||||||||||||||
<exclude-pattern>vendor/*</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>node_modules/*</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>assets/*</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>styles/*</exclude-pattern> | ||||||||||||||||||||||||||
Comment on lines
+15
to
+19
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Add comments explaining exclusions The exclusion patterns are correct, but would benefit from documentation explaining why each directory is excluded. <!-- Paths to exclude from the scan -->
- <exclude-pattern>vendor/*</exclude-pattern>
- <exclude-pattern>node_modules/*</exclude-pattern>
- <exclude-pattern>assets/*</exclude-pattern>
- <exclude-pattern>styles/*</exclude-pattern>
+ <!-- Third-party dependencies -->
+ <exclude-pattern>vendor/*</exclude-pattern>
+ <exclude-pattern>node_modules/*</exclude-pattern>
+ <!-- Compiled and static assets -->
+ <exclude-pattern>assets/*</exclude-pattern>
+ <exclude-pattern>styles/*</exclude-pattern> 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<!-- Paths to scan --> | ||||||||||||||||||||||||||
<file>.</file> | ||||||||||||||||||||||||||
<exclude-pattern>/tests/</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>/vendor/</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>/wordpress/</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>/wp-content/</exclude-pattern> | ||||||||||||||||||||||||||
<exclude-pattern>/dependencies/</exclude-pattern> | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
<arg name="extensions" value="php" /> | ||||||||||||||||||||||||||
<arg name="basepath" value="./" /> | ||||||||||||||||||||||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,3 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"extends": "stylelint-config-recommended" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider enhancing the Stylelint configuration, boet! Whilst the basic configuration is proper, you might want to beef up the rules to prevent future CSS layout issues. Here's what I reckon you should add:
Here's a suggested enhancement: {
- "extends": "stylelint-config-recommended"
+ "extends": [
+ "stylelint-config-standard",
+ "stylelint-config-recess-order"
+ ],
+ "plugins": [
+ "stylelint-no-unsupported-browser-features"
+ ],
+ "rules": {
+ "plugin/no-unsupported-browser-features": [true, {
+ "severity": "warning"
+ }],
+ "property-no-unknown": true,
+ "declaration-block-no-duplicate-properties": true,
+ "declaration-block-no-shorthand-property-overrides": true,
+ "box-sizing-no-border-box": null
+ }
}
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Looks good, but could be more comprehensive! The basic configuration is correct and provides a solid foundation for CSS linting. However, considering the project's focus on preventing layout issues, we could enhance it further. Consider extending the configuration with these additional rules: {
- "extends": "stylelint-config-recommended"
+ "extends": [
+ "stylelint-config-recommended",
+ "@wordpress/stylelint-config"
+ ],
+ "rules": {
+ "declaration-property-value-disallowed-list": {
+ "box-sizing": ["content-box"]
+ },
+ "declaration-property-value-allowed-list": {
+ "box-sizing": ["border-box"]
+ }
+ }
} These changes would:
📝 Committable suggestion
Suggested change
Comment on lines
+1
to
+3
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider using WordPress-specific stylelint configuration, my china! Howzit! While the Additionally, consider adding these rules to make your config more kiff: {
- "extends": "stylelint-config-recommended"
+ "extends": "@wordpress/stylelint-config",
+ "rules": {
+ "no-descending-specificity": null,
+ "selector-class-pattern": null,
+ "max-line-length": 120,
+ "declaration-property-unit-allowed-list": {
+ "line-height": []
+ }
+ }
} These rules will:
📝 Committable suggestion
Suggested change
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -7,6 +7,7 @@ form#loginform input{ | |||||
line-height: 1.33333; | ||||||
border-radius: 6px; | ||||||
display:block; | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Please add a space after the colon in the display property. For consistency with other property declarations in the file, add a space after the colon. - display:block;
+ display: block; 📝 Committable suggestion
Suggested change
|
||||||
box-sizing: border-box; | ||||||
} | ||||||
form#loginform input#rememberme{ | ||||||
display: inline-flex; | ||||||
|
Original file line number | Diff line number | Diff line change | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,7 +1,11 @@ | ||||||||||||
{ | ||||||||||||
"name": "lightspeeddevelopment/lsx", | ||||||||||||
"name": "lightspeedwp/lsx-design", | ||||||||||||
"description": "is a minimalistic WordPress theme that allows users to create fast, efficient and attractive websites that are feature-rich. The theme displays perfectly on all desktop and portable devices.", | ||||||||||||
"type": "wordpress-theme", | ||||||||||||
"keywords": [ | ||||||||||||
"WordPress", | ||||||||||||
"Themes" | ||||||||||||
], | ||||||||||||
"require": { | ||||||||||||
"php": ">=8.0", | ||||||||||||
"composer/installers": "^2.0.0" | ||||||||||||
|
@@ -29,5 +33,18 @@ | |||||||||||
"dealerdirect/phpcodesniffer-composer-installer": true, | ||||||||||||
"johnpbloch/wordpress-core-installer": true | ||||||||||||
} | ||||||||||||
} | ||||||||||||
} | ||||||||||||
}, | ||||||||||||
"config": { | ||||||||||||
"allow-plugins": { | ||||||||||||
"dealerdirect/phpcodesniffer-composer-installer": true | ||||||||||||
} | ||||||||||||
}, | ||||||||||||
Comment on lines
+37
to
+41
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the duplicate 'config' section There's a duplicate 'config' section that needs to be removed. The first config section already contains the necessary plugin configurations. Apply this diff to resolve the issue: - "config": {
- "allow-plugins": {
- "dealerdirect/phpcodesniffer-composer-installer": true
- }
- }, 📝 Committable suggestion
Suggested change
🧰 Tools🪛 GitHub Check: Codacy Static Code Analysis[warning] 37-37: composer.json#L37 |
||||||||||||
"require-dev": { | ||||||||||||
"squizlabs/php_codesniffer": "^3.10", | ||||||||||||
"wp-coding-standards/wpcs": "^3.1" | ||||||||||||
}, | ||||||||||||
"scripts": { | ||||||||||||
"format": "phpcbf --standard=phpcs.xml.dist --report-summary --report-source", | ||||||||||||
"lint": "phpcs --standard=phpcs.xml.dist" | ||||||||||||
} | ||||||||||||
Comment on lines
+42
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Eish, there's a small issue with the scripts in composer.json! The scripts are referencing "scripts": {
"format": "phpcbf --standard=.phpcs.xml.dist --report-summary --report-source",
"lint": "phpcs --standard=.phpcs.xml.dist"
} 🔗 Analysis chainLekker additions for code quality management! The new dev dependencies and scripts will help maintain consistent code quality. Let's just verify the phpcs.xml.dist file exists. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if phpcs.xml.dist exists and contains the required standard
if [ -f "phpcs.xml.dist" ]; then
echo "phpcs.xml.dist exists"
cat phpcs.xml.dist
else
echo "Warning: phpcs.xml.dist not found"
fi
Length of output: 104 Script: #!/bin/bash
# Let's check for any PHPCS config files with different extensions or names
fd -e xml -e dist --type f | grep -i 'phpcs\|codesniffer'
# Also check if there's any PR description or commit messages mentioning the config
gh pr view --json body,title
git log --grep="phpcs\|codesniffer" --pretty=format:"%h %s"
Length of output: 1103 Script: #!/bin/bash
# Check for the hidden .phpcs.xml.dist file
if [ -f ".phpcs.xml.dist" ]; then
echo ".phpcs.xml.dist exists"
cat .phpcs.xml.dist
else
echo "Warning: .phpcs.xml.dist not found"
fi
Length of output: 2269
Comment on lines
+46
to
+49
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Missing phpcs.xml.dist configuration file required for code style scripts The format and lint scripts in composer.json reference a phpcs.xml.dist file that does not exist in the repository. This file is essential for defining the PHP CodeSniffer coding standards and rules.
🔗 Analysis chainProper addition of development scripts! The new format and lint scripts will help maintain consistent code style. However, let's verify the phpcs.xml.dist file exists. 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Check if phpcs.xml.dist exists
if [ -f "phpcs.xml.dist" ]; then
echo "phpcs.xml.dist exists"
cat phpcs.xml.dist
else
echo "Warning: phpcs.xml.dist not found"
fi
Length of output: 104 |
||||||||||||
} |
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,8 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"folders": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
{ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"path": "../../.." | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider using an absolute path instead of a relative path. Eish, using a relative path like "../../.." can be quite dodgy as it depends on where the workspace file is located. This might cause kak for different developers' setups. Consider using an absolute path or a workspace-relative path instead: - "path": "../../.."
+ "path": "${workspaceFolder}" 📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Consider using an absolute path instead of a relative path. Howzit! The relative path "../../.." might become problematic if the workspace file is moved. It would be lekker to use an absolute path or workspace-relative path instead. - "path": "../../.."
+ "path": "${workspaceFolder}"
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+3
to
+5
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Codebase verification Howzit! That workspace path needs a proper fix, my bru. Looking at the repository structure, there's no need to point three directories up since the workspace file is already at the root. Rather use "." to reference the current directory. Here's what's wrong:
Quick fix: Change the path from "../../.." to "." to keep everything lekker and properly referenced. 🔗 Analysis chainEish! The relative path might cause kak workspace loading. The path "../../.." points three directories up, which could lead to inconsistent workspace loading on different machines. Consider using a workspace-relative path instead. Let's check the repository structure to suggest a better path: 🏁 Scripts executedThe following scripts were executed for the analysis: Script: #!/bin/bash
# Description: Check repository structure to determine appropriate workspace path
echo "Repository structure from root:"
tree -L 3 -d
Length of output: 138 Script: #!/bin/bash
# Let's try different commands to understand the workspace structure
# Find the location of the workspace file
echo "Location of workspace file:"
fd -t f "lsx-design.code-workspace"
# Check the content of the workspace file
echo -e "\nWorkspace file content:"
cat $(fd -t f "lsx-design.code-workspace")
# List directories from root to understand structure
echo -e "\nList directories from root:"
ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\// /g' -e 's/^/ /'
# Find any package.json files that might help understand project structure
echo -e "\nPackage.json locations:"
fd -t f "package.json"
Length of output: 1001 |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
], | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"settings": {} | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Add recommended VS Code settings for consistent development. Shame, the empty settings object is a missed opportunity to enforce consistent editor configuration across the team. Consider adding these helpful settings: - "settings": {}
+ "settings": {
+ "editor.formatOnSave": true,
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
+ "editor.codeActionsOnSave": {
+ "source.fixAll.stylelint": true
+ },
+ "css.validate": false,
+ "less.validate": false,
+ "scss.validate": false
+ } 📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧹 Nitpick (assertive) Add useful workspace settings for better developer experience. Eish, the empty settings object is a missed opportunity! Consider adding commonly used settings like:
- "settings": {}
+ "settings": {
+ "files.exclude": {
+ "**/.git": true,
+ "**/node_modules": true
+ },
+ "search.exclude": {
+ "**/dist": true,
+ "**/build": true
+ }
+ },
+ "extensions": {
+ "recommendations": [
+ "dbaeumer.vscode-eslint",
+ "stylelint.vscode-stylelint"
+ ]
+ } 📝 Committable suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion Yoh! Add recommended VS Code settings for web development. The empty settings object misses an opportunity to enforce consistent development practices. Consider adding common settings for web development: - "settings": {}
+ "settings": {
+ "editor.defaultFormatter": "esbenp.prettier-vscode",
+ "editor.formatOnSave": true,
+ "editor.codeActionsOnSave": {
+ "source.fixAll.stylelint": true,
+ "source.fixAll.eslint": true
+ },
+ "files.associations": {
+ "*.css": "css",
+ "*.scss": "scss"
+ }
+ } 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧹 Nitpick (assertive)
💡 Codebase verification
Keep package-lock.json in .gitignore, other removals are acceptable
This is a Node.js project with dependencies, so package-lock.json should remain in .gitignore. While there is one SCSS file, modern build processes don't require .sass-cache, and there are no Sublime Text project files in use.
package-lock.json
back to .gitignore🔗 Analysis chain
Verify if removed entries are truly unnecessary.
Several previously ignored patterns have been removed, such as
.sass-cache
,*.sublime-workspace
, andpackage-lock.json
. Let's verify if these should remain ignored.Consider maintaining documentation of which files should be ignored and why, perhaps in a comment block at the top of the
.gitignore
file.🏁 Scripts executed
The following scripts were executed for the analysis:
Script:
Length of output: 212
Script:
Length of output: 2073