Skip to content

Commit

Permalink
fix(api): added missing included paths for playlist (#707)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyrch authored Jun 30, 2024
1 parent acd95fe commit 294ab4f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/Filament/Resources/List/Playlist.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,8 @@ public static function table(Table $table): Table

TextColumn::make(PlaylistModel::ATTRIBUTE_NAME)
->label(__('filament.fields.playlist.name.name'))
->limit(40)
->tooltip(fn (TextColumn $column) => $column->getState())
->sortable()
->copyableWithMessage()
->toggleable(),
Expand Down Expand Up @@ -253,6 +255,7 @@ public static function infolist(Infolist $infolist): Infolist

TextEntry::make(PlaylistModel::ATTRIBUTE_NAME)
->label(__('filament.fields.playlist.name.name'))
->limit(30)
->copyableWithMessage(),

TextEntry::make(PlaylistModel::ATTRIBUTE_VISIBILITY)
Expand All @@ -279,6 +282,7 @@ public static function infolist(Infolist $infolist): Infolist

TextEntry::make(PlaylistModel::ATTRIBUTE_DESCRIPTION)
->label(__('filament.fields.playlist.description.name'))
->markdown()
->placeholder('-')
->copyableWithMessage()
->columnSpanFull(),
Expand Down
3 changes: 2 additions & 1 deletion app/Filament/Resources/Wiki/Anime.php
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ public static function infolist(Infolist $infolist): Infolist
->copyableWithMessage(),

TextEntry::make(AnimeModel::ATTRIBUTE_SLUG)
->label(__('filament.fields.anime.slug.name')),
->label(__('filament.fields.anime.slug.name'))
->limit(60),

TextEntry::make(AnimeModel::ATTRIBUTE_YEAR)
->label(__('filament.fields.anime.year.name')),
Expand Down
3 changes: 3 additions & 0 deletions app/Http/Api/Schema/List/PlaylistSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ public function allowedIncludes(): array
new AllowedInclude(new UserSchema(), Playlist::RELATION_USER),

new AllowedInclude(new ArtistSchema(), 'tracks.video.animethemeentries.animetheme.song.artists'),
new AllowedInclude(new ArtistSchema(), 'tracks.animethemeentry.animetheme.song.artists'),
new AllowedInclude(new AudioSchema(), 'tracks.video.audio'),
new AllowedInclude(new ImageSchema(), 'tracks.video.animethemeentries.animetheme.anime.images'),
new AllowedInclude(new ImageSchema(), 'tracks.animethemeentry.animetheme.anime.images'),
new AllowedInclude(new VideoSchema(), 'tracks.video'),
new AllowedInclude(new GroupSchema(), 'tracks.video.animethemeentries.animetheme.group'),
new AllowedInclude(new GroupSchema(), 'tracks.animethemeentry.animetheme.group'),
new AllowedInclude(new TrackSchema(), 'tracks.previous'),
new AllowedInclude(new TrackSchema(), 'tracks.next'),
];
Expand Down

0 comments on commit 294ab4f

Please sign in to comment.