Skip to content

Add user cover preset model #11081

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

Merged
merged 8 commits into from
Apr 1, 2024
Merged

Conversation

nanaya
Copy link
Collaborator

@nanaya nanaya commented Mar 11, 2024

Just the models. Not linked to user just yet (and would otherwise depend on #10804). The management page ended up weirder than expected 👀 probably can use some more javascripts/react but this basic one seems to somehow work.

No idea what group should have access to this yet so admin only for now.

Tests to be added later. Maybe.

Oh and there's bug with simple form's input which I'm not fixing here.

@nanaya nanaya force-pushed the cover-preset-table branch from be0b49c to d9f6120 Compare March 19, 2024 07:17
@nanaya nanaya mentioned this pull request Mar 25, 2024
3 tasks
Comment on lines +293 to +295
Route::post('user-cover-presets/batch-activate', 'UserCoverPresetsController@batchActivate')->name('user-cover-presets.batch-activate');
Route::resource('user-cover-presets', 'UserCoverPresetsController', ['only' => ['index', 'store', 'update']]);

Copy link
Collaborator

Choose a reason for hiding this comment

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

shouldn't these go under /admin?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

not if we're going to allow this to be accessible by non-admin

Copy link
Member

Choose a reason for hiding this comment

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

would be very nice to have it under /admin now in the console page, highly doubt any other usergroup will get access to this.

(another side effect is me having to look back at this PR each time to remember the route lol)

@notbakaneko
Copy link
Collaborator

notbakaneko commented Apr 1, 2024

Oh and there's bug with simple form's input which I'm not fixing here.

is it the input is resizable 👀

@notbakaneko notbakaneko enabled auto-merge April 1, 2024 14:03
@notbakaneko notbakaneko merged commit c4750ba into ppy:master Apr 1, 2024
3 checks passed
@nanaya nanaya deleted the cover-preset-table branch July 26, 2024 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants