Skip to content

Commit

Permalink
Merge pull request #1442 from hydephp/code-cleanup
Browse files Browse the repository at this point in the history
Handle old todo markers in codebase
  • Loading branch information
caendesilva authored Nov 8, 2023
2 parents f71aadf + 42993cd commit c56631e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy-documentation-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ jobs:
run: rm resources/views/vendor/hyde/components/docs/documentation-article.blade.php

- name: Create component to add an information badge
# TODO 1. Extract to component. 2. Add feature to hide card which is stored in local session storage for the duration of the visit (so it's reset on next PR page visit)
run: |
mkdir -p resources/views/vendor/hyde/layouts
cp vendor/hyde/framework/resources/views/layouts/docs.blade.php resources/views/vendor/hyde/layouts/docs.blade.php
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ protected function getLinesFromInputStream(): array

protected function shouldTerminate(string $line): bool
{
// TODO add option to terminate with two blank lines (useful for tags input, but is default to false, for example to accept paragraphs)
// We could add an option to terminate with two blank lines (useful for tags input, but is default to false, for example to accept paragraphs)

return $line === self::TERMINATION_SEQUENCE || str_contains($line, self::END_OF_TRANSMISSION);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ protected function handleEmptyMediaFilesCollection(PublicationFieldDefinition $f
$this->newLine();
$this->warn("<fg=red>Warning:</> No media files found in $directory");
if ($this->confirm('Would you like to skip this field?', true)) {
// TODO We could have a choice here, where 0 skips, and 1 reloads the media files
// We could have a choice here, where 0 skips, and 1 reloads the media files
return null;
} else {
throw new InvalidArgumentException('Unable to locate any media files for this publication type');
Expand Down
3 changes: 2 additions & 1 deletion packages/publications/src/Concerns/PublicationFieldTypes.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ enum PublicationFieldTypes: string
case Array = 'array';
case Media = 'media';
case Text = 'text';
case Tag = 'tag'; // TODO: Rename to "tags"?
/** @deprecated May be renamed to Tags to better fit usage */
case Tag = 'tag';
case Url = 'url';

/** Get the default validation rules for this field type. */
Expand Down

0 comments on commit c56631e

Please sign in to comment.