Swing ui package split by feature
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -25,9 +25,9 @@ Items are worked through in the order below. Status: open, done (commit), or clo
|
||||
| 9b | … "which chat" enums | done (`5358599`): one `chat.ChatScope` replaces `ConnectionListener.ChatScope`, `ChatLogScope` and `ChatPanel.Target`, and the mappings between them are gone. Android's `ChatKey` also carries the peer, so it goes with the conversation model |
|
||||
| 9c | … the conversation model (Swing `ChatPanel.Tab`, Android `Chats`) | done (`a2a1280`): `session.ChatFeed` decides which conversation a message, history or server event goes to and renders it, and the frontends get the lines through `chat.ChatSink` (`ServerSession.Listener` no longer passes on raw chat events). `chat.ChatKey` replaces Android's own key and `ChatPanel`'s scope and client id. Each frontend still keeps and draws the lines its own way. Fixes Swing labelling our messages with the global nickname instead of the one we have on the server, and linking our name in a private chat to the peer |
|
||||
| 10 | Android `ServerScreen`: one 456-line composable holding ~25 pieces of state | done (`78b66ef`): `ServerNav` holds where the screen is (one saved `ServerPage` for the five pages that replace it, tree or chat, the conversation, and one `Overlay` for the eight sheets and dialogs); `TreeView` and `ChatSearch` the find state of each side; `TreePicking` the long-press selection and moves. The sheets and dialogs are `ServerOverlay`; `VoiceBar` and `ServerSwitcher` have their own files. Only one sheet or dialog shows at a time, so a channel link in a client sheet now replaces it; Find in tree from a sheet honours Only matches; a failed channel deletion's snackbar is no longer cancelled with its dialog |
|
||||
| 11 | Android `SessionController` (669 lines) is the app-wide view model and service locator; every screen gets all of it | in progress, in sub-steps: |
|
||||
| 11a | … the app-wide stores out of it, and screens on the parts they use | done: `AppParts` wires what lives as long as the process; `BookmarkManager`, `ContactManager`, `WhisperListManager`, `MyTeamSpeakAccount` (sign-in, import, chat attachments) and `AudioSetup` (route, devices, sound packs, floating PTT button) hold what was in `SessionController`, which keeps the servers, the microphone between them and the voice settings (386 lines, with `SessionState` and `SessionEvent`). Leaf screens take only their parts; `App` and the settings hub take `AppParts`. Country flags and description pictures are set on `Settings` directly |
|
||||
| 11b | … `ServerController` on narrow dependencies instead of the whole `SessionController`, which still forwards the stores to it | open |
|
||||
| 12 | Swing `ui` package: 118 files, flat | open |
|
||||
| 11 | Android `SessionController` (669 lines) is the app-wide view model and service locator; every screen gets all of it | done, in sub-steps: |
|
||||
| 11a | … the app-wide stores out of it, and screens on the parts they use | done (`382d76c`): `AppParts` wires what lives as long as the process; `BookmarkManager`, `ContactManager`, `WhisperListManager`, `MyTeamSpeakAccount` (sign-in, import, chat attachments) and `AudioSetup` (route, devices, sound packs, floating PTT button) hold what was in `SessionController`, which keeps the servers, the microphone between them and the voice settings (386 lines, with `SessionState` and `SessionEvent`). Leaf screens take only their parts; `App` and the settings hub take `AppParts`. Country flags and description pictures are set on `Settings` directly |
|
||||
| 11b | … `ServerController` on narrow dependencies instead of the whole `SessionController`, which still forwards the stores to it | done (`6070160`): `ServerParts` holds what every server shares (settings, identities, audio, contacts, myTeamSpeak, notifier, network) and builds its `ServerSession`; `SessionController` lost its pass-throughs and audio setup (`AppParts` builds the `LevelMonitor`). `ServerController` reports back to its owner directly: it has one, so no callback interface |
|
||||
| 12 | Swing `ui` package: 118 files, flat | done: by feature. `ui` keeps the main window and what is app-wide (frame, commands, menus, toolbar, status bar, tabs, tray, notifications, look-and-feel, window placement); `ui.server` one server's tab (tree, info, context menus and their actions, file browser, connection info); `ui.chat` the chat and the HTML views (pictures, links, zoom); `ui.admin` moderation and the server's list windows; `ui.channel` the channel editor; `ui.options` the Options pages; `ui.hotkey` hotkeys; `ui.manage` bookmarks, contacts, identities and connecting; `ui.icons`; `ui.widget` the shared Swing bits (`Dialogs`, `Edt`, `FindBar`, `FormPanel`, …). What another package uses became public (~200 declarations); nothing else changed. The app icons moved to `ui/icons` with `Icons` |
|
||||
| 13 | `ClientEntry`/`ChannelNode` are bags of public volatile fields; a reader can see a half-applied update | open |
|
||||
| 14 | Core produces English UI copy (status lines, log lines) | open |
|
||||
|
||||
Reference in New Issue
Block a user