Skip to content

Refactor UI Panel Structure and Optimize Auction/Shop UI#1162

Merged
SjnExe merged 1 commit into
mainfrom
jules-11497863229978523783-4c1b3246
Jun 26, 2026
Merged

Refactor UI Panel Structure and Optimize Auction/Shop UI#1162
SjnExe merged 1 commit into
mainfrom
jules-11497863229978523783-4c1b3246

Conversation

@SjnExe

@SjnExe SjnExe commented Jun 25, 2026

Copy link
Copy Markdown
Owner

This pull request introduces a series of layout and structural improvements to the server's UI panels. These changes aim to make navigating the most frequently used systems easier for both players and staff.

Changes:

  1. Restructured mainPanel (Main Menu):
    • The intermediate menus for "Economy" and "Social" have been removed.
    • Highly active features like Shop, Auction House, Games, Player List, Teams, and Friends now reside directly on the first page, making them much faster to access.
  2. Staff Configuration Menu Improvements:
    • Moved the Reset Settings (configResetPanel) button to appear strictly at the bottom of the config list for server admins.
  3. Auction House Refactor:
    • Rewrote the underlying UI button logic inside showAuctionHouse, showYourListings, and showMailboxUI. Previously, buttons and selections were tracked using complex offset integers which were prone to bugs when layouts changed. They now utilize a cleaner array-mapping pattern.
  4. Shop UI Fixes:
    • Repaired an issue where pagination on the Shop UI pages incorrectly called the utility function (addPaginationItems) using the panel ID instead of the permission string, resolving a potential UI breakage.

PR created automatically by Jules for task 11497863229978523783 started by @SjnExe

- Redesigned `mainPanel` in `panelRegistry.ts` to directly present frequently used features (Shop, Auction House, Games, etc.) at the top, removing intermediate categories like `economyMainPanel` and `socialMainPanel`.
- Relocated the 'Reset Settings' button in `configPanel.ts` to persistently appear at the very bottom of the admin Configuration panel list.
- Improved the Auction House UI generation in `src/features/auction/ui/panel.ts` to use a dynamic array builder pattern instead of rigid and fragile offset calculations.
- Fixed a bug in Shop User Panel pagination by ensuring the correct permission argument was provided to `addPaginationItems`.

Co-authored-by: SjnExe <142050666+SjnExe@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@SjnExe SjnExe merged commit 0c19e19 into main Jun 26, 2026
6 checks passed
@SjnExe SjnExe deleted the jules-11497863229978523783-4c1b3246 branch June 26, 2026 18:53
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.

1 participant