Rename Movie to Group in UI (#4963)

* Replace movies with groups in the UI
* Massage menu items
* Change view names
* Rename Movie components to Group
* Refactor movie to group variable names
* Rename movie class names to group
This commit is contained in:
WithoutPants
2024-06-26 11:39:31 +10:00
committed by GitHub
parent d986a9eb4f
commit af6841be49
63 changed files with 643 additions and 612 deletions

View File

@@ -124,12 +124,12 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
}
};
const MovieCell = (scene: GQL.SlimSceneDataFragment) => (
const GroupCell = (scene: GQL.SlimSceneDataFragment) => (
<ul className="comma-list overflowable">
{scene.movies.map((sceneMovie) => (
<li key={sceneMovie.movie.id}>
<Link to={NavUtils.makeMovieScenesUrl(sceneMovie.movie)}>
<span className="ellips-data">{sceneMovie.movie.name}</span>
{scene.movies.map((sceneGroup) => (
<li key={sceneGroup.movie.id}>
<Link to={NavUtils.makeGroupScenesUrl(sceneGroup.movie)}>
<span className="ellips-data">{sceneGroup.movie.name}</span>
</Link>
</li>
))}
@@ -322,10 +322,10 @@ export const SceneListTable: React.FC<ISceneListTableProps> = (
render: TagCell,
},
{
value: "movies",
label: intl.formatMessage({ id: "movies" }),
value: "groups",
label: intl.formatMessage({ id: "groups" }),
defaultShow: true,
render: MovieCell,
render: GroupCell,
},
{
value: "galleries",