Rez Delamasa
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
    • Invite by email
      Invitee

      This note has no invitees

    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Note Insights New
    • Engagement control
    • Make a copy
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Note Insights Versions and GitHub Sync Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Engagement control Make a copy Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
  • Invite by email
    Invitee

    This note has no invitees

  • Publish Note

    Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

    Your note will be visible on your profile and discoverable by anyone.
    Your note is now live.
    This note is visible on your profile and discoverable online.
    Everyone on the web can find and read all notes of this public team.
    See published notes
    Unpublish note
    Please check the box to agree to the Community Guidelines.
    View profile
    Engagement control
    Commenting
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    • Everyone
    Suggest edit
    Permission
    Disabled Forbidden Owners Signed-in users Everyone
    Enable
    Permission
    • Forbidden
    • Owners
    • Signed-in users
    Emoji Reply
    Enable
    Import from Dropbox Google Drive Gist Clipboard
       Owned this note    Owned this note      
    Published Linked with GitHub
    • Any changes
      Be notified of any changes
    • Mention me
      Be notified of mention me
    • Unsubscribe
    # Update the Bulk Upload Page to Reflect Recent Design Changes [Old Figma Design](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=1380%3A17444&t=pOncMlYXVGw4uTrF-0) [New Figma Design](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=1725%3A28040&t=G6iS7KUBKQOZfMQ9-0) To automate the adoptions for institutions the first step is to provide a list of books to be processed. This project will be to update the Bulk Upload page according to the new UI/UX design. This will allow us to validate bulk uploads as well as keep the client informed with statuses and warnings for a clear user journey. ## Proposed Changes ### First steps First, we need to merge and resolve conflicts between Tim P's branch, fix/tim-functionality-fixes, and Neil's branch, STU-446, because will need to use the hidden file input approach in STU-446 in order match the Figma doc. Merging in STU-446 will also take care of some of the changes to the Figma doc, i.e. removal of "Step 3", removal of "Step" headings, etc. ### Bulk Upload integration testing with Playwright This test should cover the full user flow from when the user first clicks the "Browse to upload" button and is redirected to the Review page, and then finally clicks the "Confirm upload" button and sees a success notice. **NOTE:** We don't currently have a success notice design [How to upload in Playwright](https://timdeschryver.dev/blog/how-to-upload-files-with-playwright) ### Client-side file size validation Get [file information](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/file#getting_information_on_selected_files) after a user selects a file and validate that the size is < 10MB. AWS Gateway has a hard limit on 10MB but this will prevent having to make the unneccessary request. ### Add Upload History UI to the "/bulkupload" Page - [Figma](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=1725%3A28069&t=264qZIS7mWAoZ1Av-4) (There will be changes to the design of the items in the history list in Figma coming soon.) Upload history will be an virtual scroll list. We will use [Vue Virtual Scroller](https://github.com/Akryum/vue-virtual-scroller/tree/master/packages/vue-virtual-scroller) to create the virtual list. At this moment, upload history mock data will be hardcoded in the TRPC response until back end work on the upload history is complete. Each item in the upload history list will be a link to the Review Page, "/bulkupload/:uploadId". Each item will contain the original filename of the upload, file size, upload date, upload user, number of errors if it was an invalid upload or the number of books, courses, and users created if it was a valid upload. **Example:** "template.csv (67MB) on 11/11/22 by David Smith (Not saved) 341 rows, 280 books, 110 courses, 33 users. 41 rows have errors." **Testing:** The test should hit the TRPC endpoint, receive the list of uploads, then render as `<a></a>` tags ### Bulk upload page error notices - [Figma](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=1725%3A28069&t=264qZIS7mWAoZ1Av-4) For file size too large errors, or unknown server errors during the upload, we will display an error notice as pictured in Figma. ### Review page table - [Figma](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=1725%3A27807&t=264qZIS7mWAoZ1Av-4) Just like the booklist page, there will be a paginated table of books from the uploaded CSV. More information in the event of valid/invalid below. Above the table we will show the row, book, course, and user count. At the moment, we will proceed with hardcoding a mock data response in tRPC until the bulkupload GET endpoint is completed. ### Review Page (file errors) - [Figma](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=1758%3A24526&t=264qZIS7mWAoZ1Av-4) URL: /bulkupload/:uploadId A total error count will be displayed above the table next to the row, book, course, and user count referenced above. #### Confirm upload button The "Confirm upload" button will be disabled with a tooltip on hover describing why the user can't proceed due to errors in the file. #### Back to upload button The "Browse to upload" button on this page in the current version of the Figma doc will be changed to "Back to upload". This button will take the user back to "/bulkupload" page with upload history. #### File content errors - column error tooltip If there are file content errors, those will be indicated on a per column basis. Incorrect columns will have <span style="color:red">red</span> text. When the user hovers over that field, a tooltip will appear giving more information as to what's wrong. #### File content errors - Status chip tooltip The Status column will also have a red chip with text "Error" in the event of an error. Hovering over this will display a tooltip with the whole list of errors. **NOTE:** Still to be discussed is how many errors to show in the event that the whole row is invalid. #### File content errors - Header tooltip In the event that the file is missing a header completely, the column header text will be highlighted red and all of the rows' column text will be blank. The column header will also show a tooltip on hover indicating that the row was missing in the uploaded file. Any errors displayed on this page are simply just formatting errors like "Publisher in Row 51 contains unexpected characters". We won't be able to display any issues related to a title being unavailable. ### Review Page (No Errors) - [Figma](https://www.figma.com/file/wizjOjHKk2tYKhaeaMJzD0/Adoptions?node-id=60%3A496&t=ORa4wVftb3AXhlMh-0) This is the Review page that the user will be redirected to when we transition to the Uploaded state. In the event of a valid file, no errors will be displayed. The book, user, and course count will be shown in a datatable. The "Browse to upload" button on this page in the current version of the Figma doc will be changed to "Back to upload". This button will take the user back to "/bulkupload" page with upload history. We will add a "Confirm Upload" button to this page that makes a POST request to the tRPC endpoint, "confirmupload" URL: /bulkupload/:uploadId ### Review page Download CSV button **NOTE:** No design yet, still provisional as this was something just discussed on 12/12 with Product. Error page will have a Download CSV button so that the user can download the csv and fix any errors. Download file will also (possibly) have another column appended called Error that will list out the errors for the row so the user has easy reference. This will just be stubbed out for now until that endpoint is completed. ### Download Template File The file should now be a static file that contains a header row and example row. This will eventually be hosted on S3 but for now it can point to a file in the repo, "adoptions-upload-template.csv". ISBN,Title,Publisher,Edition,Department,Course,Professor 12345678910,The Science of Science,Publisher,1st,Science,TEST-101,Professor Name [Example File](https://docs.google.com/spreadsheets/d/1fSAy3x0kVqSH6HTYlYX0LnnMxKVCDRIC6SPvI83E6_Q/edit#gid=0) **Testing**: A similar test to the download test for the booklist ## Roadblocks Updated designs are still needed so we are proceeding based off of discussions with Product. ## Technical Debt We need to fix our **Icon.vue** component to make icons themable. ## Communication Follow up with Martin and Josh regarding questions raised during the Adoptions Sync meeting (12/12) and forthcoming design changes. - Do we really need to display a "Status" column on the Review Page (No Errors), since all statuses will be "processed" in this state? - Do we really need to show a "Confirm Upload" button in a disabled state on the Review Page (With Errors)? - What do we show the user on "Confirm upload" success and "Confirm upload" error? We need to communicate with Institutions to get info for the upload confirmation request. ## Document Checklist - [x] Describe why the work is being carried out - [x] Provide a high level technical plan for work carried out - [x] Included testing strategy if applicable - [x] Included any potential issues or roadblocks - [x] Included areas of technical debt that can be resolved - [x] Included external teams or people who need to be kept in the loop

    Import from clipboard

    Paste your markdown or webpage here...

    Advanced permission required

    Your current role can only read. Ask the system administrator to acquire write and comment permission.

    This team is disabled

    Sorry, this team is disabled. You can't edit this note.

    This note is locked

    Sorry, only owner can edit this note.

    Reach the limit

    Sorry, you've reached the max length this note can be.
    Please reduce the content or divide it to more notes, thank you!

    Import from Gist

    Import from Snippet

    or

    Export to Snippet

    Are you sure?

    Do you really want to delete this note?
    All users will lose their connection.

    Create a note from template

    Create a note from template

    Oops...
    This template has been removed or transferred.
    Upgrade
    All
    • All
    • Team
    No template.

    Create a template

    Upgrade

    Delete template

    Do you really want to delete this template?
    Turn this template into a regular note and keep its content, versions, and comments.

    This page need refresh

    You have an incompatible client version.
    Refresh to update.
    New version available!
    See releases notes here
    Refresh to enjoy new features.
    Your user state has changed.
    Refresh to load new user state.

    Sign in

    Forgot password

    or

    By clicking below, you agree to our terms of service.

    Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
    Wallet ( )
    Connect another wallet

    New to HackMD? Sign up

    Help

    • English
    • 中文
    • Français
    • Deutsch
    • 日本語
    • Español
    • Català
    • Ελληνικά
    • Português
    • italiano
    • Türkçe
    • Русский
    • Nederlands
    • hrvatski jezik
    • język polski
    • Українська
    • हिन्दी
    • svenska
    • Esperanto
    • dansk

    Documents

    Help & Tutorial

    How to use Book mode

    Slide Example

    API Docs

    Edit in VSCode

    Install browser extension

    Contacts

    Feedback

    Discord

    Send us email

    Resources

    Releases

    Pricing

    Blog

    Policy

    Terms

    Privacy

    Cheatsheet

    Syntax Example Reference
    # Header Header 基本排版
    - Unordered List
    • Unordered List
    1. Ordered List
    1. Ordered List
    - [ ] Todo List
    • Todo List
    > Blockquote
    Blockquote
    **Bold font** Bold font
    *Italics font* Italics font
    ~~Strikethrough~~ Strikethrough
    19^th^ 19th
    H~2~O H2O
    ++Inserted text++ Inserted text
    ==Marked text== Marked text
    [link text](https:// "title") Link
    ![image alt](https:// "title") Image
    `Code` Code 在筆記中貼入程式碼
    ```javascript
    var i = 0;
    ```
    var i = 0;
    :smile: :smile: Emoji list
    {%youtube youtube_id %} Externals
    $L^aT_eX$ LaTeX
    :::info
    This is a alert area.
    :::

    This is a alert area.

    Versions and GitHub Sync
    Get Full History Access

    • Edit version name
    • Delete

    revision author avatar     named on  

    More Less

    Note content is identical to the latest version.
    Compare
      Choose a version
      No search result
      Version not found
    Sign in to link this note to GitHub
    Learn more
    This note is not linked with GitHub
     

    Feedback

    Submission failed, please try again

    Thanks for your support.

    On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

    Please give us some advice and help us improve HackMD.

     

    Thanks for your feedback

    Remove version name

    Do you want to remove this version name and description?

    Transfer ownership

    Transfer to
      Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

        Link with GitHub

        Please authorize HackMD on GitHub
        • Please sign in to GitHub and install the HackMD app on your GitHub repo.
        • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
        Learn more  Sign in to GitHub

        Push the note to GitHub Push to GitHub Pull a file from GitHub

          Authorize again
         

        Choose which file to push to

        Select repo
        Refresh Authorize more repos
        Select branch
        Select file
        Select branch
        Choose version(s) to push
        • Save a new version and push
        • Choose from existing versions
        Include title and tags
        Available push count

        Pull from GitHub

         
        File from GitHub
        File from HackMD

        GitHub Link Settings

        File linked

        Linked by
        File path
        Last synced branch
        Available push count

        Danger Zone

        Unlink
        You will no longer receive notification when GitHub file changes after unlink.

        Syncing

        Push failed

        Push successfully