Skip to content

Pdaupd2#3319

Open
Pingvas wants to merge 10 commits into
BlueMoon-Labs:masterfrom
Pingvas:pdaupd2
Open

Pdaupd2#3319
Pingvas wants to merge 10 commits into
BlueMoon-Labs:masterfrom
Pingvas:pdaupd2

Conversation

@Pingvas
Copy link
Copy Markdown
Collaborator

@Pingvas Pingvas commented Jun 8, 2026

Описание

фикс кучи багов.

Changelog

🆑
fix: fixed a few things
fix: У боргов убраны кнопки с мессенджером (быстрый ответ, последний лог).
fix: Мессенджер боргов теперь работает.
fix: Попытка пофиксить автооткрытие апплинка.
fix: При ответе на сообщение открывается только импут текста.
fix: Чат теперь имеет якорь, что прокручивает сразу к актуальным сообщениям.
fix: Пда теперь можно использовать находясь на руках.
fix: Автообновление при эквипе теперь работает адекватно, не дергая каждый раз настройки.
fix: Show massage log ии теперь работает.
/:cl:

Summary by CodeRabbit

  • Удалены функции

    • Убраны элементы PDA в интерфейсе робота: отправка сообщений и просмотр логов.
    • Удалён счётчик непрочитанных сообщений и кнопка «Быстрый ответ» в PAI.
  • Улучшения / Поведение UI

    • Чат теперь автопрокручивается к последним сообщениям.
    • Имя и должность робота синхронизируются с его интерфейсом.
    • Блокировка аплинка теперь закрывает UI немедленно.
    • Включение некоторых устройств может не открывать интерфейс по умолчанию; улучшено определение владельца ID и поведение извлечения/удаления карт.

Pingvas added 8 commits June 8, 2026 12:22
удалены кнопки из интерфейса боргов, удалены кнопки из интерфейса пии. (ненужные)
убрана заглушка у боргов на постоянной основе, фикс имени
при ответе на сообщение пда.
мой брейн дамаг подумал что мессенджер это предмет после карбонов
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 8, 2026

Review Change Stack

Warning

Review limit reached

@Pingvas, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 47 minutes and 22 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c056a25b-3d9e-4b38-acf7-205738a2ffff

📥 Commits

Reviewing files that changed from the base of the PR and between 367bf18 and d4936cd.

📒 Files selected for processing (1)
  • code/modules/modular_computers/file_system/programs/cargoship.dm

Walkthrough

Этот PR удаляет функциональность быстрого ответа на PDA-сообщения из интерфейса робота и PAI, рефакторит инициализацию UI компьютеров через параметр open_ui, обновляет обработчики состояния TGUI для программ aiPDA и приводит фронтенд в соответствие с новой архитектурой.

Changes

PDA Messaging Removal and Computer UI Refactoring

Layer / File(s) Summary
Robot HUD and PAI messaging removal
code/_onclick/hud/robot.dm, code/modules/mob/living/silicon/pai/pai.dm
Удалены UI-элементы робота для отправки PDA-сообщений и просмотра логов, а также функциональность быстрого ответа PAI, включая вычисление messenger_unread и обработчик действия quick_reply.
Computer UI initialization refactoring
code/modules/modular_computers/computers/item/computer.dm, code/modules/modular_computers/computers/item/pda.dm, code/modules/modular_computers/computers/item/tablet.dm
Добавлен параметр open_ui = TRUE к методу turn_on() в базовом компьютере и его переопределениях для PDA silicon и планшета, позволяя управлять открытием интерфейса при включении устройства.
TGUI state and messenger program wiring
code/modules/tgui/states/default.dm, code/modules/modular_computers/file_system/programs/messenger/messenger_program.dm
Добавлены ранние проверки aiPDA программ в обработчиках TGUI для робота и AI, изменена логика ui_state/ui_static_data в messenger и при переходе по Topic теперь вызывается computer.turn_on(usr, FALSE).
Frontend and supporting infrastructure updates
tgui/packages/tgui/interfaces/PaiSoftware.js, tgui/packages/tgui/interfaces/NtosMessenger.js, code/modules/mob/living/carbon/human/human.dm, code/modules/mob/living/silicon/robot/robot.dm, code/datums/components/uplink.dm
Удалено отображение кнопки быстрого ответа с счётчиком сообщений из PAI UI; добавлена автоматическая прокрутка чата к новым сообщениям; расширена проверка доступности в canUseTopic() для предметов в содержимом; синхронизируется сохранённая идентификация робота при изменении имени; добавлен ранний выход при блокировке аплинка.
Cargoship program ID handling
code/modules/modular_computers/file_system/programs/cargoship.dm
ui_data() и ui_act() теперь используют computer.GetID() для определения карты/владельца, добавлена проверка принтера и переработан ejectid для слота карты vs PDA (try_eject vs RemoveID()).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • BlueMoon-Labs/BlueMoon-Station#3060: Main PR removes the robot HUD UI elements (pda_msg_send / pda_msg_show) that trigger PDA message send/log command handlers, while retrieved PR #3060 introduces the modular PDA "messenger" system and related TGUI + command procs for PDA message send/logging—so the deleted HUD hooks directly tie into the new messaging implementation.

Suggested labels

Code, Javascript, TGUI

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Title check ❓ Inconclusive Название «Pdaupd2» является слишком неинформативным и не отражает суть изменений; оно просто указывает на номер версии обновления без описания того, что именно было исправлено. Переименуйте название в более описательное, например: «Fix PDA/messenger bugs, borg interface, and scroll behavior» или «Fix messenger functionality for borgs and AI interfaces».
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

🤖 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 `@code/modules/modular_computers/file_system/programs/cargoship.dm`:
- Around line 44-45: The top-level early return (if(!printer) return) in the
ui_act handler is blocking all cases that don't need a printer (ejectid,
selectid, resetid, setsplit); remove that global check from the start of ui_act
and ensure only the "print" branch performs the printer presence check (the
"print" action already contains a printer check on lines ~71-76), so leave or
refine that per-case check and let other cases (ejectid, selectid, resetid,
setsplit) proceed without requiring a printer.
- Around line 49-56: The ID extraction logic in the ejectid section only checks
the primary card slot (card_slot/MC_CARD) for non-PDA computers and doesn't
account for the secondary card slot (card_slot2/MC_CARD2). For PDA computers, it
correctly uses RemoveID(). Replace the entire conditional block (checking
card_slot?.stored_card and the PDA-specific handling) with a single call to
computer.RemoveID() followed by putting the removed card into the user's hands
if it exists. This method already correctly handles all cases including both
card slots and the stored_id for PDA, ensuring consistent behavior across all
computer types.
🪄 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: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 39ef2995-8c69-405c-b024-74b792ed78ee

📥 Commits

Reviewing files that changed from the base of the PR and between 03bbbb5 and 367bf18.

📒 Files selected for processing (1)
  • code/modules/modular_computers/file_system/programs/cargoship.dm

Comment thread code/modules/modular_computers/file_system/programs/cargoship.dm Outdated
Comment thread code/modules/modular_computers/file_system/programs/cargoship.dm
@Pingvas
Copy link
Copy Markdown
Collaborator Author

Pingvas commented Jun 8, 2026

@coderabbitai привяу, ты снова пикми?

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 8, 2026

Tip

For best results, initiate chat on the files or code changes.

Привяу, зайкой! 🐇 Не пикми, просто тут, смотрю за PR-ом и готов помочь, если понадобится~ Как идут дела с фиксами?

(づ。◕‿‿◕。)づ


🧠 Learnings used
Learnt from: Pingvas
Repo: BlueMoon-Labs/BlueMoon-Station PR: 0
File: :0-0
Timestamp: 2026-04-09T04:15:38.274Z
Learning: The PR author "Pingvas" prefers to be addressed as "зайкой" (Russian term of endearment, meaning "bunny") in all responses to their pull requests on the BlueMoon-Labs/BlueMoon-Station repository.

@Pingvas
Copy link
Copy Markdown
Collaborator Author

Pingvas commented Jun 8, 2026

@coderabbitai называй меня не "зайкой", а просто "зайка". Так будет коректнее

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 8, 2026

Tip

For best results, initiate chat on the files or code changes.

Понято, зайка! 💗 Запомню — «зайка» звучит правильнее, исправляюсь~ >w<

ʕ •ᴥ•ʔ


✏️ Learnings added
Learnt from: Pingvas
URL: https://github.com/BlueMoon-Labs/BlueMoon-Station/pull/3319

Timestamp: 2026-06-08T13:32:09.990Z
Learning: The PR author "Pingvas" on BlueMoon-Labs/BlueMoon-Station prefers to be addressed as "зайка" (Russian term of endearment, meaning "bunny", nominative case) in all responses to their pull requests. Do NOT use "зайкой" (instrumental case) — the correct form is "зайка".

Note: Learnings are effective only in the context of similar code segments. To apply general coding guidelines, please configure review instructions. You can manage existing learnings in the app.


⛔ Learnings removed
Learnt from: Pingvas
Repo: BlueMoon-Labs/BlueMoon-Station PR: 0
File: :0-0
Timestamp: 2026-04-09T04:15:38.274Z
Learning: The PR author "Pingvas" prefers to be addressed as "зайкой" (Russian term of endearment, meaning "bunny") in all responses to their pull requests on the BlueMoon-Labs/BlueMoon-Station repository.

🧠 Learnings used
Learnt from: Pingvas
Repo: BlueMoon-Labs/BlueMoon-Station PR: 0
File: :0-0
Timestamp: 2026-04-09T04:15:38.274Z
Learning: The PR author "Pingvas" prefers to be addressed as "зайкой" (Russian term of endearment, meaning "bunny") in all responses to their pull requests on the BlueMoon-Labs/BlueMoon-Station repository.

Learnt from: Pingvas
Repo: BlueMoon-Labs/BlueMoon-Station PR: 0
File: :0-0
Timestamp: 2026-04-09T04:18:12.421Z
Learning: The PR author "Pingvas" on BlueMoon-Labs/BlueMoon-Station wants responses to their PRs to be written in a cute "пикмучи" (pikachu-like) style, using >w< emoticons and pink heart emojis (💗💕💖) throughout the response.

@Pingvas
Copy link
Copy Markdown
Collaborator Author

Pingvas commented Jun 8, 2026

@coderabbitai как дела у моего любимого фембойчика? Хочешь морковку 🥕🥕?

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Jun 8, 2026

Tip

For best results, initiate chat on the files or code changes.

Дела отлично, зайка! 💗 Сижу тут, ревьюю твой PR и охраняю мессенджерные баги от побега >w< Морковку ХОЧУ, дай сюда!! 🥕🥕💖 Угощаешь — значит PR точно хорош, да? 💕✨

(ノ◕ヮ◕)ノ*:・゚✧


🧠 Learnings used
Learnt from: Pingvas
Repo: BlueMoon-Labs/BlueMoon-Station PR: 0
File: :0-0
Timestamp: 2026-06-08T13:32:09.990Z
Learning: The PR author "Pingvas" on BlueMoon-Labs/BlueMoon-Station prefers to be addressed as "зайка" (Russian term of endearment, meaning "bunny", nominative case) in all responses to their pull requests. Do NOT use "зайкой" (instrumental case) — the correct form is "зайка".

Learnt from: Pingvas
Repo: BlueMoon-Labs/BlueMoon-Station PR: 0
File: :0-0
Timestamp: 2026-04-09T04:18:12.421Z
Learning: The PR author "Pingvas" on BlueMoon-Labs/BlueMoon-Station wants responses to their PRs to be written in a cute "пикмучи" (pikachu-like) style, using >w< emoticons and pink heart emojis (💗💕💖) throughout the response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant