Repository navigation
Conversation
- Implement bookmarks screen: list synced with 4PDA account, nested folders, opening links via deeplink handler, copy link and delete (context menu / swipe) - Add bookmarks as a separate tab bar item (keeps `more` raw value for saved start page) - Add "Add to bookmarks" to topic, forum, article and articles list menus - Add addBookmark/deleteBookmark to APIClient (full links, as the site stores them) - Make BookmarksParser resilient to malformed entries instead of force casting Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
va1mont
force-pushed
the
feature/bookmarks
branch
from
December 4, 2026 19:47
250268e to
ecaca7c
Compare
- New folder button on bookmarks screens (root and nested folders) - Rename and "Move To Folder" in bookmark context menu - APIClient.modifyBookmark over MemberCommand.Bookmarks.modify - Site default bookmarks (type 2, e.g. forum rules) are read-only Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Row height 60 with 8pt vertical padding, as other lists - Separator starts under the icon - Hide link URL, show only the bookmark name Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Bookmarks tab moved to third position (raw values kept for startPage) - Reload bookmarks on login and clear them on logout - Full screen error with retry when nothing is loaded, toast otherwise - Use shared GenericView for unauthorized/empty/error states - Bigger row icons - Previews for authorized, folder, unauthorized, empty, loading, error Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Single effect for bookmark modifications (toast, notify, reload on failure) - Drop optimistic rename, list reloads after success anyway - Simpler move targets path building - BookmarkRequest convenience init instead of three copies - Absolute URL resolving lives in Bookmark.Format only - Parser uses BookmarkType enum instead of magic numbers - Screen states extracted to Content() Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Open
Author
|
Заменён на #67 — те же изменения одним коммитом. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Реализация закладок из раздела «В планах» README.
Что сделано
DeeplinkHandler(темы, постыfindpost, форумы, статьи и т.д.). Pull-to-refresh, состояния «пусто» и «не авторизован».AppTabявные raw values:bookmarks = 4,moreостаётся3, чтобы не сломать сохранённуюstartPage. СтарыйOldTabView(iOS 16–18) — массив анимаций теперь по числу вкладок.toBookmarksTODO), открытой статьи и статьи в ленте (ArticleRowViewполучил опциональныйisBookmarkSupported). Только для авторизованных.addBookmark/deleteBookmarkповерхMemberCommand.Bookmarks.add/modify(удаление —modifyсisDeleted). Ссылки отправляются полными (https://4pda.to/...), т.к. сайт хранит их именно так.Notification.Name.bookmarksUpdated, открытые экраны закладок обновляются сами.APIClient.modifyBookmarkповерхMemberCommand.Bookmarks.modify.2в ответе — сайт сам подставляет, например, «Правила форума», когда у пользователя нет своей ссылки на правила в корне) — только «Скопировать ссылку», без переименования/перемещения/удаления.AppTab, raw values прежние.GenericView.GenericError), иначе тост.Проверено
Сборка в Xcode 27.2, симулятор iPhone 18 Pro (iOS 27.2), на реальном аккаунте:
Не проверено
OldTabView) — проверял только системный на iOS 27.ForPDATestsзакомментирован вProject.swift)..disabledу кнопки: в алерте он не пересчитывается при вводе, пустое имя отбрасывает редьюсер.Не входит в PR
Ручная сортировка (изменение
number) и выбор папки при добавлении закладки из темы/статьи — сейчас добавляется в корень.