mirror of
https://github.com/KuekHaoYang/KVideo.git
synced 2026-08-12 23:33:43 +08:00
Remove homepage quick search groups
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
# Changelog
|
||||
|
||||
## 4.9.10 - 2026-07-09
|
||||
|
||||
- 从首页移除硬编码的快捷搜索区,不再显示“内容分类”“电影类型”“年份”三组按钮。
|
||||
- 标签管理入口和首页推荐区现在直接从内容类型切换与后端标签列表开始,避免顶部快捷搜索继续占用空间。
|
||||
- 更新标签管理视图回归测试,锁定首页不再引用 `CategoryQuickSearch`。
|
||||
|
||||
## 4.9.9 - 2026-07-09
|
||||
|
||||
- 修复首页管理标签入口混入快捷搜索流程的问题,打开管理模式后不再显示“内容分类”“电影类型”“年份”等搜索快捷项。
|
||||
|
||||
+11
-1
@@ -4,8 +4,18 @@
|
||||
"name": "KVideo",
|
||||
"branch": "main"
|
||||
},
|
||||
"currentVersion": "4.9.9",
|
||||
"currentVersion": "4.9.10",
|
||||
"releases": [
|
||||
{
|
||||
"version": "4.9.10",
|
||||
"publishedAt": "2026-07-09",
|
||||
"title": "移除首页顶部快捷搜索区",
|
||||
"notes": [
|
||||
"首页不再显示内容分类、电影类型、年份三组硬编码快捷搜索按钮。",
|
||||
"推荐页顶部直接进入内容类型切换与后端标签列表,减少标签区域上方的无关占用。",
|
||||
"更新标签管理视图回归测试,防止首页重新引用 CategoryQuickSearch。"
|
||||
]
|
||||
},
|
||||
{
|
||||
"version": "4.9.9",
|
||||
"publishedAt": "2026-07-09",
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
import { useState } from 'react';
|
||||
import { TagManager } from './TagManager';
|
||||
import { MovieGrid } from './MovieGrid';
|
||||
import { CategoryQuickSearch } from './CategoryQuickSearch';
|
||||
import { useTagManager } from './hooks/useTagManager';
|
||||
import { usePopularMovies } from './hooks/usePopularMovies';
|
||||
import { usePersonalizedRecommendations } from './hooks/usePersonalizedRecommendations';
|
||||
@@ -93,8 +92,6 @@ export function PopularFeatures({ onSearch }: PopularFeaturesProps) {
|
||||
|
||||
return (
|
||||
<div className="animate-fade-in">
|
||||
{!isTagManagementMode && <CategoryQuickSearch onSearch={onSearch} />}
|
||||
|
||||
{/* Content Type Toggle (Capsule Liquid Glass - Fixed & Centered) */}
|
||||
{!isTagManagementMode && !effectiveRecommendSelected && (
|
||||
<div className="mb-10 flex justify-center">
|
||||
|
||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "kvideo",
|
||||
"version": "4.9.9",
|
||||
"version": "4.9.10",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "kvideo",
|
||||
"version": "4.9.9",
|
||||
"version": "4.9.10",
|
||||
"dependencies": {
|
||||
"@dnd-kit/core": "^6.3.1",
|
||||
"@dnd-kit/sortable": "^10.0.0",
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "kvideo",
|
||||
"version": "4.9.9",
|
||||
"version": "4.9.10",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "node scripts/next-with-lan-access.mjs dev",
|
||||
|
||||
@@ -5,14 +5,22 @@ import { join } from 'node:path';
|
||||
|
||||
const projectRoot = process.cwd();
|
||||
|
||||
test('popular tag management mode stays out of quick search and discovery grids', () => {
|
||||
test('popular features do not render the hardcoded quick search groups', () => {
|
||||
const source = readFileSync(
|
||||
join(projectRoot, 'components/home/PopularFeatures.tsx'),
|
||||
'utf8',
|
||||
);
|
||||
|
||||
assert.doesNotMatch(source, /CategoryQuickSearch/);
|
||||
});
|
||||
|
||||
test('popular tag management mode stays out of discovery grids', () => {
|
||||
const source = readFileSync(
|
||||
join(projectRoot, 'components/home/PopularFeatures.tsx'),
|
||||
'utf8',
|
||||
);
|
||||
|
||||
assert.match(source, /const isTagManagementMode = showTagManager;/);
|
||||
assert.match(source, /!\s*isTagManagementMode && <CategoryQuickSearch/);
|
||||
assert.match(source, /!\s*isTagManagementMode && !effectiveRecommendSelected/);
|
||||
assert.match(source, /!\s*isTagManagementMode && \(/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user