mirror of
https://github.com/appwrite/console.git
synced 2026-06-06 19:27:48 +00:00
Merge pull request #1716 from appwrite/fix-feedback-changes
Fix feedback changes
This commit is contained in:
6 files changed
+92
-41
No files matched your search
@@ -348,7 +348,7 @@
|
||||
|
||||
<style lang="scss">
|
||||
.menu {
|
||||
min-width: 220px;
|
||||
min-width: 244px;
|
||||
z-index: 20;
|
||||
}
|
||||
|
||||
@@ -361,7 +361,7 @@
|
||||
}
|
||||
|
||||
.subMenu {
|
||||
min-width: 220px;
|
||||
min-width: 244px;
|
||||
margin-inline: -4px;
|
||||
margin-block: -4px;
|
||||
}
|
||||
|
||||
@@ -94,12 +94,14 @@
|
||||
export let showAccountMenu = false;
|
||||
|
||||
let activeTheme = $app.theme;
|
||||
let shouldAnimateThemeToggle = false;
|
||||
|
||||
$: {
|
||||
if (activeTheme) {
|
||||
updateTheme(activeTheme);
|
||||
}
|
||||
}
|
||||
|
||||
$: currentOrg = organizations.find((org) => org.isSelected);
|
||||
$: selectedProject = currentOrg?.projects.find((project) => project.isSelected);
|
||||
</script>
|
||||
@@ -120,7 +122,7 @@
|
||||
</a>
|
||||
<Breadcrumbs {organizations} />
|
||||
{#if selectedProject && selectedProject.pingCount === 0}
|
||||
<div class="only-desktop" style:margin-inline-start="-10px">
|
||||
<div class="only-desktop" style:margin-inline-start="-16px">
|
||||
<Button.Anchor
|
||||
href={`${base}/project-${selectedProject.$id}/get-started`}
|
||||
variant="secondary"
|
||||
@@ -186,7 +188,8 @@
|
||||
<Button.Button
|
||||
variant="text"
|
||||
aria-label="Toggle Command Center"
|
||||
on:click={toggleCommandCenter}>
|
||||
on:click={toggleCommandCenter}
|
||||
icon>
|
||||
<Icon icon={IconSearch} />
|
||||
</Button.Button>
|
||||
<span slot="tooltip">{isMac() ? '⌘ + K' : 'Ctrl + K'}</span></Tooltip>
|
||||
@@ -194,6 +197,7 @@
|
||||
<Link.Button
|
||||
on:click={() => {
|
||||
showAccountMenu = !showAccountMenu;
|
||||
shouldAnimateThemeToggle = false;
|
||||
if (showAccountMenu) {
|
||||
trackEvent('click_menu_dropdown');
|
||||
}
|
||||
@@ -234,17 +238,31 @@
|
||||
direction="row"
|
||||
alignItems="center">
|
||||
<Typography.Text>Theme</Typography.Text>
|
||||
<ToggleButton
|
||||
bind:active={activeTheme}
|
||||
buttons={[
|
||||
{ id: 'light', label: 'Light', icon: IconSun },
|
||||
{ id: 'dark', label: 'Dark', icon: IconMoon },
|
||||
{
|
||||
id: 'auto',
|
||||
label: 'System',
|
||||
icon: IconMode
|
||||
}
|
||||
]}></ToggleButton>
|
||||
<div
|
||||
class:keepTransformTransition={shouldAnimateThemeToggle}>
|
||||
<ToggleButton
|
||||
bind:active={activeTheme}
|
||||
on:change={(event) => {
|
||||
shouldAnimateThemeToggle = true;
|
||||
}}
|
||||
buttons={[
|
||||
{
|
||||
id: 'light',
|
||||
label: 'Light',
|
||||
icon: IconSun
|
||||
},
|
||||
{
|
||||
id: 'dark',
|
||||
label: 'Dark',
|
||||
icon: IconMoon
|
||||
},
|
||||
{
|
||||
id: 'auto',
|
||||
label: 'System',
|
||||
icon: IconMode
|
||||
}
|
||||
]}></ToggleButton>
|
||||
</div>
|
||||
</Layout.Stack>
|
||||
</div>
|
||||
</Layout.Stack>
|
||||
@@ -404,4 +422,8 @@
|
||||
/* `desltop` is not a typo—it comes from the `pink2/legacy` module! */
|
||||
inline-size: var(--p-drop-width-size-desltop);
|
||||
}
|
||||
|
||||
:global(.keepTransformTransition span) {
|
||||
transition: transform 0.2s ease-out !important;
|
||||
}
|
||||
</style>
|
||||
@@ -70,12 +70,12 @@
|
||||
$: isOnProjectSettings = /^\/console\/project-[a-zA-Z0-9-]+\/settings$/.test(pathname);
|
||||
|
||||
const projectOptions = [
|
||||
{ name: 'Auth', icon: IconUserGroup, slug: 'auth' },
|
||||
{ name: 'Databases', icon: IconDatabase, slug: 'databases' },
|
||||
{ name: 'Functions', icon: IconLightningBolt, slug: 'functions' },
|
||||
{ name: 'Messaging', icon: IconChatBubble, slug: 'messaging' },
|
||||
{ name: 'Sites', icon: IconGlobeAlt, slug: 'sites' },
|
||||
{ name: 'Storage', icon: IconFolder, slug: 'storage' }
|
||||
{ name: 'Auth', icon: IconUserGroup, slug: 'auth', category: 'build' },
|
||||
{ name: 'Databases', icon: IconDatabase, slug: 'databases', category: 'build' },
|
||||
{ name: 'Functions', icon: IconLightningBolt, slug: 'functions', category: 'build' },
|
||||
{ name: 'Messaging', icon: IconChatBubble, slug: 'messaging', category: 'build' },
|
||||
{ name: 'Storage', icon: IconFolder, slug: 'storage', category: 'build' },
|
||||
{ name: 'Sites', icon: IconGlobeAlt, slug: 'sites', category: 'deploy' }
|
||||
];
|
||||
</script>
|
||||
|
||||
@@ -155,12 +155,45 @@
|
||||
<Divider />
|
||||
</div>
|
||||
<div class="products-label-container">
|
||||
<span class="products-label" class:hidden={state === 'icons'}
|
||||
>Products</span>
|
||||
<span class="products-label" class:hidden={state === 'icons'}>Build</span>
|
||||
<span class="products-label-indicator" class:hidden={state !== 'icons'}
|
||||
></span>
|
||||
</div>
|
||||
{#each projectOptions as projectOption}
|
||||
{@const buildProjectOptions = projectOptions.filter(
|
||||
(projectOption) => projectOption.category === 'build'
|
||||
)}
|
||||
{#each buildProjectOptions as projectOption}
|
||||
<Tooltip placement="right" disabled={state !== 'icons'}>
|
||||
<a
|
||||
href={`/console/project-${project.$id}/${projectOption.slug}`}
|
||||
class="link"
|
||||
class:active={pathname.includes(projectOption.slug)}
|
||||
on:click={() => {
|
||||
trackEvent(`click_menu_${projectOption.slug}`);
|
||||
sideBarIsOpen = false;
|
||||
}}
|
||||
><span class="link-icon"
|
||||
><Icon icon={projectOption.icon} size="s" />
|
||||
</span><span
|
||||
class:no-text={state === 'icons'}
|
||||
class:has-text={state === 'open'}
|
||||
class="link-text">{projectOption.name}</span
|
||||
></a>
|
||||
<span slot="tooltip">{projectOption.name}</span>
|
||||
</Tooltip>
|
||||
{/each}
|
||||
<div class="only-mobile divider">
|
||||
<Divider />
|
||||
</div>
|
||||
<div class="products-label-container">
|
||||
<span class="products-label" class:hidden={state === 'icons'}>Deploy</span>
|
||||
<span class="products-label-indicator" class:hidden={state !== 'icons'}
|
||||
></span>
|
||||
</div>
|
||||
{@const deployProjectOptions = projectOptions.filter(
|
||||
(projectOption) => projectOption.category === 'deploy'
|
||||
)}
|
||||
{#each deployProjectOptions as projectOption}
|
||||
<Tooltip placement="right" disabled={state !== 'icons'}>
|
||||
<a
|
||||
href={`/console/project-${project.$id}/${projectOption.slug}`}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
import { app } from '$lib/stores/app';
|
||||
import { currentPlan } from '$lib/stores/organization';
|
||||
import { isCloud } from '$lib/system';
|
||||
import { Typography } from '@appwrite.io/pink-svelte';
|
||||
|
||||
export let show = false;
|
||||
|
||||
@@ -61,21 +62,18 @@
|
||||
|
||||
<section class="drop-section support-section">
|
||||
{#if showHeader}
|
||||
<h4 class="heading-level-6">Support</h4>
|
||||
<Typography.Title size="s">Support</Typography.Title>
|
||||
{/if}
|
||||
|
||||
{#each supportOptions as option, index}
|
||||
{#if showCloudSupport(index)}
|
||||
<Card
|
||||
isTile
|
||||
class="support-option-card u-flex u-flex-vertical u-gap-16"
|
||||
style="border-radius: var(--border-radius-small, 8px); padding: 0.65rem;">
|
||||
class="support-option-card "
|
||||
style="border-radius: var(--border-radius-small, 8px); --gap-xl: 16px">
|
||||
<div class="u-flex u-flex-vertical u-gap-4">
|
||||
<h4 class="body-text-2 u-bold">{option.label}</h4>
|
||||
|
||||
<p class="u-line-height-1-5">
|
||||
{option.description}
|
||||
</p>
|
||||
<Typography.Text variant="m-500">{option.label}</Typography.Text>
|
||||
<Typography.Text variant="m-400">{option.description}</Typography.Text>
|
||||
</div>
|
||||
|
||||
{#if option.showSupport}
|
||||
|
||||
@@ -147,9 +147,7 @@
|
||||
<Card.Base variant="primary" padding="l"
|
||||
><form>
|
||||
<Layout.Stack direction="column" gap="xxl">
|
||||
<div style:margin-top="20px">
|
||||
<Typography.Title size="l">Create your project</Typography.Title>
|
||||
</div>
|
||||
<Typography.Title size="l">Create your project</Typography.Title>
|
||||
|
||||
<Layout.Stack direction="column" gap="xxl">
|
||||
<Layout.Stack direction="column" gap="xxl">
|
||||
@@ -191,7 +189,7 @@
|
||||
><Button.Button
|
||||
type="button"
|
||||
variant="primary"
|
||||
size="m"
|
||||
size="s"
|
||||
on:click={createProject}>
|
||||
Create</Button.Button>
|
||||
</Layout.Stack>
|
||||
|
||||
@@ -121,7 +121,7 @@
|
||||
content="In progress">
|
||||
<div
|
||||
slot="start"
|
||||
style:margin="-4px 4px 0 0">
|
||||
style:margin="-4px 0 0 2px">
|
||||
<ProgressCircle
|
||||
size="xs"
|
||||
showAnimation={false}
|
||||
@@ -166,7 +166,7 @@
|
||||
content="In progress">
|
||||
<div
|
||||
slot="start"
|
||||
style:margin="-4px 4px 0 0">
|
||||
style:margin="-4px 0 0 2px">
|
||||
<ProgressCircle
|
||||
size="xs"
|
||||
showAnimation={false}
|
||||
@@ -218,7 +218,7 @@
|
||||
content="In progress">
|
||||
<div
|
||||
slot="start"
|
||||
style:margin="-4px 4px 0 0">
|
||||
style:margin="-4px 0 0 2px">
|
||||
<ProgressCircle
|
||||
size="xs"
|
||||
showAnimation={false}
|
||||
@@ -265,7 +265,7 @@
|
||||
content="In progress">
|
||||
<div
|
||||
slot="start"
|
||||
style:margin="-4px 4px 0 0">
|
||||
style:margin="-4px 0 0 2px">
|
||||
<ProgressCircle
|
||||
size="xs"
|
||||
showAnimation={false}
|
||||
@@ -313,7 +313,7 @@
|
||||
content="In progress">
|
||||
<div
|
||||
slot="start"
|
||||
style:margin="-4px 4px 0 0">
|
||||
style:margin="-4px 0 0 2px">
|
||||
<ProgressCircle
|
||||
size="xs"
|
||||
showAnimation={false}
|
||||
|
||||
Reference in new issue
Block a user