You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The reason will be displayed to describe this comment to others. Learn more.
The changelog doesn't mention that .debug-banner.yaml is still supported for backward compatibility. This is an important detail for existing users who may have this file already configured.
Suggested change
- Added support for multiple config filenames: `.disco-devbar.yaml`, `.disco-devbar.yml`
- Added support for multiple config filenames: `.disco-devbar.yaml`, `.disco-devbar.yml`
-`.debug-banner.yaml` is still supported for backward compatibility.
The reason will be displayed to describe this comment to others. Learn more.
The date format used here ("2025-qq-05") appears to be a placeholder that was never replaced with the actual date. This should be corrected to include the proper month abbreviation or numeric representation.
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
The reason will be displayed to describe this comment to others. Learn more.
The documentation doesn't mention that .debug-banner.yaml is still supported for backward compatibility. Users who have existing configurations using this filename should be informed that it will continue to work, or that they should migrate to the new naming convention.
Suggested change
-`.disco-devbar.yml`
-`.disco-devbar.yml`
-`.debug-banner.yaml` (supported for backward compatibility; consider migrating to `.disco-devbar.yaml`)
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
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
@@ -73,6 +80,23 @@ public function getDiscoDevBarData(): DiscoDevBarData
);
}
/**
* Find the first existing config file from the list of supported filenames
*
* @return string|null Full path to config file or null if none found
*/
private function findConfigFile(): ?string
{
foreach (self::CONFIG_FILES as $filename) {
$path = $this->projectDir . '/' . $filename;
if (\file_exists($path)) {
return $path;
}
}
return null;
}
/**
* Check if any widget in the array has expand=true
*
Expand Down
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.
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.
The changelog doesn't mention that
.debug-banner.yamlis still supported for backward compatibility. This is an important detail for existing users who may have this file already configured.