-
-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): mapper UI frontend refactor (#1830)
* fix(merge): merge of branch development * fix(bottom-sheet): set default bottom sheet height 85vh * fix(editor): height fix * fix(editor): configure editor for both editable and non editable * fix(more): configure editable & non-editable editor to for comment & instructions resp * fix(+page): pass instructions as props to more component * fix(more): fix editor prop * fix(page): override unnecessary vertical padding add * fix(more): UI slicing for comment section * feat(icons): icons add * feat(more): instructions section UI slicing * feat(more): component broken down to smaller comment, activities components * feat(more): seperate comment & activities skeleton to another component * fix(+page): comment more component
- Loading branch information
Showing
12 changed files
with
179 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
<script> | ||
import ActivitiesSkeleton from '$lib/components/skeleton/activities.svelte'; | ||
</script> | ||
|
||
<div class="overflow-y-scroll overflow-x-hidden flex flex-col gap-2 pb-2"> | ||
{#if false} | ||
{#each Array.from({ length: 5 }) as _, index} | ||
<ActivitiesSkeleton /> | ||
{/each} | ||
{:else} | ||
{#each Array.from({ length: 5 }) as _, index} | ||
<div class="flex flex-col gap-2 py-3 bg-[#F6F5F5] rounded-md mr-1"> | ||
<div class="flex gap-4 px-3"> | ||
<hot-icon | ||
name="person-fill" | ||
style="border: 1px solid" | ||
class="!text-[1.7rem] text-red-600 cursor-pointer duration-200 rounded-full p-[2px] bg-white" | ||
></hot-icon> | ||
<div class="flex flex-col gap-1 flex-1"> | ||
<p class="font-semibold">Localadmin</p> | ||
<div class="flex items-center justify-between"> | ||
<p class="text-[#484848] text-sm">#2</p> | ||
<div class="flex items-center gap-2"> | ||
<hot-icon name="clock-history" class="!text-[1rem] text-red-600 cursor-pointer duration-200"></hot-icon> | ||
<p class="text-[#484848] text-sm">2024-10-21 11:42</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="px-3 flex items-center fmtm-justify-between gap-2"> | ||
<p class="font-normal text-[#484848] flex-1"> | ||
<span class="">svcfmtm</span> updated status to <span>MAPPED</span> | ||
</p> | ||
<hot-icon name="map" class="!text-[1rem] text-[#484848] hover:text-red-600 cursor-pointer duration-200" | ||
></hot-icon> | ||
</div> | ||
</div> | ||
{/each} | ||
{/if} | ||
</div> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<script> | ||
import Editor from '$lib/components/common/Editor/editor.svelte'; | ||
import CommentSkeleton from '$lib/components/skeleton/comment.svelte'; | ||
</script> | ||
|
||
<div class="h-[calc(100%-2.25rem)] sm:h-[calc(100%-2.6rem)]"> | ||
<div class="h-[calc(100%-11.875rem)] overflow-y-scroll overflow-x-hidden flex flex-col gap-2"> | ||
{#if false} | ||
{#each Array.from({ length: 5 }) as _, index} | ||
<CommentSkeleton /> | ||
{/each} | ||
{:else} | ||
{#each Array.from({ length: 5 }) as _, index} | ||
<div class="flex flex-col gap-2 py-3 bg-[#F6F5F5] rounded-md"> | ||
<div class="flex gap-4 px-3"> | ||
<hot-icon | ||
name="person-fill" | ||
style="border: 1px solid" | ||
class="!text-[1.7rem] text-red-600 cursor-pointer duration-200 rounded-full p-[2px] bg-white" | ||
></hot-icon> | ||
<div class="flex flex-col gap-1 flex-1"> | ||
<p class="font-semibold">Localadmin</p> | ||
<div class="flex items-center justify-between"> | ||
<p class="text-[#484848] text-sm">#2</p> | ||
<div class="flex items-center gap-2"> | ||
<hot-icon name="clock-history" class="!text-[1rem] text-red-600 cursor-pointer duration-200" | ||
></hot-icon> | ||
<p class="text-[#484848] text-sm">2024-10-21 11:42</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<Editor editable={false} content={'<p>This is a comment</p>'} /> | ||
</div> | ||
{/each} | ||
{/if} | ||
</div> | ||
|
||
<div class="mt-2"> | ||
<Editor | ||
editable={true} | ||
content="" | ||
setEditorHtmlContent={(editorText) => { | ||
// to-do: store state to post comment | ||
}} | ||
/> | ||
<div class="w-full flex justify-end my-2 gap-2"> | ||
<sl-button variant="default" size="small" class="secondary col-span-2 sm:col-span-1" | ||
><span class="font-barlow-medium text-sm">CLEAR</span></sl-button | ||
> | ||
<sl-button variant="default" size="small" class="primary col-span-2 sm:col-span-1" | ||
><span class="font-barlow-medium text-sm">COMMENT</span></sl-button | ||
> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<style></style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<div class="bg-[#F6F5F5] rounded-md p-3"> | ||
<div class="flex gap-4"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[2.063rem] h-[2.063rem]" | ||
></hot-skeleton> | ||
<div class="flex-1"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[8rem] mb-2" | ||
></hot-skeleton> | ||
<div class="flex justify-between flex-1"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[1rem]"></hot-skeleton> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[7.75rem]" | ||
></hot-skeleton> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="flex justify-between items-center mt-3"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[16rem]"></hot-skeleton> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[1.5rem] h-[1.5rem]" | ||
></hot-skeleton> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<div class="bg-[#F6F5F5] rounded-md p-3"> | ||
<div class="flex gap-4"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[2.063rem] h-[2.063rem]" | ||
></hot-skeleton> | ||
<div class="flex-1"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[8rem] mb-2" | ||
></hot-skeleton> | ||
<div class="flex justify-between flex-1"> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[1rem]"></hot-skeleton> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[7.75rem]" | ||
></hot-skeleton> | ||
</div> | ||
</div> | ||
</div> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-full mt-3"></hot-skeleton> | ||
<hot-skeleton style="--color: #e3e1e1; --sheen-color: #fafafa;" effect="sheen" class="w-[8rem] mt-3"></hot-skeleton> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,3 +36,7 @@ | |
::-webkit-scrollbar-thumb:hover { | ||
background: #c9c8c8; | ||
} | ||
|
||
p { | ||
margin: 0px; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.