Skip to content
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

Gem summary UI #4061

Merged
merged 8 commits into from
Nov 22, 2023
Merged

Gem summary UI #4061

merged 8 commits into from
Nov 22, 2023

Conversation

kayla-glick
Copy link
Contributor

@kayla-glick kayla-glick commented Nov 22, 2023

Struggled to push the latest updates to the fork's branch so re-opened the PR
Original PR #4050

Adds a summary of gems in the gear tab as requested by the community. Also makes some visual improves to the mobile layout of the gear tab.

image

NerdEgghead and others added 7 commits November 17, 2023 15:56
 Changes to be committed:
	new file:   ui/core/components/gem_summary_action.ts
	modified:   ui/core/individual_sim_ui.ts
 Changes to be committed:
	modified:   ui/core/components/gem_summary_action.ts
 Changes to be committed:
	modified:   ui/core/components/gear_picker.tsx
	deleted:    ui/core/components/gem_summary_action.ts
	modified:   ui/core/individual_sim_ui.ts
@@ -125,7 +125,7 @@ export class ItemRenderer extends Component {
readonly socketsContainerElem: HTMLElement;

constructor(parent: HTMLElement, player: Player<any>) {
super(parent, 'item-picker-root');
super(parent, 'item-renderer-root');
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The nested item-picker-root class was causing rendering issues particularly on mobile

Comment on lines 25 to 30
this.container = new ContentBlock(this.rootElem, 'gem-summary-container', {
header: {title: 'Gem Summary'}
});

player.gearChangeEmitter.on(() => this.updateTable());
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Minor nit, but looks like indentation got messed up here maybe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah looks like my editor made these new lines use spaces instead of tabs. Nice catch! It looked fine for me because I use 2-space tab sizing but I'll bet it looks funky if you use anything else

@kayla-glick kayla-glick merged commit 2dca17b into master Nov 22, 2023
1 check passed
@kayla-glick kayla-glick deleted the gem-summary-ui branch November 22, 2023 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants