Skip to content

Switch art/design credits to use on-site username/ID instead of alias#37

Merged
itinerare merged 17 commits into
lk-arpg:masterfrom
itinerare:main
Nov 15, 2020
Merged

Switch art/design credits to use on-site username/ID instead of alias#37
itinerare merged 17 commits into
lk-arpg:masterfrom
itinerare:main

Conversation

@itinerare
Copy link
Copy Markdown
Member

@itinerare itinerare commented Nov 8, 2020

  • Add css to make images in parsed text not stretch the page, especially on mobile
  • Switch artist and designer credits to using on-site usernames/IDs rather than aliases; user selection now a dropdown using selectize.
  • Add a function akin to character ownership updating which, on verification or viewing of a user's profile, assigns any existing character image creators with the same alias as the user to the user's ID instead
  • This function can also extract alias from dA URLs provided as credit to perform this operation
  • Add a command to perform the same function for existing character image creators (php artisan assign-art-credits-to-ids) where possible (that is, where a user exists on the site with a given alias); aliases without associated accounts are converted to urls (assumes a dA account). The "alias" column can be safely dropped after this operation, if desired.
  • Update masterlist/MYO masterlist search to use on-site usernames instead
  • Add a helper function which formats user profile urls from various sites in the fashion of the old (username)@ dA links, and changed art/design credits to use it.
  • Add a config file for sites including regex to facilitate the above/easy addition of sites

Tested locally - Requires migration

@itinerare itinerare added the needs review Pull requests that are pending community review label Nov 8, 2020
@itinerare itinerare changed the title Add css to make images in parsed text not stretch the page, especiall… Switch art/design credits to use on-site username/ID instead of alias Nov 10, 2020
@itinerare itinerare marked this pull request as draft November 10, 2020 17:02
@itinerare itinerare marked this pull request as ready for review November 10, 2020 20:17
Copy link
Copy Markdown
Contributor

@preimpression preimpression left a comment

Choose a reason for hiding this comment

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

Overall, looks good! Just the couple of weird inconsistencies we talked abt on Discord.

// Searching on image properties
if($request->get('species_id')) $imageQuery->where('species_id', $request->get('species_id'));
if($request->get('artists')) {
if($request->get('artist')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Inconsistency in request for 'artist' vs 'artists'

});
}
if($request->get('designers')) {
if($request->get('designer')) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Inconsistency in request for 'designer' vs 'designers'

Copy link
Copy Markdown
Collaborator

@Draginraptor Draginraptor left a comment

Choose a reason for hiding this comment

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

Sorry that it took a while, but I think the code looks good!

@itinerare itinerare added reviewed Pull requests that have received community review and are pending merge and removed needs review Pull requests that are pending community review labels Nov 15, 2020
@itinerare itinerare merged commit 64af6ff into lk-arpg:master Nov 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

reviewed Pull requests that have received community review and are pending merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants