Skip to content

Make Result View#12

Merged
Kimhyewon0621 merged 2 commits into
mainfrom
iss3_khw
Dec 11, 2025
Merged

Make Result View#12
Kimhyewon0621 merged 2 commits into
mainfrom
iss3_khw

Conversation

@Kimhyewon0621

Copy link
Copy Markdown
Owner

This PR completes the implementation of the Result View UI. It focuses on displaying generated timetables efficiently and handling user navigation.

Key Changes

  1. Batch Display
    Displays the total number of generated timetables and renders them in batches of 5 for better readability.

  2. Empty State Handling
    Automatically redirects the user to 'Edit' mode if no valid timetables are found.

  3. Navigation Logic
    Provides Next (load next batch) and Edit (modify inputs) options after displaying each batch.

@Kimhyewon0621

Copy link
Copy Markdown
Owner Author

I modified the code to verify that the program runs correctly.

@ljseop1030 ljseop1030 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me! It’s great to see the overall operation of our logic. 👍

@AyeongKwon AyeongKwon left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM😎!
Colorful UI is cuteeeeeeeee!

String input = scanner.nextLine().trim();

// Perform basic validation and return
return input.toLowerCase();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice work! The code looks very clean. 🤩

By the way, I have just one small thought on performance:

This function currently returns any string the user types (e.g., "nexxt" or "edit!").
The external controller should not be burdened with handling typos. Please use a simple 'while' loop in this method to ensure the returned command is STRICTLY either "next" or "edit." This improves overall code safety.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Thanks for the feedback! I totally agree. I've updated the method to use a while loop so that it only returns valid commands ('next' or 'edit').

@Kimhyewon0621 Kimhyewon0621 merged commit 5ab9af8 into main Dec 11, 2025
1 check passed
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.

4 participants