Add AppStore General Settings support (#4998)
* added weather in calendar wrapper * added textfield to weather app, needs GeneralSettings abstraction * add automation cateogry for n8n and zapier * fix border radius for seperated apps * create app specific settings in installed apps * Fixed design issues caused by app settings * add first version of template cards with logos * Add link to zapier template * Add missing translations * fix mobile view * better readable app description in mobile view * code clean up * fix issue that lisItem was always expanded * code clean up * code clean up * fix import * fix typo * code clean up * Add AppStore General Settings support * add missing alt to img * use FiShare2 icon instead of FiZap * Remove duplicate entries * Add border to AppSettings consistently Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: Peer Richelsen <[email protected]> Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Carina Wollendorfer <[email protected]> Co-authored-by: Alex van Andel <[email protected]>
This commit is contained in:
20 files changed
+141
-13
No files matched your search
@@ -141,6 +141,7 @@ function CalendarList(props: Props) {
|
||||
);
|
||||
}
|
||||
|
||||
// todo: @hariom extract this into packages/apps-store as "GeneralAppSettings"
|
||||
function ConnectedCalendarsList(props: Props) {
|
||||
const { t } = useLocale();
|
||||
const query = trpc.useQuery(["viewer.connectedCalendars"], { suspense: true });
|
||||
|
||||
@@ -96,19 +96,18 @@ interface IntegrationsListProps {
|
||||
data: inferQueryOutput<"viewer.integrations">;
|
||||
}
|
||||
|
||||
const IntegrationsList = ({ data, variant }: IntegrationsListProps) => {
|
||||
const separateItems = variant === "automation";
|
||||
const IntegrationsList = ({ data }: IntegrationsListProps) => {
|
||||
return (
|
||||
<List className={classNames(separateItems ? "flex flex-col gap-6" : "")} noBorderTreatment>
|
||||
<List className="flex flex-col gap-6" noBorderTreatment>
|
||||
{data.items.map((item) => (
|
||||
<IntegrationListItem
|
||||
name={item.name}
|
||||
slug={item.slug}
|
||||
key={item.name}
|
||||
key={item.title}
|
||||
title={item.title}
|
||||
logo={item.logo}
|
||||
description={item.description}
|
||||
separate={separateItems}
|
||||
separate={true}
|
||||
actions={
|
||||
<div className="flex w-16 justify-end">
|
||||
<ConnectOrDisconnectIntegrationButton
|
||||
@@ -119,7 +118,9 @@ const IntegrationsList = ({ data, variant }: IntegrationsListProps) => {
|
||||
/>
|
||||
</div>
|
||||
}>
|
||||
{separateItems && <AppSettings slug={item.slug} />}
|
||||
<div className="border-t border-gray-200">
|
||||
<AppSettings slug={item.slug} />
|
||||
</div>
|
||||
</IntegrationListItem>
|
||||
))}
|
||||
</List>
|
||||
|
||||
Reference in new issue
Block a user