Welcome Pop-Up - #5348
Conversation
|
Opening for CodeRabbit or anyone else's help, the pop-up isn't appearing no matter what I do. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughAdds a localized content-warning popup with accept/reject actions, configuration CVars for display and enforcement, and a client controller that presents the popup on lobby or gameplay entry and persists acceptance. ChangesContent warning flow
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant LobbyOrGameplayState
participant ContentWarningUIController
participant ContentWarningPopup
participant CCVars_Funky
participant IClientConsoleHost
LobbyOrGameplayState->>ContentWarningUIController: enter state
ContentWarningUIController->>CCVars_Funky: check display and acknowledgment
ContentWarningUIController->>ContentWarningPopup: open centered popup
ContentWarningPopup-->>ContentWarningUIController: accept or reject
ContentWarningUIController->>CCVars_Funky: save acknowledgment
ContentWarningUIController->>IClientConsoleHost: execute quit if rejection requires it
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5 | ❌ 3❌ Failed checks (2 warnings, 1 inconclusive)
✅ Passed checks (5 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml (1)
34-34: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick winRemove trailing whitespace from both UI files.
The pipeline reports the same EditorConfig failure in both blank Line 34 locations.
Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml#L34-L34: remove trailing spaces or tabs.Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml.cs#L34-L34: remove trailing spaces or tabs.🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml` at line 34, Remove trailing spaces or tabs from line 34 in both Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml and Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml.cs; no other changes are needed.Source: Pipeline failures
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@Content.Client/_Funkystation/ContentWarning/ContentWarningUIController.cs`:
- Around line 23-24: Invert the guard in the ContentWarningUIController
initialization flow so it returns when ContentWarningDisplay is disabled or
ContentWarningAcknowledged is already true. Allow the popup to continue opening
only when display is enabled and the warning has not been acknowledged.
---
Outside diff comments:
In `@Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml`:
- Line 34: Remove trailing spaces or tabs from line 34 in both
Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml and
Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml.cs; no
other changes are needed.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI (base), Organization UI (inherited)
Review profile: CHILL
Plan: Pro Plus
Run ID: f876b1d1-9bb2-4326-8f0a-265a08dcf703
📒 Files selected for processing (5)
Content.Client/_Funkystation/ContentWarning/ContentWarningPopup.xamlContent.Client/_Funkystation/ContentWarning/ContentWarningPopup.xaml.csContent.Client/_Funkystation/ContentWarning/ContentWarningUIController.csContent.Shared/_Funkystation/CCVars/CCVars.Funky.csResources/Locale/en-US/_Funkystation/content_warning.ftl
|
very nice |
|
I think the year should be a variable. cause it seems to take place 500 years the actual current year |
yea I don't know how to do that code-wise tbh. |
|
i mean its a once a year thing, and no one really cares so, its probably fine |
Neomoth helped me figure out how, so it will now update automatically. |
…ntroller.cs Co-authored-by: Red Mushie <82113471+redmushie@users.noreply.github.com>
…p.xaml.cs Co-authored-by: Red Mushie <82113471+redmushie@users.noreply.github.com>
|
r4r again sob |
redmushie
left a comment
There was a problem hiding this comment.
Approved, @StarlightHost for your review due to some CCVar additions.
d4b30c7
|
r4r with darks requested changes |
b1b9a5b
## Short description Adds a "Welcome" pop-up when a client joins the server for the first time. This pop-up contains a small lore primer as well as content warnings and a reminder that we are an MRP server. The year updates automatically, thanks to help from Neomoth. Port from funky-station/funky-station#2922 and then edited by me. ## Why we need to add this Onboarding new players and presenting content warnings more clearly. ## Media (Video/Screenshots) <img width="585" height="795" alt="image" src="https://github.com/user-attachments/assets/6f9ba0d7-b4a1-4fd0-b831-57fddc26c4c1" /> ## Checks - [X] I do not require assistance to complete the PR. - [X] Before posting/requesting review of a PR, I have verified that the changes work. - [X] I have added screenshots/videos of the changes, or this PR does not change in-game mechanics. - [X] I affirm that my changes are licensed under the [MIT License](https://github.com/ss14Starlight/space-station-14/blob/Starlight/LICENSE.TXT) and grant permission for use in this repository under its conditions. **Changelog** :cl: taydeo, Conflee - add: Added a "Welcome to Starlight!" pop-up when a client joins the server for the first time, with useful information and content warnings. --------- Co-authored-by: Red Mushie <82113471+redmushie@users.noreply.github.com>
Short description
Adds a "Welcome" pop-up when a client joins the server for the first time. This pop-up contains a small lore primer as well as content warnings and a reminder that we are an MRP server.
The year updates automatically, thanks to help from Neomoth.
Port from funky-station/funky-station#2922 and then edited by me.
Why we need to add this
Onboarding new players and presenting content warnings more clearly.
Media (Video/Screenshots)
Checks
Changelog
🆑 taydeo, Conflee