-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
refactor(profile): migrate edit profile modal to SolidJS (@AzureNightlock, @fehmer) #7900
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
Miodec
merged 23 commits into
monkeytypegame:master
from
AzureNightlock:refactor/edit-profile-modal
May 19, 2026
Merged
Changes from 8 commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c623967
refactor(profile): migrate edit profile modal to SolidJS
AzureNightlock 26e124c
impr(submit-button): use isDefaultValue instead of isDirty
AzureNightlock 77106d8
add indicator to TextareaField
AzureNightlock dfce5cb
merge refactor/edit-profile-modal
AzureNightlock 33c9836
temp
AzureNightlock f893afc
add twitter validation change
AzureNightlock 24ca977
refactor(profile): migrate edit profile modal to SolidJS
AzureNightlock e08acdf
lint fix
AzureNightlock 22b496a
refactor badge selection
fehmer 666c430
fix roundness on none badge, fix snapshot usage
fehmer d2ad2e2
Merge branch 'master' into refactor/edit-profile-modal
fehmer c83c30f
fix snapshot not updating
fehmer 2b6d247
resize user badge
AzureNightlock 0b03a53
fix badge not getting updated, public profile showing outdated inform…
fehmer d8ed4dd
fix hover on badge selector
fehmer 8c7629e
add none to badge-controller
fehmer 08edfa7
cosmetics
fehmer 379168a
use null
AzureNightlock be14ca9
remove selectedBadgeId from user.spec.ts
AzureNightlock a882dac
Revert "remove selectedBadgeId from user.spec.ts"
fehmer 82d62b3
Revert "use null"
fehmer 05ea82c
Merge branch 'master' into refactor/edit-profile-modal
fehmer 9bef970
Merge branch 'master' into refactor/edit-profile-modal
fehmer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,38 @@ | ||
| import { badges, UserBadge } from "../../controllers/badge-controller"; | ||
|
|
||
| export function BadgeButton(props: { | ||
|
fehmer marked this conversation as resolved.
Outdated
|
||
| id: number; | ||
| selected: boolean; | ||
| onClick: () => void; | ||
| }) { | ||
| const badge = (): UserBadge | undefined => | ||
| props.id !== -1 ? badges[props.id] : undefined; | ||
|
|
||
| return ( | ||
| <button | ||
| type="button" | ||
| class="mr-2 mb-2 w-max cursor-pointer rounded-half p-0" | ||
| classList={{ | ||
| "opacity-100": props.selected, | ||
| "opacity-25 hover:opacity-100": !props.selected, | ||
| }} | ||
| onClick={() => props.onClick()} | ||
| > | ||
| <div | ||
| class="badge" | ||
| style={ | ||
| badge() | ||
| ? { | ||
| background: badge()?.background, | ||
| color: badge()?.color, | ||
| ...badge()?.customStyle, | ||
| } | ||
| : undefined | ||
| } | ||
| > | ||
| <i class={`fas ${badge()?.icon ?? "fa-frown-open"}`}></i> | ||
| <div class="text">{badge()?.name ?? "none"}</div> | ||
| </div> | ||
| </button> | ||
| ); | ||
| } | ||
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
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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.