Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Add DownloadModal with click to copy #278

Merged
merged 1 commit into from
Nov 30, 2021
Merged

Add DownloadModal with click to copy #278

merged 1 commit into from
Nov 30, 2021

Conversation

hojberg
Copy link
Member

@hojberg hojberg commented Nov 24, 2021

Overview

Add a new download button that appear under a namespace perspective.
Clicking this button will launch a modal that has a "click to copy"
functionality.

CleanShot 2021-11-24 at 13 55 35@2x

CleanShot 2021-11-24 at 13 55 32@2x

Superseedes: #205
Closes: #145

Implementation notes

  • Copy on click is built with a WebComponent (CopyOnClick.js) rendered
    from Elm via a new CopyField module, which includes a new clipboard Icon.
  • The perspective in the sidebar is now rendered via Sidebar.header
    and Sidebar.headerItem to include proper padding and a bottom divider.

Loose ends

The main downside with downloading libraries via Share is that the user has to download the entirety of Share (61mb at the time of this PR) to use a single library, which certainly is not ideal.

Add a new download button that appear under a namespace perspective.
Clicking this button will launch a modal that has a "click to copy"
functionality.

* Copy on click is built with a WebComponent (`CopyOnClick.js`) rendered
  from Elm via a new `CopyField` module, which includes a new clipboard `Icon`.
* The perspective in the sidebar is now rendered via `Sidebar.header`
  and `Sidebar.headerItem` to include proper padding and a bottom divider.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unison Share: Download project instruction
1 participant