Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@
import { page } from '$app/state';
import { Id } from '$lib/components';
import { Cover, CoverTitle } from '$lib/layout';
import { func } from '../store';
import { deployment } from './store';

$: projectId = page.params.project;
$: functionId = page.params.function;
</script>

<Cover>
<svelte:fragment slot="header">
<CoverTitle
href={`${base}/project-${page.params.region}-${projectId}/functions/function-${functionId}`}>
Deployment
href={`${base}/project-${page.params.region}-${page.params.project}/functions/function-${page.params.function}`}>
{$func.name}'s deployment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what if the name is looong?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CoverTitle component truncates long text

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but that would also truncate the text deployment as well right? 👀
Shouldn't the deployment page's title should mention deployment?

LoremIpsumLongFunctio's deployment > LoremIpsum...

isn't that same as function's title then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that's the downside of adding the function/site name... you can bring it up with design on discord

</CoverTitle>
<Id value={$deployment.$id}>{$deployment.$id}</Id>
</svelte:fragment>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
import { page } from '$app/state';
import { Id } from '$lib/components';
import { Cover, CoverTitle } from '$lib/layout';
import { site } from '../../store';
import { deployment } from './store';
</script>

<Cover>
<svelte:fragment slot="header">
<CoverTitle
href={`${base}/project-${page.params.region}-${page.params.project}/sites/site-${page.params.site}/deployments`}>
Deployment
{$site.name}'s deployment
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same.

</CoverTitle>
<Id value={$deployment.$id}>{$deployment.$id}</Id>
</svelte:fragment>
Expand Down