[WEB-5860] [WEB-5861] [WEB-5862] style: improved settings interface (#8520)
* style: improved profile settings * chore: minor improvements * style: improved workspace settings * style: workspace settings content * style: improved project settings * fix: project settings flat map * chore: add back navigation from settings pages * style: settings content * style: estimates list * refactor: remove old code * refactor: removed unnecessary line breaks * refactor: create a common component for page header * chore: add fade-in animation to sidebar * fix: formatting * fix: project settings sidebar header * fix: workspace settings sidebar header * fix: settings content wrapper scroll * chore: separate project settings features * fix: formatting * refactor: custom theme selector * refactor: settings headings * refactor: settings headings * fix: project settings sidebar padding * fix: sidebar header padding * fix: sidebar item permissions * fix: missing editable check * refactor: remove unused files * chore: remove unnecessary code * chore: add missing translations * fix: formatting
This commit is contained in:
parent
ba5ba5bf54
commit
db8b67102d
216 changed files with 4684 additions and 5454 deletions
|
|
@ -36,6 +36,7 @@ export * from "./reaction";
|
|||
export * from "./intake";
|
||||
export * from "./rich-filters";
|
||||
export * from "./search";
|
||||
export * from "./settings";
|
||||
export * from "./state";
|
||||
export * from "./stickies";
|
||||
export * from "./timezone";
|
||||
|
|
|
|||
34
packages/types/src/settings.ts
Normal file
34
packages/types/src/settings.ts
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// local imports
|
||||
import type { EUserProjectRoles } from ".";
|
||||
import type { EUserWorkspaceRoles } from "./workspace";
|
||||
|
||||
export type TProfileSettingsTabs = "general" | "preferences" | "activity" | "notifications" | "security" | "api-tokens";
|
||||
|
||||
export type TWorkspaceSettingsTabs = "general" | "members" | "billing-and-plans" | "export" | "webhooks";
|
||||
export type TWorkspaceSettingsItem = {
|
||||
key: TWorkspaceSettingsTabs;
|
||||
i18n_label: string;
|
||||
href: string;
|
||||
access: EUserWorkspaceRoles[];
|
||||
highlight: (pathname: string, baseUrl: string) => boolean;
|
||||
};
|
||||
|
||||
export type TProjectSettingsTabs =
|
||||
| "general"
|
||||
| "members"
|
||||
| "features_cycles"
|
||||
| "features_modules"
|
||||
| "features_views"
|
||||
| "features_pages"
|
||||
| "features_intake"
|
||||
| "states"
|
||||
| "labels"
|
||||
| "estimates"
|
||||
| "automations";
|
||||
export type TProjectSettingsItem = {
|
||||
key: TProjectSettingsTabs;
|
||||
i18n_label: string;
|
||||
href: string;
|
||||
access: EUserProjectRoles[];
|
||||
highlight: (pathname: string, baseUrl: string) => boolean;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue