Remove HashtagListView and LinksListView due to spec changes, with their entries in BookmarkType.

This commit is contained in:
KotlinGeekDev
2025-11-26 19:47:42 +01:00
parent f103fe9c79
commit 6fc5084931
3 changed files with 0 additions and 122 deletions
@@ -24,8 +24,4 @@ enum class BookmarkType {
PostBookmark, PostBookmark,
ArticleBookmark, ArticleBookmark,
LinkBookmark,
HashtagBookmark,
} }
@@ -1,59 +0,0 @@
/**
* Copyright (c) 2025 Vitor Pamplona
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.vitorpamplona.amethyst.ui.screen.loggedIn.bookmarkgroups.display
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@Composable
fun RenderHashtagList(
bookmarkGroupViewModel: BookmarkGroupViewModel,
pagerState: PagerState,
modifier: Modifier = Modifier,
) {
HorizontalPager(pagerState, modifier) { page ->
when (page) {
0 -> HashtagsList(isPrivate = true)
1 -> HashtagsList(isPrivate = false)
}
}
}
@Composable
private fun HashtagsList(
modifier: Modifier = Modifier,
// list: List<BookmarkIdTag>,
isPrivate: Boolean,
) {
Column(
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text("To be implemented")
// Text("Number of ${if (isPrivate) "private" else "public"} hashtags: ${list.size}")
}
}
@@ -1,59 +0,0 @@
/**
* Copyright (c) 2025 Vitor Pamplona
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
* subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in all
* copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
* AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
package com.vitorpamplona.amethyst.ui.screen.loggedIn.bookmarkgroups.display
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
// TODO: Come back to work on this
@Composable
fun RenderLinksList(
bookmarkGroupViewModel: BookmarkGroupViewModel,
pagerState: PagerState,
modifier: Modifier = Modifier,
) {
HorizontalPager(pagerState, modifier) { page ->
when (page) {
0 -> LinksList(isPrivate = true)
1 -> LinksList(isPrivate = false)
}
}
}
@Composable
private fun LinksList(
// list: List<BookmarkIdTag>,
isPrivate: Boolean,
) {
Column(
verticalArrangement = Arrangement.Center,
horizontalAlignment = Alignment.CenterHorizontally,
) {
Text("To be implemented")
// Text("Number of ${if (isPrivate) "private" else "public"} links: ${list.size}")
}
}