From 00545785b8aaa0cf101dc57f5949301a9f2f9f6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20B=C3=A9gaudeau?= Date: Mon, 17 Jul 2023 00:02:32 +0200 Subject: [PATCH] [213] Change the organization of the frontend code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Bug: https://github.com/svalyn/svalyn-studio/issues/213 Signed-off-by: Stéphane Bégaudeau --- frontend/svalyn-studio-app/src/app/App.tsx | 48 +++++++++---------- .../ChangeProposalView.tsx | 10 ++-- .../ChangeProposalView.types.ts | 0 .../ChangeProposalViewTabPanel.tsx | 0 .../ChangeProposalViewTabPanel.types.ts | 0 .../ChangeProposalsRouter.tsx} | 2 +- .../ReviewDialog.tsx | 2 +- .../ReviewDialog.types.ts | 0 .../files/ChangeProposalFiles.tsx | 4 +- .../files/ChangeProposalFiles.types.ts | 0 .../overview/ChangeProposalHeader.tsx | 4 +- .../overview/ChangeProposalHeader.types.ts | 0 .../overview/ChangeProposalOverview.tsx | 4 +- .../overview/ChangeProposalOverview.types.ts | 0 .../overview/ChangeProposalStatus.tsx | 0 .../overview/ChangeProposalStatus.types.ts | 0 .../{views/domain => domains}/DomainView.tsx | 6 +-- .../domain => domains}/DomainView.types.ts | 0 .../DomainsRouter.tsx} | 4 +- .../src/{views => }/domains/DomainsView.tsx | 4 +- .../{views => }/domains/DomainsView.types.ts | 0 .../{views/domain => domains}/converters.ts | 4 +- .../src/{views/error => errors}/ErrorView.tsx | 2 +- .../ErrorsRouter.tsx} | 2 +- .../src/{views => }/help/HelpRouter.tsx | 0 .../src/{views => }/help/HelpView.tsx | 2 +- .../src/{views => }/home/HomeView.tsx | 2 +- .../src/{views => }/home/HomeViewActivity.tsx | 4 +- .../home/HomeViewActivity.types.ts | 0 .../{views => }/home/HomeViewCenterPanel.tsx | 0 .../home/HomeViewCenterPanel.types.ts | 0 .../{views => }/home/HomeViewLeftPanel.tsx | 2 +- .../home/HomeViewLeftPanel.types.ts | 0 .../{views => }/home/HomeViewRightPanel.tsx | 0 .../home/HomeViewRightPanel.types.ts | 0 .../src/{views => }/home/HomeViewSearch.tsx | 0 .../{views => }/home/HomeViewSearch.types.ts | 0 .../InvitationsRouter.tsx} | 2 +- .../invitations/InvitationsView.tsx | 4 +- .../invitations/InvitationsView.types.ts | 0 .../src/{views => }/login/LoginRouter.tsx | 0 .../src/{views => }/login/LoginView.tsx | 2 +- .../src/{views => }/login/LoginView.types.ts | 0 .../login/LoginWithCredentials.tsx | 4 +- .../login/LoginWithCredentials.types.ts | 0 .../src/{views => }/login/LoginWithGithub.tsx | 0 .../NewOrganizationView.tsx | 4 +- .../NewOrganizationView.types.ts | 0 .../new-organization => new}/NewRouter.tsx | 0 .../src/{views => }/notfound/NotFoundView.tsx | 2 +- .../NotificationsRouter.tsx} | 2 +- .../notifications/NotificationsTableHead.tsx | 0 .../NotificationsTableHead.types.ts | 0 .../NotificationsTableToolbar.tsx | 0 .../NotificationsTableToolbar.types.ts | 0 .../notifications/NotificationsView.tsx | 6 +-- .../notifications/NotificationsView.types.ts | 0 .../OAuth2RedirectView.tsx | 0 .../OAuth2Router.tsx | 0 .../NewProjectDialog.tsx | 2 +- .../NewProjectDialog.types.tsx | 0 .../OrganizationPicker.tsx | 2 +- .../OrganizationPicker.types.ts | 0 .../OrganizationView.tsx | 4 +- .../OrganizationView.types.ts | 0 .../OrganizationViewTabPanel.tsx | 6 +-- .../OrganizationViewTabPanel.types.ts | 0 .../OrganizationsRouter.tsx} | 2 +- .../dashboard/OrganizationDashboard.tsx | 10 ++-- .../dashboard/OrganizationDashboard.types.ts | 0 .../dashboard/ProjectCard.tsx | 0 .../dashboard/ProjectCard.types.ts | 0 .../members/Invitations.tsx | 2 +- .../members/Invitations.types.ts | 0 .../members/InviteMemberDialog.tsx | 2 +- .../members/InviteMemberDialog.types.ts | 0 .../members/LeaveOrganizationDialog.tsx | 2 +- .../members/LeaveOrganizationDialog.types.ts | 0 .../members/Memberships.tsx | 2 +- .../members/Memberships.types.ts | 0 .../members/MembershipsTableHead.tsx | 0 .../members/MembershipsTableHead.types.ts | 0 .../members/MembershipsTableToolbar.tsx | 0 .../members/MembershipsTableToolbar.types.ts | 0 .../members/OrganizationMembers.tsx | 0 .../members/OrganizationMembers.types.ts | 0 .../settings/DeleteOrganizationDialog.tsx | 2 +- .../DeleteOrganizationDialog.types.ts | 0 .../settings/OrganizationSettings.tsx | 2 +- .../settings/OrganizationSettings.types.ts | 0 .../tags/OrganizationTags.tsx | 2 +- .../tags/OrganizationTags.types.ts | 0 .../profile => profiles}/ProfileView.tsx | 6 +-- .../profile => profiles}/ProfileView.types.ts | 0 .../ProfilesRouter.tsx} | 2 +- .../project => projects}/ProjectDrawer.tsx | 0 .../ProjectDrawer.types.ts | 0 .../project => projects}/ProjectView.tsx | 10 ++-- .../project => projects}/ProjectView.types.ts | 0 .../ProjectsRouter.tsx} | 8 ++-- .../activity/ProjectActivity.tsx | 4 +- .../activity/ProjectActivity.types.ts | 0 .../ChangeProposalsTableHead.tsx | 0 .../ChangeProposalsTableHead.types.ts | 0 .../ChangeProposalsTableToolbar.tsx | 0 .../ChangeProposalsTableToolbar.types.ts | 0 .../changeproposals/ProjectChangeProposal.tsx | 2 +- .../ProjectChangeProposal.types.ts | 0 .../home/ProjectBranchCard.tsx | 0 .../home/ProjectBranchCard.types.ts | 0 .../project => projects}/home/ProjectHome.tsx | 6 +-- .../home/ProjectHome.types.ts | 0 .../home/ProjectReadMeCard.tsx | 4 +- .../home/ProjectReadMeCard.types.ts | 0 .../NewChangeProposalView.tsx | 0 .../NewChangeProposalView.types.ts | 0 .../resource/ResourceView.tsx | 2 +- .../resource/ResourceView.types.ts | 0 .../settings/DeleteProjectDialog.tsx | 2 +- .../settings/DeleteProjectDialog.types.ts | 0 .../settings/ProjectSettings.tsx | 2 +- .../settings/ProjectSettings.types.ts | 0 .../project => projects}/tags/ProjectTags.tsx | 2 +- .../tags/ProjectTags.types.ts | 0 .../workspace/WorkspaceView.tsx | 0 .../workspace/WorkspaceView.types.ts | 0 .../src/{views => }/search/SearchRouter.tsx | 0 .../src/{views => }/search/SearchView.tsx | 4 +- .../{views => }/search/SearchView.types.ts | 0 .../{views => }/settings/SettingsRouter.tsx | 0 .../src/{views => }/settings/SettingsView.tsx | 4 +- .../settings/SettingsView.types.ts | 0 .../settings/SettingsViewDrawer.tsx | 0 .../settings/SettingsViewDrawer.types.ts | 0 .../AuthenticationTokensSettingsTab.tsx | 4 +- .../AuthenticationTokensSettingsTab.types.ts | 0 .../AuthenticationTokensTableHead.tsx | 0 .../AuthenticationTokensTableHead.types.ts | 0 .../AuthenticationTokensToolbar.tsx | 0 .../AuthenticationTokensToolbar.types.ts | 0 .../NewAuthenticationTokenDialog.tsx | 4 +- .../NewAuthenticationTokenDialog.types.ts | 0 142 files changed, 119 insertions(+), 119 deletions(-) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/ChangeProposalView.tsx (93%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/ChangeProposalView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/ChangeProposalViewTabPanel.tsx (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/ChangeProposalViewTabPanel.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal/ChangeProposalRouter.tsx => changeproposals/ChangeProposalsRouter.tsx} (97%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/ReviewDialog.tsx (98%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/ReviewDialog.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/files/ChangeProposalFiles.tsx (97%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/files/ChangeProposalFiles.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/overview/ChangeProposalHeader.tsx (95%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/overview/ChangeProposalHeader.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/overview/ChangeProposalOverview.tsx (98%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/overview/ChangeProposalOverview.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/overview/ChangeProposalStatus.tsx (100%) rename frontend/svalyn-studio-app/src/{views/changeproposal => changeproposals}/overview/ChangeProposalStatus.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/domain => domains}/DomainView.tsx (94%) rename frontend/svalyn-studio-app/src/{views/domain => domains}/DomainView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/domains/DomainRouter.tsx => domains/DomainsRouter.tsx} (94%) rename frontend/svalyn-studio-app/src/{views => }/domains/DomainsView.tsx (97%) rename frontend/svalyn-studio-app/src/{views => }/domains/DomainsView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/domain => domains}/converters.ts (96%) rename frontend/svalyn-studio-app/src/{views/error => errors}/ErrorView.tsx (95%) rename frontend/svalyn-studio-app/src/{views/error/ErrorRouter.tsx => errors/ErrorsRouter.tsx} (97%) rename frontend/svalyn-studio-app/src/{views => }/help/HelpRouter.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/help/HelpView.tsx (95%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeView.tsx (97%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewActivity.tsx (96%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewActivity.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewCenterPanel.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewCenterPanel.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewLeftPanel.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewLeftPanel.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewRightPanel.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewRightPanel.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewSearch.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/home/HomeViewSearch.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/invitations/InvitationRouter.tsx => invitations/InvitationsRouter.tsx} (97%) rename frontend/svalyn-studio-app/src/{views => }/invitations/InvitationsView.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/invitations/InvitationsView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/login/LoginRouter.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/login/LoginView.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/login/LoginView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/login/LoginWithCredentials.tsx (97%) rename frontend/svalyn-studio-app/src/{views => }/login/LoginWithCredentials.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/login/LoginWithGithub.tsx (100%) rename frontend/svalyn-studio-app/src/{views/new-organization => new}/NewOrganizationView.tsx (98%) rename frontend/svalyn-studio-app/src/{views/new-organization => new}/NewOrganizationView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/new-organization => new}/NewRouter.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/notfound/NotFoundView.tsx (95%) rename frontend/svalyn-studio-app/src/{views/notifications/NotificationRouter.tsx => notifications/NotificationsRouter.tsx} (96%) rename frontend/svalyn-studio-app/src/{views => }/notifications/NotificationsTableHead.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/notifications/NotificationsTableHead.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/notifications/NotificationsTableToolbar.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/notifications/NotificationsTableToolbar.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/notifications/NotificationsView.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/notifications/NotificationsView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/oauth2redirect => oauth2}/OAuth2RedirectView.tsx (100%) rename frontend/svalyn-studio-app/src/{views/oauth2redirect => oauth2}/OAuth2Router.tsx (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/NewProjectDialog.tsx (99%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/NewProjectDialog.types.tsx (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/OrganizationPicker.tsx (98%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/OrganizationPicker.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/OrganizationView.tsx (96%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/OrganizationView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/OrganizationViewTabPanel.tsx (98%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/OrganizationViewTabPanel.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization/OrganizationRouter.tsx => organizations/OrganizationsRouter.tsx} (97%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/dashboard/OrganizationDashboard.tsx (96%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/dashboard/OrganizationDashboard.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/dashboard/ProjectCard.tsx (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/dashboard/ProjectCard.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/Invitations.tsx (99%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/Invitations.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/InviteMemberDialog.tsx (98%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/InviteMemberDialog.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/LeaveOrganizationDialog.tsx (98%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/LeaveOrganizationDialog.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/Memberships.tsx (99%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/Memberships.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/MembershipsTableHead.tsx (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/MembershipsTableHead.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/MembershipsTableToolbar.tsx (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/MembershipsTableToolbar.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/OrganizationMembers.tsx (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/members/OrganizationMembers.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/settings/DeleteOrganizationDialog.tsx (98%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/settings/DeleteOrganizationDialog.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/settings/OrganizationSettings.tsx (98%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/settings/OrganizationSettings.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/tags/OrganizationTags.tsx (99%) rename frontend/svalyn-studio-app/src/{views/organization => organizations}/tags/OrganizationTags.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/profile => profiles}/ProfileView.tsx (95%) rename frontend/svalyn-studio-app/src/{views/profile => profiles}/ProfileView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/profile/ProfileRouter.tsx => profiles/ProfilesRouter.tsx} (97%) rename frontend/svalyn-studio-app/src/{views/project => projects}/ProjectDrawer.tsx (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/ProjectDrawer.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/ProjectView.tsx (95%) rename frontend/svalyn-studio-app/src/{views/project => projects}/ProjectView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project/ProjectRouter.tsx => projects/ProjectsRouter.tsx} (89%) rename frontend/svalyn-studio-app/src/{views/project => projects}/activity/ProjectActivity.tsx (96%) rename frontend/svalyn-studio-app/src/{views/project => projects}/activity/ProjectActivity.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/changeproposals/ChangeProposalsTableHead.tsx (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/changeproposals/ChangeProposalsTableHead.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/changeproposals/ChangeProposalsTableToolbar.tsx (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/changeproposals/ChangeProposalsTableToolbar.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/changeproposals/ProjectChangeProposal.tsx (99%) rename frontend/svalyn-studio-app/src/{views/project => projects}/changeproposals/ProjectChangeProposal.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/home/ProjectBranchCard.tsx (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/home/ProjectBranchCard.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/home/ProjectHome.tsx (96%) rename frontend/svalyn-studio-app/src/{views/project => projects}/home/ProjectHome.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/home/ProjectReadMeCard.tsx (97%) rename frontend/svalyn-studio-app/src/{views/project => projects}/home/ProjectReadMeCard.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => projects}/new-changeproposal/NewChangeProposalView.tsx (100%) rename frontend/svalyn-studio-app/src/{views => projects}/new-changeproposal/NewChangeProposalView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => projects}/resource/ResourceView.tsx (98%) rename frontend/svalyn-studio-app/src/{views => projects}/resource/ResourceView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/settings/DeleteProjectDialog.tsx (98%) rename frontend/svalyn-studio-app/src/{views/project => projects}/settings/DeleteProjectDialog.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/settings/ProjectSettings.tsx (99%) rename frontend/svalyn-studio-app/src/{views/project => projects}/settings/ProjectSettings.types.ts (100%) rename frontend/svalyn-studio-app/src/{views/project => projects}/tags/ProjectTags.tsx (99%) rename frontend/svalyn-studio-app/src/{views/project => projects}/tags/ProjectTags.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => projects}/workspace/WorkspaceView.tsx (100%) rename frontend/svalyn-studio-app/src/{views => projects}/workspace/WorkspaceView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/search/SearchRouter.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/search/SearchView.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/search/SearchView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/SettingsRouter.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/SettingsView.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/settings/SettingsView.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/SettingsViewDrawer.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/SettingsViewDrawer.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx (98%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/AuthenticationTokensSettingsTab.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/AuthenticationTokensTableHead.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/AuthenticationTokensTableHead.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/AuthenticationTokensToolbar.tsx (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/AuthenticationTokensToolbar.types.ts (100%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx (97%) rename frontend/svalyn-studio-app/src/{views => }/settings/authentication-tokens/NewAuthenticationTokenDialog.types.ts (100%) diff --git a/frontend/svalyn-studio-app/src/app/App.tsx b/frontend/svalyn-studio-app/src/app/App.tsx index 7329b33..c4ca9b0 100644 --- a/frontend/svalyn-studio-app/src/app/App.tsx +++ b/frontend/svalyn-studio-app/src/app/App.tsx @@ -20,23 +20,23 @@ import CssBaseline from '@mui/material/CssBaseline'; import { ThemeProvider } from '@mui/material/styles'; import { BrowserRouter, Route, Routes } from 'react-router-dom'; +import { ChangeProposalsRouter } from '../changeproposals/ChangeProposalsRouter'; +import { DomainsRouter } from '../domains/DomainsRouter'; +import { ErrorsRouter } from '../errors/ErrorsRouter'; +import { HelpRouter } from '../help/HelpRouter'; +import { HomeView } from '../home/HomeView'; +import { InvitationsRouter } from '../invitations/InvitationsRouter'; +import { LoginRouter } from '../login/LoginRouter'; +import { NewRouter } from '../new/NewRouter'; +import { NotFoundView } from '../notfound/NotFoundView'; +import { NotificationsRouter } from '../notifications/NotificationsRouter'; +import { OAuth2Router } from '../oauth2/OAuth2Router'; +import { OrganizationsRouter } from '../organizations/OrganizationsRouter'; import { PaletteProvider } from '../palette/PaletteProvider'; -import { ChangeProposalRouter } from '../views/changeproposal/ChangeProposalRouter'; -import { DomainRouter } from '../views/domains/DomainRouter'; -import { ErrorRouter } from '../views/error/ErrorRouter'; -import { HelpRouter } from '../views/help/HelpRouter'; -import { HomeView } from '../views/home/HomeView'; -import { InvitationRouter } from '../views/invitations/InvitationRouter'; -import { LoginRouter } from '../views/login/LoginRouter'; -import { NewRouter } from '../views/new-organization/NewRouter'; -import { NotFoundView } from '../views/notfound/NotFoundView'; -import { NotificationRouter } from '../views/notifications/NotificationRouter'; -import { OAuth2Router } from '../views/oauth2redirect/OAuth2Router'; -import { OrganizationRouter } from '../views/organization/OrganizationRouter'; -import { ProfileRouter } from '../views/profile/ProfileRouter'; -import { ProjectRouter } from '../views/project/ProjectRouter'; -import { SearchRouter } from '../views/search/SearchRouter'; -import { SettingsRouter } from '../views/settings/SettingsRouter'; +import { ProfilesRouter } from '../profiles/ProfilesRouter'; +import { ProjectsRouter } from '../projects/ProjectsRouter'; +import { SearchRouter } from '../search/SearchRouter'; +import { SettingsRouter } from '../settings/SettingsRouter'; import { AuthenticationRedirectionBoundary } from './AuthenticationRedirectionBoundary'; import { theme } from './theme'; @@ -50,17 +50,17 @@ export const App = () => { } /> } /> - } /> - } /> - } /> - } /> + } /> + } /> + } /> + } /> } /> - } /> - } /> - } /> + } /> + } /> + } /> } /> } /> - } /> + } /> } /> } /> } /> diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalView.tsx b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalView.tsx similarity index 93% rename from frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalView.tsx rename to frontend/svalyn-studio-app/src/changeproposals/ChangeProposalView.tsx index 36410d5..77bc8de 100644 --- a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalView.tsx +++ b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalView.tsx @@ -22,12 +22,12 @@ import ClassIcon from '@mui/icons-material/Class'; import CorporateFareIcon from '@mui/icons-material/CorporateFare'; import { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { goToDomains, goToHelp, goToHome, goToNotifications, goToSettings } from '../../palette/DefaultPaletteActions'; -import { PaletteNavigationAction } from '../../palette/Palette.types'; -import { usePalette } from '../../palette/usePalette'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; import { NotFoundView } from '../notfound/NotFoundView'; +import { goToDomains, goToHelp, goToHome, goToNotifications, goToSettings } from '../palette/DefaultPaletteActions'; +import { PaletteNavigationAction } from '../palette/Palette.types'; +import { usePalette } from '../palette/usePalette'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { ChangeProposalViewState, GetChangeProposalData, GetChangeProposalVariables } from './ChangeProposalView.types'; import { ChangeProposalViewTabPanel } from './ChangeProposalViewTabPanel'; diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalView.types.ts b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalView.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/ChangeProposalView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalViewTabPanel.tsx b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalViewTabPanel.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalViewTabPanel.tsx rename to frontend/svalyn-studio-app/src/changeproposals/ChangeProposalViewTabPanel.tsx diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalViewTabPanel.types.ts b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalViewTabPanel.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalViewTabPanel.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/ChangeProposalViewTabPanel.types.ts diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalRouter.tsx b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalsRouter.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalRouter.tsx rename to frontend/svalyn-studio-app/src/changeproposals/ChangeProposalsRouter.tsx index 74ea30b..79afd13 100644 --- a/frontend/svalyn-studio-app/src/views/changeproposal/ChangeProposalRouter.tsx +++ b/frontend/svalyn-studio-app/src/changeproposals/ChangeProposalsRouter.tsx @@ -20,7 +20,7 @@ import { Outlet, Route, Routes } from 'react-router-dom'; import { ChangeProposalView } from './ChangeProposalView'; -export const ChangeProposalRouter = () => { +export const ChangeProposalsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ReviewDialog.tsx b/frontend/svalyn-studio-app/src/changeproposals/ReviewDialog.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/changeproposal/ReviewDialog.tsx rename to frontend/svalyn-studio-app/src/changeproposals/ReviewDialog.tsx index 2f7714b..f73a9da 100644 --- a/frontend/svalyn-studio-app/src/views/changeproposal/ReviewDialog.tsx +++ b/frontend/svalyn-studio-app/src/changeproposals/ReviewDialog.tsx @@ -31,7 +31,7 @@ import Radio from '@mui/material/Radio'; import RadioGroup from '@mui/material/RadioGroup'; import TextField from '@mui/material/TextField'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { ErrorPayload, PerformReviewData, diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/ReviewDialog.types.ts b/frontend/svalyn-studio-app/src/changeproposals/ReviewDialog.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/ReviewDialog.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/ReviewDialog.types.ts diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/files/ChangeProposalFiles.tsx b/frontend/svalyn-studio-app/src/changeproposals/files/ChangeProposalFiles.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/changeproposal/files/ChangeProposalFiles.tsx rename to frontend/svalyn-studio-app/src/changeproposals/files/ChangeProposalFiles.tsx index 572ba45..35a8ae8 100644 --- a/frontend/svalyn-studio-app/src/views/changeproposal/files/ChangeProposalFiles.tsx +++ b/frontend/svalyn-studio-app/src/changeproposals/files/ChangeProposalFiles.tsx @@ -28,8 +28,8 @@ import ListItemIcon from '@mui/material/ListItemIcon'; import ListItemText from '@mui/material/ListItemText'; import Paper from '@mui/material/Paper'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; -import { ViewerCard } from '../../../viewers/ViewerCard'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ViewerCard } from '../../viewers/ViewerCard'; import { ChangeProposalFilesProps, ChangeProposalFilesState, diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/files/ChangeProposalFiles.types.ts b/frontend/svalyn-studio-app/src/changeproposals/files/ChangeProposalFiles.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/files/ChangeProposalFiles.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/files/ChangeProposalFiles.types.ts diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalHeader.tsx b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalHeader.tsx similarity index 95% rename from frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalHeader.tsx rename to frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalHeader.tsx index f152ffe..9d8542e 100644 --- a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalHeader.tsx +++ b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalHeader.tsx @@ -22,8 +22,8 @@ import NotInterestedIcon from '@mui/icons-material/NotInterested'; import PanoramaFishEyeIcon from '@mui/icons-material/PanoramaFishEye'; import Box from '@mui/material/Box'; import Chip from '@mui/material/Chip'; -import { CreatedOn } from '../../../widgets/CreatedOn'; -import { LastModifiedOn } from '../../../widgets/LastModifiedOn'; +import { CreatedOn } from '../../widgets/CreatedOn'; +import { LastModifiedOn } from '../../widgets/LastModifiedOn'; import { ChangeProposalHeaderProps } from './ChangeProposalHeader.types'; export const ChangeProposalHeader = ({ changeProposal }: ChangeProposalHeaderProps) => { diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalHeader.types.ts b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalHeader.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalHeader.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalHeader.types.ts diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalOverview.tsx b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalOverview.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalOverview.tsx rename to frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalOverview.tsx index 0c94ccc..f2bc803 100644 --- a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalOverview.tsx +++ b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalOverview.tsx @@ -28,8 +28,8 @@ import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import ReactMarkdown from 'react-markdown'; -import { EditReadMeDialog } from '../../../dialogs/EditReadMeDialog'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { EditReadMeDialog } from '../../dialogs/EditReadMeDialog'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ChangeProposalHeader } from './ChangeProposalHeader'; import { ChangeProposalOverviewProps, diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalOverview.types.ts b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalOverview.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalOverview.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalOverview.types.ts diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalStatus.tsx b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalStatus.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalStatus.tsx rename to frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalStatus.tsx diff --git a/frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalStatus.types.ts b/frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalStatus.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/changeproposal/overview/ChangeProposalStatus.types.ts rename to frontend/svalyn-studio-app/src/changeproposals/overview/ChangeProposalStatus.types.ts diff --git a/frontend/svalyn-studio-app/src/views/domain/DomainView.tsx b/frontend/svalyn-studio-app/src/domains/DomainView.tsx similarity index 94% rename from frontend/svalyn-studio-app/src/views/domain/DomainView.tsx rename to frontend/svalyn-studio-app/src/domains/DomainView.tsx index df31c14..bef7f25 100644 --- a/frontend/svalyn-studio-app/src/views/domain/DomainView.tsx +++ b/frontend/svalyn-studio-app/src/domains/DomainView.tsx @@ -22,9 +22,9 @@ import Container from '@mui/material/Container'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useParams } from 'react-router-dom'; -import { DiagramEditor } from '../../diagram/DiagramEditor'; -import { Diagram } from '../../diagram/DiagramEditor.types'; -import { Navbar } from '../../navbars/Navbar'; +import { DiagramEditor } from '../diagram/DiagramEditor'; +import { Diagram } from '../diagram/DiagramEditor.types'; +import { Navbar } from '../navbars/Navbar'; import { GetDomainData, GetDomainVariables } from './DomainView.types'; import { convertDomain } from './converters'; diff --git a/frontend/svalyn-studio-app/src/views/domain/DomainView.types.ts b/frontend/svalyn-studio-app/src/domains/DomainView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/domain/DomainView.types.ts rename to frontend/svalyn-studio-app/src/domains/DomainView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/domains/DomainRouter.tsx b/frontend/svalyn-studio-app/src/domains/DomainsRouter.tsx similarity index 94% rename from frontend/svalyn-studio-app/src/views/domains/DomainRouter.tsx rename to frontend/svalyn-studio-app/src/domains/DomainsRouter.tsx index a7e01e9..5dc875c 100644 --- a/frontend/svalyn-studio-app/src/views/domains/DomainRouter.tsx +++ b/frontend/svalyn-studio-app/src/domains/DomainsRouter.tsx @@ -18,10 +18,10 @@ */ import { Outlet, Route, Routes } from 'react-router-dom'; -import { DomainView } from '../domain/DomainView'; +import { DomainView } from './DomainView'; import { DomainsView } from './DomainsView'; -export const DomainRouter = () => { +export const DomainsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/domains/DomainsView.tsx b/frontend/svalyn-studio-app/src/domains/DomainsView.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/domains/DomainsView.tsx rename to frontend/svalyn-studio-app/src/domains/DomainsView.tsx index f41bf38..cd0c5ad 100644 --- a/frontend/svalyn-studio-app/src/views/domains/DomainsView.tsx +++ b/frontend/svalyn-studio-app/src/domains/DomainsView.tsx @@ -30,8 +30,8 @@ import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { Domain, DomainsViewState, GetDomainsData, GetDomainsVariables } from './DomainsView.types'; const getDomainsQuery = gql` diff --git a/frontend/svalyn-studio-app/src/views/domains/DomainsView.types.ts b/frontend/svalyn-studio-app/src/domains/DomainsView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/domains/DomainsView.types.ts rename to frontend/svalyn-studio-app/src/domains/DomainsView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/domain/converters.ts b/frontend/svalyn-studio-app/src/domains/converters.ts similarity index 96% rename from frontend/svalyn-studio-app/src/views/domain/converters.ts rename to frontend/svalyn-studio-app/src/domains/converters.ts index 20919e2..aea3164 100644 --- a/frontend/svalyn-studio-app/src/views/domain/converters.ts +++ b/frontend/svalyn-studio-app/src/domains/converters.ts @@ -18,8 +18,8 @@ */ import { Edge, Node } from 'reactflow'; -import { Diagram } from '../../diagram/DiagramEditor.types'; -import { ListItemData, ListNodeData } from '../../diagram/nodes/ListNode.types'; +import { Diagram } from '../diagram/DiagramEditor.types'; +import { ListItemData, ListNodeData } from '../diagram/nodes/ListNode.types'; import { DataType, Domain, Entity, Enumeration } from './DomainView.types'; export const convertDomain = (domain: Domain): Diagram => { diff --git a/frontend/svalyn-studio-app/src/views/error/ErrorView.tsx b/frontend/svalyn-studio-app/src/errors/ErrorView.tsx similarity index 95% rename from frontend/svalyn-studio-app/src/views/error/ErrorView.tsx rename to frontend/svalyn-studio-app/src/errors/ErrorView.tsx index 1220eae..9732391 100644 --- a/frontend/svalyn-studio-app/src/views/error/ErrorView.tsx +++ b/frontend/svalyn-studio-app/src/errors/ErrorView.tsx @@ -20,7 +20,7 @@ import Container from '@mui/material/Container'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; -import { UnauthenticatedNavbar } from '../../navbars/UnauthenticatedNavbar'; +import { UnauthenticatedNavbar } from '../navbars/UnauthenticatedNavbar'; export const ErrorView = () => { return ( diff --git a/frontend/svalyn-studio-app/src/views/error/ErrorRouter.tsx b/frontend/svalyn-studio-app/src/errors/ErrorsRouter.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/error/ErrorRouter.tsx rename to frontend/svalyn-studio-app/src/errors/ErrorsRouter.tsx index b825c74..a073bd0 100644 --- a/frontend/svalyn-studio-app/src/views/error/ErrorRouter.tsx +++ b/frontend/svalyn-studio-app/src/errors/ErrorsRouter.tsx @@ -20,7 +20,7 @@ import { Outlet, Route, Routes } from 'react-router-dom'; import { ErrorView } from './ErrorView'; -export const ErrorRouter = () => { +export const ErrorsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/help/HelpRouter.tsx b/frontend/svalyn-studio-app/src/help/HelpRouter.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/help/HelpRouter.tsx rename to frontend/svalyn-studio-app/src/help/HelpRouter.tsx diff --git a/frontend/svalyn-studio-app/src/views/help/HelpView.tsx b/frontend/svalyn-studio-app/src/help/HelpView.tsx similarity index 95% rename from frontend/svalyn-studio-app/src/views/help/HelpView.tsx rename to frontend/svalyn-studio-app/src/help/HelpView.tsx index c56208b..b846cbe 100644 --- a/frontend/svalyn-studio-app/src/views/help/HelpView.tsx +++ b/frontend/svalyn-studio-app/src/help/HelpView.tsx @@ -20,7 +20,7 @@ import Container from '@mui/material/Container'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; -import { UnauthenticatedNavbar } from '../../navbars/UnauthenticatedNavbar'; +import { UnauthenticatedNavbar } from '../navbars/UnauthenticatedNavbar'; export const HelpView = () => { return ( diff --git a/frontend/svalyn-studio-app/src/views/home/HomeView.tsx b/frontend/svalyn-studio-app/src/home/HomeView.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/home/HomeView.tsx rename to frontend/svalyn-studio-app/src/home/HomeView.tsx index ea739d8..d295092 100644 --- a/frontend/svalyn-studio-app/src/views/home/HomeView.tsx +++ b/frontend/svalyn-studio-app/src/home/HomeView.tsx @@ -18,7 +18,7 @@ */ import Box from '@mui/material/Box'; -import { Navbar } from '../../navbars/Navbar'; +import { Navbar } from '../navbars/Navbar'; import { HomeViewCenterPanel } from './HomeViewCenterPanel'; import { HomeViewLeftPanel } from './HomeViewLeftPanel'; import { HomeViewRightPanel } from './HomeViewRightPanel'; diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewActivity.tsx b/frontend/svalyn-studio-app/src/home/HomeViewActivity.tsx similarity index 96% rename from frontend/svalyn-studio-app/src/views/home/HomeViewActivity.tsx rename to frontend/svalyn-studio-app/src/home/HomeViewActivity.tsx index 6d5ec14..6e27297 100644 --- a/frontend/svalyn-studio-app/src/views/home/HomeViewActivity.tsx +++ b/frontend/svalyn-studio-app/src/home/HomeViewActivity.tsx @@ -21,8 +21,8 @@ import { gql, useQuery } from '@apollo/client'; import Link from '@mui/material/Link'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ActivityTimeline } from '../../activity/ActivityTimeline'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ActivityTimeline } from '../activity/ActivityTimeline'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { GetActivityData, GetActivityVariables, diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewActivity.types.ts b/frontend/svalyn-studio-app/src/home/HomeViewActivity.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewActivity.types.ts rename to frontend/svalyn-studio-app/src/home/HomeViewActivity.types.ts diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewCenterPanel.tsx b/frontend/svalyn-studio-app/src/home/HomeViewCenterPanel.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewCenterPanel.tsx rename to frontend/svalyn-studio-app/src/home/HomeViewCenterPanel.tsx diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewCenterPanel.types.ts b/frontend/svalyn-studio-app/src/home/HomeViewCenterPanel.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewCenterPanel.types.ts rename to frontend/svalyn-studio-app/src/home/HomeViewCenterPanel.types.ts diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewLeftPanel.tsx b/frontend/svalyn-studio-app/src/home/HomeViewLeftPanel.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/home/HomeViewLeftPanel.tsx rename to frontend/svalyn-studio-app/src/home/HomeViewLeftPanel.tsx index f0df523..7623cfc 100644 --- a/frontend/svalyn-studio-app/src/views/home/HomeViewLeftPanel.tsx +++ b/frontend/svalyn-studio-app/src/home/HomeViewLeftPanel.tsx @@ -30,7 +30,7 @@ import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { GetOrganizationsData, GetOrganizationsVariables, diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewLeftPanel.types.ts b/frontend/svalyn-studio-app/src/home/HomeViewLeftPanel.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewLeftPanel.types.ts rename to frontend/svalyn-studio-app/src/home/HomeViewLeftPanel.types.ts diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewRightPanel.tsx b/frontend/svalyn-studio-app/src/home/HomeViewRightPanel.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewRightPanel.tsx rename to frontend/svalyn-studio-app/src/home/HomeViewRightPanel.tsx diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewRightPanel.types.ts b/frontend/svalyn-studio-app/src/home/HomeViewRightPanel.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewRightPanel.types.ts rename to frontend/svalyn-studio-app/src/home/HomeViewRightPanel.types.ts diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewSearch.tsx b/frontend/svalyn-studio-app/src/home/HomeViewSearch.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewSearch.tsx rename to frontend/svalyn-studio-app/src/home/HomeViewSearch.tsx diff --git a/frontend/svalyn-studio-app/src/views/home/HomeViewSearch.types.ts b/frontend/svalyn-studio-app/src/home/HomeViewSearch.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/home/HomeViewSearch.types.ts rename to frontend/svalyn-studio-app/src/home/HomeViewSearch.types.ts diff --git a/frontend/svalyn-studio-app/src/views/invitations/InvitationRouter.tsx b/frontend/svalyn-studio-app/src/invitations/InvitationsRouter.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/invitations/InvitationRouter.tsx rename to frontend/svalyn-studio-app/src/invitations/InvitationsRouter.tsx index 065aa0f..105989f 100644 --- a/frontend/svalyn-studio-app/src/views/invitations/InvitationRouter.tsx +++ b/frontend/svalyn-studio-app/src/invitations/InvitationsRouter.tsx @@ -20,7 +20,7 @@ import { Outlet, Route, Routes } from 'react-router-dom'; import { InvitationsView } from './InvitationsView'; -export const InvitationRouter = () => { +export const InvitationsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/invitations/InvitationsView.tsx b/frontend/svalyn-studio-app/src/invitations/InvitationsView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/invitations/InvitationsView.tsx rename to frontend/svalyn-studio-app/src/invitations/InvitationsView.tsx index ed1a16d..2745d59 100644 --- a/frontend/svalyn-studio-app/src/views/invitations/InvitationsView.tsx +++ b/frontend/svalyn-studio-app/src/invitations/InvitationsView.tsx @@ -32,8 +32,8 @@ import Toolbar from '@mui/material/Toolbar'; import Tooltip from '@mui/material/Tooltip'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { AcceptInvitationData, AcceptInvitationVariables, diff --git a/frontend/svalyn-studio-app/src/views/invitations/InvitationsView.types.ts b/frontend/svalyn-studio-app/src/invitations/InvitationsView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/invitations/InvitationsView.types.ts rename to frontend/svalyn-studio-app/src/invitations/InvitationsView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/login/LoginRouter.tsx b/frontend/svalyn-studio-app/src/login/LoginRouter.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/login/LoginRouter.tsx rename to frontend/svalyn-studio-app/src/login/LoginRouter.tsx diff --git a/frontend/svalyn-studio-app/src/views/login/LoginView.tsx b/frontend/svalyn-studio-app/src/login/LoginView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/login/LoginView.tsx rename to frontend/svalyn-studio-app/src/login/LoginView.tsx index 87e2546..8fecd6d 100644 --- a/frontend/svalyn-studio-app/src/views/login/LoginView.tsx +++ b/frontend/svalyn-studio-app/src/login/LoginView.tsx @@ -31,7 +31,7 @@ import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useState } from 'react'; import { Link } from 'react-router-dom'; -import { UnauthenticatedNavbar } from '../../navbars/UnauthenticatedNavbar'; +import { UnauthenticatedNavbar } from '../navbars/UnauthenticatedNavbar'; import { LoginViewState, LoginViewTab } from './LoginView.types'; import { LoginWithCredentials } from './LoginWithCredentials'; import { LoginWithGithub } from './LoginWithGithub'; diff --git a/frontend/svalyn-studio-app/src/views/login/LoginView.types.ts b/frontend/svalyn-studio-app/src/login/LoginView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/login/LoginView.types.ts rename to frontend/svalyn-studio-app/src/login/LoginView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/login/LoginWithCredentials.tsx b/frontend/svalyn-studio-app/src/login/LoginWithCredentials.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/login/LoginWithCredentials.tsx rename to frontend/svalyn-studio-app/src/login/LoginWithCredentials.tsx index a734060..d6eb141 100644 --- a/frontend/svalyn-studio-app/src/views/login/LoginWithCredentials.tsx +++ b/frontend/svalyn-studio-app/src/login/LoginWithCredentials.tsx @@ -24,8 +24,8 @@ import TextField from '@mui/material/TextField'; import Typography from '@mui/material/Typography'; import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { getCookie } from '../../cookies/getCookie'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { getCookie } from '../cookies/getCookie'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { LoginWithCredentialsState } from './LoginWithCredentials.types'; const { VITE_BACKEND_URL } = import.meta.env; diff --git a/frontend/svalyn-studio-app/src/views/login/LoginWithCredentials.types.ts b/frontend/svalyn-studio-app/src/login/LoginWithCredentials.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/login/LoginWithCredentials.types.ts rename to frontend/svalyn-studio-app/src/login/LoginWithCredentials.types.ts diff --git a/frontend/svalyn-studio-app/src/views/login/LoginWithGithub.tsx b/frontend/svalyn-studio-app/src/login/LoginWithGithub.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/login/LoginWithGithub.tsx rename to frontend/svalyn-studio-app/src/login/LoginWithGithub.tsx diff --git a/frontend/svalyn-studio-app/src/views/new-organization/NewOrganizationView.tsx b/frontend/svalyn-studio-app/src/new/NewOrganizationView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/new-organization/NewOrganizationView.tsx rename to frontend/svalyn-studio-app/src/new/NewOrganizationView.tsx index 374b042..69edd71 100644 --- a/frontend/svalyn-studio-app/src/views/new-organization/NewOrganizationView.tsx +++ b/frontend/svalyn-studio-app/src/new/NewOrganizationView.tsx @@ -30,8 +30,8 @@ import Typography from '@mui/material/Typography'; import { styled } from '@mui/material/styles'; import { useEffect, useState } from 'react'; import { Navigate, Link as RouterLink } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { CreateOrganizationData, CreateOrganizationInput, diff --git a/frontend/svalyn-studio-app/src/views/new-organization/NewOrganizationView.types.ts b/frontend/svalyn-studio-app/src/new/NewOrganizationView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/new-organization/NewOrganizationView.types.ts rename to frontend/svalyn-studio-app/src/new/NewOrganizationView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/new-organization/NewRouter.tsx b/frontend/svalyn-studio-app/src/new/NewRouter.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/new-organization/NewRouter.tsx rename to frontend/svalyn-studio-app/src/new/NewRouter.tsx diff --git a/frontend/svalyn-studio-app/src/views/notfound/NotFoundView.tsx b/frontend/svalyn-studio-app/src/notfound/NotFoundView.tsx similarity index 95% rename from frontend/svalyn-studio-app/src/views/notfound/NotFoundView.tsx rename to frontend/svalyn-studio-app/src/notfound/NotFoundView.tsx index d74468e..c0bca84 100644 --- a/frontend/svalyn-studio-app/src/views/notfound/NotFoundView.tsx +++ b/frontend/svalyn-studio-app/src/notfound/NotFoundView.tsx @@ -20,7 +20,7 @@ import Container from '@mui/material/Container'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; -import { UnauthenticatedNavbar } from '../../navbars/UnauthenticatedNavbar'; +import { UnauthenticatedNavbar } from '../navbars/UnauthenticatedNavbar'; export const NotFoundView = () => { return ( diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationRouter.tsx b/frontend/svalyn-studio-app/src/notifications/NotificationsRouter.tsx similarity index 96% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationRouter.tsx rename to frontend/svalyn-studio-app/src/notifications/NotificationsRouter.tsx index 31e085b..596f625 100644 --- a/frontend/svalyn-studio-app/src/views/notifications/NotificationRouter.tsx +++ b/frontend/svalyn-studio-app/src/notifications/NotificationsRouter.tsx @@ -20,7 +20,7 @@ import { Outlet, Route, Routes } from 'react-router-dom'; import { NotificationsView } from './NotificationsView'; -export const NotificationRouter = () => { +export const NotificationsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationsTableHead.tsx b/frontend/svalyn-studio-app/src/notifications/NotificationsTableHead.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationsTableHead.tsx rename to frontend/svalyn-studio-app/src/notifications/NotificationsTableHead.tsx diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationsTableHead.types.ts b/frontend/svalyn-studio-app/src/notifications/NotificationsTableHead.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationsTableHead.types.ts rename to frontend/svalyn-studio-app/src/notifications/NotificationsTableHead.types.ts diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationsTableToolbar.tsx b/frontend/svalyn-studio-app/src/notifications/NotificationsTableToolbar.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationsTableToolbar.tsx rename to frontend/svalyn-studio-app/src/notifications/NotificationsTableToolbar.tsx diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationsTableToolbar.types.ts b/frontend/svalyn-studio-app/src/notifications/NotificationsTableToolbar.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationsTableToolbar.types.ts rename to frontend/svalyn-studio-app/src/notifications/NotificationsTableToolbar.types.ts diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationsView.tsx b/frontend/svalyn-studio-app/src/notifications/NotificationsView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationsView.tsx rename to frontend/svalyn-studio-app/src/notifications/NotificationsView.tsx index 92b67a4..264f94b 100644 --- a/frontend/svalyn-studio-app/src/views/notifications/NotificationsView.tsx +++ b/frontend/svalyn-studio-app/src/notifications/NotificationsView.tsx @@ -39,9 +39,9 @@ import Tooltip from '@mui/material/Tooltip'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; -import { formatTime } from '../../utils/formatTime'; +import { Navbar } from '../navbars/Navbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; +import { formatTime } from '../utils/formatTime'; import { NavigationsTableHead } from './NotificationsTableHead'; import { NotificationsTableToolbar } from './NotificationsTableToolbar'; import { diff --git a/frontend/svalyn-studio-app/src/views/notifications/NotificationsView.types.ts b/frontend/svalyn-studio-app/src/notifications/NotificationsView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/notifications/NotificationsView.types.ts rename to frontend/svalyn-studio-app/src/notifications/NotificationsView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/oauth2redirect/OAuth2RedirectView.tsx b/frontend/svalyn-studio-app/src/oauth2/OAuth2RedirectView.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/oauth2redirect/OAuth2RedirectView.tsx rename to frontend/svalyn-studio-app/src/oauth2/OAuth2RedirectView.tsx diff --git a/frontend/svalyn-studio-app/src/views/oauth2redirect/OAuth2Router.tsx b/frontend/svalyn-studio-app/src/oauth2/OAuth2Router.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/oauth2redirect/OAuth2Router.tsx rename to frontend/svalyn-studio-app/src/oauth2/OAuth2Router.tsx diff --git a/frontend/svalyn-studio-app/src/views/organization/NewProjectDialog.tsx b/frontend/svalyn-studio-app/src/organizations/NewProjectDialog.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/organization/NewProjectDialog.tsx rename to frontend/svalyn-studio-app/src/organizations/NewProjectDialog.tsx index 643b725..9bb3ab5 100644 --- a/frontend/svalyn-studio-app/src/views/organization/NewProjectDialog.tsx +++ b/frontend/svalyn-studio-app/src/organizations/NewProjectDialog.tsx @@ -29,7 +29,7 @@ import Typography from '@mui/material/Typography'; import { Theme } from '@mui/material/styles'; import { useEffect, useState } from 'react'; import { Navigate } from 'react-router-dom'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { CreateProjectData, CreateProjectSuccessPayload, diff --git a/frontend/svalyn-studio-app/src/views/organization/NewProjectDialog.types.tsx b/frontend/svalyn-studio-app/src/organizations/NewProjectDialog.types.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/NewProjectDialog.types.tsx rename to frontend/svalyn-studio-app/src/organizations/NewProjectDialog.types.tsx diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationPicker.tsx b/frontend/svalyn-studio-app/src/organizations/OrganizationPicker.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationPicker.tsx rename to frontend/svalyn-studio-app/src/organizations/OrganizationPicker.tsx index c0570a1..3bf9ea6 100644 --- a/frontend/svalyn-studio-app/src/views/organization/OrganizationPicker.tsx +++ b/frontend/svalyn-studio-app/src/organizations/OrganizationPicker.tsx @@ -31,7 +31,7 @@ import MenuItem from '@mui/material/MenuItem'; import { styled } from '@mui/material/styles'; import { useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { GetOrganizationsData, GetOrganizationsVariables, diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationPicker.types.ts b/frontend/svalyn-studio-app/src/organizations/OrganizationPicker.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationPicker.types.ts rename to frontend/svalyn-studio-app/src/organizations/OrganizationPicker.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationView.tsx b/frontend/svalyn-studio-app/src/organizations/OrganizationView.tsx similarity index 96% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationView.tsx rename to frontend/svalyn-studio-app/src/organizations/OrganizationView.tsx index 49159cf..c352aeb 100644 --- a/frontend/svalyn-studio-app/src/views/organization/OrganizationView.tsx +++ b/frontend/svalyn-studio-app/src/organizations/OrganizationView.tsx @@ -20,9 +20,9 @@ import { gql, useQuery } from '@apollo/client'; import { useEffect, useState } from 'react'; import { useLocation, useParams } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; import { NotFoundView } from '../notfound/NotFoundView'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { OrganizationPicker } from './OrganizationPicker'; import { GetOrganizationData, GetOrganizationVariables, OrganizationViewState } from './OrganizationView.types'; import { OrganizationViewTabPanel } from './OrganizationViewTabPanel'; diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationView.types.ts b/frontend/svalyn-studio-app/src/organizations/OrganizationView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationView.types.ts rename to frontend/svalyn-studio-app/src/organizations/OrganizationView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationViewTabPanel.tsx b/frontend/svalyn-studio-app/src/organizations/OrganizationViewTabPanel.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationViewTabPanel.tsx rename to frontend/svalyn-studio-app/src/organizations/OrganizationViewTabPanel.tsx index adde49e..d6f3c59 100644 --- a/frontend/svalyn-studio-app/src/views/organization/OrganizationViewTabPanel.tsx +++ b/frontend/svalyn-studio-app/src/organizations/OrganizationViewTabPanel.tsx @@ -38,9 +38,9 @@ import { goToNewOrganization, goToNotifications, goToSettings, -} from '../../palette/DefaultPaletteActions'; -import { PaletteSimpleAction } from '../../palette/Palette.types'; -import { usePalette } from '../../palette/usePalette'; +} from '../palette/DefaultPaletteActions'; +import { PaletteSimpleAction } from '../palette/Palette.types'; +import { usePalette } from '../palette/usePalette'; import { NewProjectDialog } from './NewProjectDialog'; import { OrganizationViewTabPanelProps, OrganizationViewTabPanelState } from './OrganizationViewTabPanel.types'; import { OrganizationDashboard } from './dashboard/OrganizationDashboard'; diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationViewTabPanel.types.ts b/frontend/svalyn-studio-app/src/organizations/OrganizationViewTabPanel.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationViewTabPanel.types.ts rename to frontend/svalyn-studio-app/src/organizations/OrganizationViewTabPanel.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/OrganizationRouter.tsx b/frontend/svalyn-studio-app/src/organizations/OrganizationsRouter.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/organization/OrganizationRouter.tsx rename to frontend/svalyn-studio-app/src/organizations/OrganizationsRouter.tsx index 87fc25b..5cfae2d 100644 --- a/frontend/svalyn-studio-app/src/views/organization/OrganizationRouter.tsx +++ b/frontend/svalyn-studio-app/src/organizations/OrganizationsRouter.tsx @@ -20,7 +20,7 @@ import { Outlet, Route, Routes } from 'react-router-dom'; import { OrganizationView } from './OrganizationView'; -export const OrganizationRouter = () => { +export const OrganizationsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/organization/dashboard/OrganizationDashboard.tsx b/frontend/svalyn-studio-app/src/organizations/dashboard/OrganizationDashboard.tsx similarity index 96% rename from frontend/svalyn-studio-app/src/views/organization/dashboard/OrganizationDashboard.tsx rename to frontend/svalyn-studio-app/src/organizations/dashboard/OrganizationDashboard.tsx index f2de065..c004233 100644 --- a/frontend/svalyn-studio-app/src/views/organization/dashboard/OrganizationDashboard.tsx +++ b/frontend/svalyn-studio-app/src/organizations/dashboard/OrganizationDashboard.tsx @@ -22,14 +22,14 @@ import ClassIcon from '@mui/icons-material/Class'; import TimelineIcon from '@mui/icons-material/Timeline'; import Box, { BoxProps } from '@mui/material/Box'; import Grid from '@mui/material/Grid'; -import { styled } from '@mui/material/styles'; import TablePagination from '@mui/material/TablePagination'; import Typography from '@mui/material/Typography'; +import { styled } from '@mui/material/styles'; import { useEffect, useState } from 'react'; -import { ActivityTimeline } from '../../../activity/ActivityTimeline'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; -import { CreatedOn } from '../../../widgets/CreatedOn'; -import { LastModifiedOn } from '../../../widgets/LastModifiedOn'; +import { ActivityTimeline } from '../../activity/ActivityTimeline'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { CreatedOn } from '../../widgets/CreatedOn'; +import { LastModifiedOn } from '../../widgets/LastModifiedOn'; import { ActivityAreaProps, GetOrganizationDashboardData, diff --git a/frontend/svalyn-studio-app/src/views/organization/dashboard/OrganizationDashboard.types.ts b/frontend/svalyn-studio-app/src/organizations/dashboard/OrganizationDashboard.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/dashboard/OrganizationDashboard.types.ts rename to frontend/svalyn-studio-app/src/organizations/dashboard/OrganizationDashboard.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/dashboard/ProjectCard.tsx b/frontend/svalyn-studio-app/src/organizations/dashboard/ProjectCard.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/dashboard/ProjectCard.tsx rename to frontend/svalyn-studio-app/src/organizations/dashboard/ProjectCard.tsx diff --git a/frontend/svalyn-studio-app/src/views/organization/dashboard/ProjectCard.types.ts b/frontend/svalyn-studio-app/src/organizations/dashboard/ProjectCard.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/dashboard/ProjectCard.types.ts rename to frontend/svalyn-studio-app/src/organizations/dashboard/ProjectCard.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/Invitations.tsx b/frontend/svalyn-studio-app/src/organizations/members/Invitations.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/organization/members/Invitations.tsx rename to frontend/svalyn-studio-app/src/organizations/members/Invitations.tsx index 25b1947..7e0aa02 100644 --- a/frontend/svalyn-studio-app/src/views/organization/members/Invitations.tsx +++ b/frontend/svalyn-studio-app/src/organizations/members/Invitations.tsx @@ -32,7 +32,7 @@ import TableRow from '@mui/material/TableRow'; import Tooltip from '@mui/material/Tooltip'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ErrorPayload, GetOrganizationInvitationsData, diff --git a/frontend/svalyn-studio-app/src/views/organization/members/Invitations.types.ts b/frontend/svalyn-studio-app/src/organizations/members/Invitations.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/Invitations.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/Invitations.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/InviteMemberDialog.tsx b/frontend/svalyn-studio-app/src/organizations/members/InviteMemberDialog.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/organization/members/InviteMemberDialog.tsx rename to frontend/svalyn-studio-app/src/organizations/members/InviteMemberDialog.tsx index 11b80ac..e5803f8 100644 --- a/frontend/svalyn-studio-app/src/views/organization/members/InviteMemberDialog.tsx +++ b/frontend/svalyn-studio-app/src/organizations/members/InviteMemberDialog.tsx @@ -26,7 +26,7 @@ import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; import TextField from '@mui/material/TextField'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ErrorPayload, InviteMemberData, diff --git a/frontend/svalyn-studio-app/src/views/organization/members/InviteMemberDialog.types.ts b/frontend/svalyn-studio-app/src/organizations/members/InviteMemberDialog.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/InviteMemberDialog.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/InviteMemberDialog.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/LeaveOrganizationDialog.tsx b/frontend/svalyn-studio-app/src/organizations/members/LeaveOrganizationDialog.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/organization/members/LeaveOrganizationDialog.tsx rename to frontend/svalyn-studio-app/src/organizations/members/LeaveOrganizationDialog.tsx index 295cb2e..9907256 100644 --- a/frontend/svalyn-studio-app/src/views/organization/members/LeaveOrganizationDialog.tsx +++ b/frontend/svalyn-studio-app/src/organizations/members/LeaveOrganizationDialog.tsx @@ -26,7 +26,7 @@ import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ErrorPayload, LeaveOrganizationData, diff --git a/frontend/svalyn-studio-app/src/views/organization/members/LeaveOrganizationDialog.types.ts b/frontend/svalyn-studio-app/src/organizations/members/LeaveOrganizationDialog.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/LeaveOrganizationDialog.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/LeaveOrganizationDialog.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/Memberships.tsx b/frontend/svalyn-studio-app/src/organizations/members/Memberships.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/organization/members/Memberships.tsx rename to frontend/svalyn-studio-app/src/organizations/members/Memberships.tsx index 56f4be3..0cb0f51 100644 --- a/frontend/svalyn-studio-app/src/views/organization/members/Memberships.tsx +++ b/frontend/svalyn-studio-app/src/organizations/members/Memberships.tsx @@ -30,7 +30,7 @@ import TablePagination from '@mui/material/TablePagination'; import TableRow from '@mui/material/TableRow'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ErrorPayload, GetOrganizationMembershipsData, diff --git a/frontend/svalyn-studio-app/src/views/organization/members/Memberships.types.ts b/frontend/svalyn-studio-app/src/organizations/members/Memberships.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/Memberships.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/Memberships.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableHead.tsx b/frontend/svalyn-studio-app/src/organizations/members/MembershipsTableHead.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableHead.tsx rename to frontend/svalyn-studio-app/src/organizations/members/MembershipsTableHead.tsx diff --git a/frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableHead.types.ts b/frontend/svalyn-studio-app/src/organizations/members/MembershipsTableHead.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableHead.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/MembershipsTableHead.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableToolbar.tsx b/frontend/svalyn-studio-app/src/organizations/members/MembershipsTableToolbar.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableToolbar.tsx rename to frontend/svalyn-studio-app/src/organizations/members/MembershipsTableToolbar.tsx diff --git a/frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableToolbar.types.ts b/frontend/svalyn-studio-app/src/organizations/members/MembershipsTableToolbar.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/MembershipsTableToolbar.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/MembershipsTableToolbar.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/members/OrganizationMembers.tsx b/frontend/svalyn-studio-app/src/organizations/members/OrganizationMembers.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/OrganizationMembers.tsx rename to frontend/svalyn-studio-app/src/organizations/members/OrganizationMembers.tsx diff --git a/frontend/svalyn-studio-app/src/views/organization/members/OrganizationMembers.types.ts b/frontend/svalyn-studio-app/src/organizations/members/OrganizationMembers.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/members/OrganizationMembers.types.ts rename to frontend/svalyn-studio-app/src/organizations/members/OrganizationMembers.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/settings/DeleteOrganizationDialog.tsx b/frontend/svalyn-studio-app/src/organizations/settings/DeleteOrganizationDialog.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/organization/settings/DeleteOrganizationDialog.tsx rename to frontend/svalyn-studio-app/src/organizations/settings/DeleteOrganizationDialog.tsx index 0c1a1cd..af55325 100644 --- a/frontend/svalyn-studio-app/src/views/organization/settings/DeleteOrganizationDialog.tsx +++ b/frontend/svalyn-studio-app/src/organizations/settings/DeleteOrganizationDialog.tsx @@ -26,7 +26,7 @@ import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { DeleteOrganizationData, DeleteOrganizationDialogProps, diff --git a/frontend/svalyn-studio-app/src/views/organization/settings/DeleteOrganizationDialog.types.ts b/frontend/svalyn-studio-app/src/organizations/settings/DeleteOrganizationDialog.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/settings/DeleteOrganizationDialog.types.ts rename to frontend/svalyn-studio-app/src/organizations/settings/DeleteOrganizationDialog.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/settings/OrganizationSettings.tsx b/frontend/svalyn-studio-app/src/organizations/settings/OrganizationSettings.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/organization/settings/OrganizationSettings.tsx rename to frontend/svalyn-studio-app/src/organizations/settings/OrganizationSettings.tsx index 6a5b6c0..7874e29 100644 --- a/frontend/svalyn-studio-app/src/views/organization/settings/OrganizationSettings.tsx +++ b/frontend/svalyn-studio-app/src/organizations/settings/OrganizationSettings.tsx @@ -26,7 +26,7 @@ import TextField from '@mui/material/TextField'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { DeleteOrganizationDialog } from './DeleteOrganizationDialog'; import { ErrorPayload, diff --git a/frontend/svalyn-studio-app/src/views/organization/settings/OrganizationSettings.types.ts b/frontend/svalyn-studio-app/src/organizations/settings/OrganizationSettings.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/settings/OrganizationSettings.types.ts rename to frontend/svalyn-studio-app/src/organizations/settings/OrganizationSettings.types.ts diff --git a/frontend/svalyn-studio-app/src/views/organization/tags/OrganizationTags.tsx b/frontend/svalyn-studio-app/src/organizations/tags/OrganizationTags.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/organization/tags/OrganizationTags.tsx rename to frontend/svalyn-studio-app/src/organizations/tags/OrganizationTags.tsx index bdba2ac..a30df0d 100644 --- a/frontend/svalyn-studio-app/src/views/organization/tags/OrganizationTags.tsx +++ b/frontend/svalyn-studio-app/src/organizations/tags/OrganizationTags.tsx @@ -33,7 +33,7 @@ import TableRow from '@mui/material/TableRow'; import TextField from '@mui/material/TextField'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { AddTagToOrganizationData, AddTagToOrganizationVariables, diff --git a/frontend/svalyn-studio-app/src/views/organization/tags/OrganizationTags.types.ts b/frontend/svalyn-studio-app/src/organizations/tags/OrganizationTags.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/organization/tags/OrganizationTags.types.ts rename to frontend/svalyn-studio-app/src/organizations/tags/OrganizationTags.types.ts diff --git a/frontend/svalyn-studio-app/src/views/profile/ProfileView.tsx b/frontend/svalyn-studio-app/src/profiles/ProfileView.tsx similarity index 95% rename from frontend/svalyn-studio-app/src/views/profile/ProfileView.tsx rename to frontend/svalyn-studio-app/src/profiles/ProfileView.tsx index 78cf3b3..3dc9803 100644 --- a/frontend/svalyn-studio-app/src/views/profile/ProfileView.tsx +++ b/frontend/svalyn-studio-app/src/profiles/ProfileView.tsx @@ -26,9 +26,9 @@ import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { useParams } from 'react-router-dom'; -import { ActivityTimeline } from '../../activity/ActivityTimeline'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { ActivityTimeline } from '../activity/ActivityTimeline'; +import { Navbar } from '../navbars/Navbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { GetViewerData, GetViewerVariables, ProfileViewState } from './ProfileView.types'; const getViewerQuery = gql` diff --git a/frontend/svalyn-studio-app/src/views/profile/ProfileView.types.ts b/frontend/svalyn-studio-app/src/profiles/ProfileView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/profile/ProfileView.types.ts rename to frontend/svalyn-studio-app/src/profiles/ProfileView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/profile/ProfileRouter.tsx b/frontend/svalyn-studio-app/src/profiles/ProfilesRouter.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/profile/ProfileRouter.tsx rename to frontend/svalyn-studio-app/src/profiles/ProfilesRouter.tsx index 44f39cd..b566af5 100644 --- a/frontend/svalyn-studio-app/src/views/profile/ProfileRouter.tsx +++ b/frontend/svalyn-studio-app/src/profiles/ProfilesRouter.tsx @@ -20,7 +20,7 @@ import { Outlet, Route, Routes } from 'react-router-dom'; import { ProfileView } from './ProfileView'; -export const ProfileRouter = () => { +export const ProfilesRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/project/ProjectDrawer.tsx b/frontend/svalyn-studio-app/src/projects/ProjectDrawer.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/ProjectDrawer.tsx rename to frontend/svalyn-studio-app/src/projects/ProjectDrawer.tsx diff --git a/frontend/svalyn-studio-app/src/views/project/ProjectDrawer.types.ts b/frontend/svalyn-studio-app/src/projects/ProjectDrawer.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/ProjectDrawer.types.ts rename to frontend/svalyn-studio-app/src/projects/ProjectDrawer.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/ProjectView.tsx b/frontend/svalyn-studio-app/src/projects/ProjectView.tsx similarity index 95% rename from frontend/svalyn-studio-app/src/views/project/ProjectView.tsx rename to frontend/svalyn-studio-app/src/projects/ProjectView.tsx index 2bd89c7..d07d63c 100644 --- a/frontend/svalyn-studio-app/src/views/project/ProjectView.tsx +++ b/frontend/svalyn-studio-app/src/projects/ProjectView.tsx @@ -23,12 +23,12 @@ import Box from '@mui/material/Box'; import Link from '@mui/material/Link'; import { useEffect, useState } from 'react'; import { Link as RouterLink, matchPath, useLocation, useParams } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { goToDomains, goToHelp, goToHome, goToNotifications, goToSettings } from '../../palette/DefaultPaletteActions'; -import { PaletteNavigationAction } from '../../palette/Palette.types'; -import { usePalette } from '../../palette/usePalette'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; import { NotFoundView } from '../notfound/NotFoundView'; +import { goToDomains, goToHelp, goToHome, goToNotifications, goToSettings } from '../palette/DefaultPaletteActions'; +import { PaletteNavigationAction } from '../palette/Palette.types'; +import { usePalette } from '../palette/usePalette'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { ProjectDrawer } from './ProjectDrawer'; import { ProjectViewPanel } from './ProjectDrawer.types'; import { GetProjectData, GetProjectVariables, ProjectViewState } from './ProjectView.types'; diff --git a/frontend/svalyn-studio-app/src/views/project/ProjectView.types.ts b/frontend/svalyn-studio-app/src/projects/ProjectView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/ProjectView.types.ts rename to frontend/svalyn-studio-app/src/projects/ProjectView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/ProjectRouter.tsx b/frontend/svalyn-studio-app/src/projects/ProjectsRouter.tsx similarity index 89% rename from frontend/svalyn-studio-app/src/views/project/ProjectRouter.tsx rename to frontend/svalyn-studio-app/src/projects/ProjectsRouter.tsx index 2734eda..077f11f 100644 --- a/frontend/svalyn-studio-app/src/views/project/ProjectRouter.tsx +++ b/frontend/svalyn-studio-app/src/projects/ProjectsRouter.tsx @@ -18,12 +18,12 @@ */ import { Outlet, Route, Routes } from 'react-router-dom'; -import { NewChangeProposalView } from '../new-changeproposal/NewChangeProposalView'; -import { ResourceView } from '../resource/ResourceView'; -import { WorkspaceView } from '../workspace/WorkspaceView'; import { ProjectView } from './ProjectView'; +import { NewChangeProposalView } from './new-changeproposal/NewChangeProposalView'; +import { ResourceView } from './resource/ResourceView'; +import { WorkspaceView } from './workspace/WorkspaceView'; -export const ProjectRouter = () => { +export const ProjectsRouter = () => { return ( <> diff --git a/frontend/svalyn-studio-app/src/views/project/activity/ProjectActivity.tsx b/frontend/svalyn-studio-app/src/projects/activity/ProjectActivity.tsx similarity index 96% rename from frontend/svalyn-studio-app/src/views/project/activity/ProjectActivity.tsx rename to frontend/svalyn-studio-app/src/projects/activity/ProjectActivity.tsx index d0ac039..73289e4 100644 --- a/frontend/svalyn-studio-app/src/views/project/activity/ProjectActivity.tsx +++ b/frontend/svalyn-studio-app/src/projects/activity/ProjectActivity.tsx @@ -24,8 +24,8 @@ import Container from '@mui/material/Container'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ActivityTimeline } from '../../../activity/ActivityTimeline'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ActivityTimeline } from '../../activity/ActivityTimeline'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { GetProjectActivityData, GetProjectActivityVariables, diff --git a/frontend/svalyn-studio-app/src/views/project/activity/ProjectActivity.types.ts b/frontend/svalyn-studio-app/src/projects/activity/ProjectActivity.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/activity/ProjectActivity.types.ts rename to frontend/svalyn-studio-app/src/projects/activity/ProjectActivity.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableHead.tsx b/frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableHead.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableHead.tsx rename to frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableHead.tsx diff --git a/frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableHead.types.ts b/frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableHead.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableHead.types.ts rename to frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableHead.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableToolbar.tsx b/frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableToolbar.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableToolbar.tsx rename to frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableToolbar.tsx diff --git a/frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableToolbar.types.ts b/frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableToolbar.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/changeproposals/ChangeProposalsTableToolbar.types.ts rename to frontend/svalyn-studio-app/src/projects/changeproposals/ChangeProposalsTableToolbar.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/changeproposals/ProjectChangeProposal.tsx b/frontend/svalyn-studio-app/src/projects/changeproposals/ProjectChangeProposal.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/project/changeproposals/ProjectChangeProposal.tsx rename to frontend/svalyn-studio-app/src/projects/changeproposals/ProjectChangeProposal.tsx index db0a962..a7c6566 100644 --- a/frontend/svalyn-studio-app/src/views/project/changeproposals/ProjectChangeProposal.tsx +++ b/frontend/svalyn-studio-app/src/projects/changeproposals/ProjectChangeProposal.tsx @@ -35,7 +35,7 @@ import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ChangeProposalsTableHead } from './ChangeProposalsTableHead'; import { ChangeProposalsTableToolbar } from './ChangeProposalsTableToolbar'; import { diff --git a/frontend/svalyn-studio-app/src/views/project/changeproposals/ProjectChangeProposal.types.ts b/frontend/svalyn-studio-app/src/projects/changeproposals/ProjectChangeProposal.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/changeproposals/ProjectChangeProposal.types.ts rename to frontend/svalyn-studio-app/src/projects/changeproposals/ProjectChangeProposal.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/home/ProjectBranchCard.tsx b/frontend/svalyn-studio-app/src/projects/home/ProjectBranchCard.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/home/ProjectBranchCard.tsx rename to frontend/svalyn-studio-app/src/projects/home/ProjectBranchCard.tsx diff --git a/frontend/svalyn-studio-app/src/views/project/home/ProjectBranchCard.types.ts b/frontend/svalyn-studio-app/src/projects/home/ProjectBranchCard.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/home/ProjectBranchCard.types.ts rename to frontend/svalyn-studio-app/src/projects/home/ProjectBranchCard.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/home/ProjectHome.tsx b/frontend/svalyn-studio-app/src/projects/home/ProjectHome.tsx similarity index 96% rename from frontend/svalyn-studio-app/src/views/project/home/ProjectHome.tsx rename to frontend/svalyn-studio-app/src/projects/home/ProjectHome.tsx index 8058315..7b9e6e0 100644 --- a/frontend/svalyn-studio-app/src/views/project/home/ProjectHome.tsx +++ b/frontend/svalyn-studio-app/src/projects/home/ProjectHome.tsx @@ -24,9 +24,9 @@ import Link from '@mui/material/Link'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; -import { CreatedOn } from '../../../widgets/CreatedOn'; -import { LastModifiedOn } from '../../../widgets/LastModifiedOn'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { CreatedOn } from '../../widgets/CreatedOn'; +import { LastModifiedOn } from '../../widgets/LastModifiedOn'; import { ProjectBranchCard } from './ProjectBranchCard'; import { GetProjectHomeData, GetProjectHomeVariables, ProjectHomeProps, ProjectHomeState } from './ProjectHome.types'; import { ProjectReadMeCard } from './ProjectReadMeCard'; diff --git a/frontend/svalyn-studio-app/src/views/project/home/ProjectHome.types.ts b/frontend/svalyn-studio-app/src/projects/home/ProjectHome.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/home/ProjectHome.types.ts rename to frontend/svalyn-studio-app/src/projects/home/ProjectHome.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/home/ProjectReadMeCard.tsx b/frontend/svalyn-studio-app/src/projects/home/ProjectReadMeCard.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/project/home/ProjectReadMeCard.tsx rename to frontend/svalyn-studio-app/src/projects/home/ProjectReadMeCard.tsx index aa7de0d..2d9044a 100644 --- a/frontend/svalyn-studio-app/src/views/project/home/ProjectReadMeCard.tsx +++ b/frontend/svalyn-studio-app/src/projects/home/ProjectReadMeCard.tsx @@ -27,8 +27,8 @@ import Paper from '@mui/material/Paper'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import ReactMarkdown from 'react-markdown'; -import { EditReadMeDialog } from '../../../dialogs/EditReadMeDialog'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { EditReadMeDialog } from '../../dialogs/EditReadMeDialog'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ErrorPayload, ProjectReadMeCardProps, diff --git a/frontend/svalyn-studio-app/src/views/project/home/ProjectReadMeCard.types.ts b/frontend/svalyn-studio-app/src/projects/home/ProjectReadMeCard.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/home/ProjectReadMeCard.types.ts rename to frontend/svalyn-studio-app/src/projects/home/ProjectReadMeCard.types.ts diff --git a/frontend/svalyn-studio-app/src/views/new-changeproposal/NewChangeProposalView.tsx b/frontend/svalyn-studio-app/src/projects/new-changeproposal/NewChangeProposalView.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/new-changeproposal/NewChangeProposalView.tsx rename to frontend/svalyn-studio-app/src/projects/new-changeproposal/NewChangeProposalView.tsx diff --git a/frontend/svalyn-studio-app/src/views/new-changeproposal/NewChangeProposalView.types.ts b/frontend/svalyn-studio-app/src/projects/new-changeproposal/NewChangeProposalView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/new-changeproposal/NewChangeProposalView.types.ts rename to frontend/svalyn-studio-app/src/projects/new-changeproposal/NewChangeProposalView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/resource/ResourceView.tsx b/frontend/svalyn-studio-app/src/projects/resource/ResourceView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/resource/ResourceView.tsx rename to frontend/svalyn-studio-app/src/projects/resource/ResourceView.tsx index 14e4c94..49dd9c3 100644 --- a/frontend/svalyn-studio-app/src/views/resource/ResourceView.tsx +++ b/frontend/svalyn-studio-app/src/projects/resource/ResourceView.tsx @@ -26,9 +26,9 @@ import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink, useParams } from 'react-router-dom'; import { Navbar } from '../../navbars/Navbar'; +import { NotFoundView } from '../../notfound/NotFoundView'; import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { ViewerCard } from '../../viewers/ViewerCard'; -import { NotFoundView } from '../notfound/NotFoundView'; import { GetResourceData, GetResourceVariables, ResourceViewState } from './ResourceView.types'; const getResourceQuery = gql` diff --git a/frontend/svalyn-studio-app/src/views/resource/ResourceView.types.ts b/frontend/svalyn-studio-app/src/projects/resource/ResourceView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/resource/ResourceView.types.ts rename to frontend/svalyn-studio-app/src/projects/resource/ResourceView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/settings/DeleteProjectDialog.tsx b/frontend/svalyn-studio-app/src/projects/settings/DeleteProjectDialog.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/project/settings/DeleteProjectDialog.tsx rename to frontend/svalyn-studio-app/src/projects/settings/DeleteProjectDialog.tsx index 4770099..e90241a 100644 --- a/frontend/svalyn-studio-app/src/views/project/settings/DeleteProjectDialog.tsx +++ b/frontend/svalyn-studio-app/src/projects/settings/DeleteProjectDialog.tsx @@ -26,7 +26,7 @@ import DialogContentText from '@mui/material/DialogContentText'; import DialogTitle from '@mui/material/DialogTitle'; import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { DeleteProjectData, DeleteProjectDialogProps, diff --git a/frontend/svalyn-studio-app/src/views/project/settings/DeleteProjectDialog.types.ts b/frontend/svalyn-studio-app/src/projects/settings/DeleteProjectDialog.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/settings/DeleteProjectDialog.types.ts rename to frontend/svalyn-studio-app/src/projects/settings/DeleteProjectDialog.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/settings/ProjectSettings.tsx b/frontend/svalyn-studio-app/src/projects/settings/ProjectSettings.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/project/settings/ProjectSettings.tsx rename to frontend/svalyn-studio-app/src/projects/settings/ProjectSettings.tsx index 49b344c..207fcec 100644 --- a/frontend/svalyn-studio-app/src/views/project/settings/ProjectSettings.tsx +++ b/frontend/svalyn-studio-app/src/projects/settings/ProjectSettings.tsx @@ -28,7 +28,7 @@ import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { DeleteProjectDialog } from './DeleteProjectDialog'; import { ErrorPayload, diff --git a/frontend/svalyn-studio-app/src/views/project/settings/ProjectSettings.types.ts b/frontend/svalyn-studio-app/src/projects/settings/ProjectSettings.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/settings/ProjectSettings.types.ts rename to frontend/svalyn-studio-app/src/projects/settings/ProjectSettings.types.ts diff --git a/frontend/svalyn-studio-app/src/views/project/tags/ProjectTags.tsx b/frontend/svalyn-studio-app/src/projects/tags/ProjectTags.tsx similarity index 99% rename from frontend/svalyn-studio-app/src/views/project/tags/ProjectTags.tsx rename to frontend/svalyn-studio-app/src/projects/tags/ProjectTags.tsx index c72537d..6d3bd97 100644 --- a/frontend/svalyn-studio-app/src/views/project/tags/ProjectTags.tsx +++ b/frontend/svalyn-studio-app/src/projects/tags/ProjectTags.tsx @@ -35,7 +35,7 @@ import TextField from '@mui/material/TextField'; import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; import { AddTagToProjectData, AddTagToProjectVariables, diff --git a/frontend/svalyn-studio-app/src/views/project/tags/ProjectTags.types.ts b/frontend/svalyn-studio-app/src/projects/tags/ProjectTags.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/project/tags/ProjectTags.types.ts rename to frontend/svalyn-studio-app/src/projects/tags/ProjectTags.types.ts diff --git a/frontend/svalyn-studio-app/src/views/workspace/WorkspaceView.tsx b/frontend/svalyn-studio-app/src/projects/workspace/WorkspaceView.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/workspace/WorkspaceView.tsx rename to frontend/svalyn-studio-app/src/projects/workspace/WorkspaceView.tsx diff --git a/frontend/svalyn-studio-app/src/views/workspace/WorkspaceView.types.ts b/frontend/svalyn-studio-app/src/projects/workspace/WorkspaceView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/workspace/WorkspaceView.types.ts rename to frontend/svalyn-studio-app/src/projects/workspace/WorkspaceView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/search/SearchRouter.tsx b/frontend/svalyn-studio-app/src/search/SearchRouter.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/search/SearchRouter.tsx rename to frontend/svalyn-studio-app/src/search/SearchRouter.tsx diff --git a/frontend/svalyn-studio-app/src/views/search/SearchView.tsx b/frontend/svalyn-studio-app/src/search/SearchView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/search/SearchView.tsx rename to frontend/svalyn-studio-app/src/search/SearchView.tsx index f430faa..796fa56 100644 --- a/frontend/svalyn-studio-app/src/views/search/SearchView.tsx +++ b/frontend/svalyn-studio-app/src/search/SearchView.tsx @@ -33,8 +33,8 @@ import Toolbar from '@mui/material/Toolbar'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; import { Link as RouterLink, useSearchParams } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { Navbar } from '../navbars/Navbar'; +import { ErrorSnackbar } from '../snackbar/ErrorSnackbar'; import { GetSearchResultsData, GetSearchResultsVariables, diff --git a/frontend/svalyn-studio-app/src/views/search/SearchView.types.ts b/frontend/svalyn-studio-app/src/search/SearchView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/search/SearchView.types.ts rename to frontend/svalyn-studio-app/src/search/SearchView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/settings/SettingsRouter.tsx b/frontend/svalyn-studio-app/src/settings/SettingsRouter.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/SettingsRouter.tsx rename to frontend/svalyn-studio-app/src/settings/SettingsRouter.tsx diff --git a/frontend/svalyn-studio-app/src/views/settings/SettingsView.tsx b/frontend/svalyn-studio-app/src/settings/SettingsView.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/settings/SettingsView.tsx rename to frontend/svalyn-studio-app/src/settings/SettingsView.tsx index 79021e6..aca55c7 100644 --- a/frontend/svalyn-studio-app/src/views/settings/SettingsView.tsx +++ b/frontend/svalyn-studio-app/src/settings/SettingsView.tsx @@ -22,10 +22,10 @@ import Container from '@mui/material/Container'; import Toolbar from '@mui/material/Toolbar'; import { useEffect, useState } from 'react'; import { matchPath, useLocation } from 'react-router-dom'; -import { Navbar } from '../../navbars/Navbar'; -import { AuthenticationTokensSettingsTab } from './authentication-tokens/AuthenticationTokensSettingsTab'; +import { Navbar } from '../navbars/Navbar'; import { SettingsViewPanel, SettingsViewState } from './SettingsView.types'; import { SettingsViewDrawer } from './SettingsViewDrawer'; +import { AuthenticationTokensSettingsTab } from './authentication-tokens/AuthenticationTokensSettingsTab'; export const SettingsView = () => { const location = useLocation(); diff --git a/frontend/svalyn-studio-app/src/views/settings/SettingsView.types.ts b/frontend/svalyn-studio-app/src/settings/SettingsView.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/SettingsView.types.ts rename to frontend/svalyn-studio-app/src/settings/SettingsView.types.ts diff --git a/frontend/svalyn-studio-app/src/views/settings/SettingsViewDrawer.tsx b/frontend/svalyn-studio-app/src/settings/SettingsViewDrawer.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/SettingsViewDrawer.tsx rename to frontend/svalyn-studio-app/src/settings/SettingsViewDrawer.tsx diff --git a/frontend/svalyn-studio-app/src/views/settings/SettingsViewDrawer.types.ts b/frontend/svalyn-studio-app/src/settings/SettingsViewDrawer.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/SettingsViewDrawer.types.ts rename to frontend/svalyn-studio-app/src/settings/SettingsViewDrawer.types.ts diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx similarity index 98% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx index c212813..c7bcf77 100644 --- a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx +++ b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensSettingsTab.tsx @@ -30,8 +30,8 @@ import TableContainer from '@mui/material/TableContainer'; import TableRow from '@mui/material/TableRow'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; -import { formatTime } from '../../../utils/formatTime'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { formatTime } from '../../utils/formatTime'; import { AuthenticationToken, AuthenticationTokenStatus, diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensSettingsTab.types.ts b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensSettingsTab.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensSettingsTab.types.ts rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensSettingsTab.types.ts diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensTableHead.tsx b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensTableHead.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensTableHead.tsx rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensTableHead.tsx diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensTableHead.types.ts b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensTableHead.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensTableHead.types.ts rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensTableHead.types.ts diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensToolbar.tsx b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensToolbar.tsx similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensToolbar.tsx rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensToolbar.tsx diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensToolbar.types.ts b/frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensToolbar.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/AuthenticationTokensToolbar.types.ts rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/AuthenticationTokensToolbar.types.ts diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx b/frontend/svalyn-studio-app/src/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx similarity index 97% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx index 50bbaa0..5d92410 100644 --- a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx +++ b/frontend/svalyn-studio-app/src/settings/authentication-tokens/NewAuthenticationTokenDialog.tsx @@ -27,8 +27,8 @@ import DialogTitle from '@mui/material/DialogTitle'; import TextField from '@mui/material/TextField'; import Typography from '@mui/material/Typography'; import { useEffect, useState } from 'react'; -import { ErrorSnackbar } from '../../../snackbar/ErrorSnackbar'; -import { CopyButton } from '../../../widgets/CopyButton'; +import { ErrorSnackbar } from '../../snackbar/ErrorSnackbar'; +import { CopyButton } from '../../widgets/CopyButton'; import { CreateAuthenticationTokenData, CreateAuthenticationTokenSuccessPayload, diff --git a/frontend/svalyn-studio-app/src/views/settings/authentication-tokens/NewAuthenticationTokenDialog.types.ts b/frontend/svalyn-studio-app/src/settings/authentication-tokens/NewAuthenticationTokenDialog.types.ts similarity index 100% rename from frontend/svalyn-studio-app/src/views/settings/authentication-tokens/NewAuthenticationTokenDialog.types.ts rename to frontend/svalyn-studio-app/src/settings/authentication-tokens/NewAuthenticationTokenDialog.types.ts