jasonnmnd
    • 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
    # Presentation Outline (:D) # EV3 ## Front End ### Restrospective React is a good choice Bootstrap is cool ### Evaluation - Bulk Import - Strengths: set up to display directly from the backend so changes only need to be made in the backend. - Weaknesses: not a super intuitive workflow. Doesn't update error statuses while editing, you need to click validate. This choice was made because validation is slow so it would be annoying to have to validate the entire page every time you make a small change. Needs some css work still, we don't make the best use of white space. ## Deployment ### Restrospective Docker continues to be a great choice, It's still an ### Evaluation Our production system takes a backup of itself and sends it to the backup system, and it'd be better if the backup system went into the production system and took a backup itself. ## Back End ### Retrospective - Previously, instead of being handled as a boolean, the `Guardian` and `Administrator` user privileges were handled by groups instead of a boolean indicator. This proved to be a good choice for this evolution due to the introduction of the new user groups. - `django-rest-authemail` was not a hindrance during this evolution. - The browsable API was slightly less useful during this evolution due to lack of support for lists. ### Evaluation - During this evaluation, user privileges were managed throough filtering querysets, custom permissions, and serializers. - **Querysets:** control the objects that users can see (such as the parents that have students that attend the managed schools of a logged-in staff user). - **Permissions:** control whether the CRUD permissions for objects. - **Serializers:** control the visible fields of an object in operations. - --- # EV2 ## Front End ### Retospective - Bootstrap Integration: Previously, our website content consisted of self-styled components and CSS files, resulting in a lack of responsiveness and a unprofessional UI. - This was clear on different screen sizes where our pages did not dynamically resize. - There was a mix of CSS files floating around that made it hard to edit and style pages - In the context of current evolution requirements, newer interfaces such as a stop planner portal, email portal, would be poorly styled as well. - To make the website more professional, dynamic, and clean up our frontend, we integrated react-bootstrap and Boostrap to style our webpages. - Map based interfaces - Full utilization of a map-based interface to make and edit routes. Previous interface featuring many click-to-add tables were becoming very cluttered and confusing, especially for expansion into this evolution. - Similar implementation of a cleaner map-based stop planner interface that is more intuitive and uncluttered. - Component Remakes: We redid our interface to plan routes and generalized many components (such as tables) to be generic and reusable. - Better planning of route planner interface to be more intuitive - Generic components such as a table component that would be reused accross many pages, eliminating excess repeated code - Integration of feedback from EV1: Clickable tables, distinct legend, more intuitive features/functionality, accessability (color-blindness), thematic accross the webpage - Redux - We implemented redux in order to have a global state that we could access across the application. Whenever we make backend API calls we send dispatches to update the global state with this information. This is the main way that we use redux and it comes with benefits and drawbacks. - Pros - We can render pages and as the global state updates the pages fill the components with information. This makes it so the user is not waiting for the page to load after making changes to the data on the page. - All backend API calls are moved out of the component files and into an actions folder. Helps with debugging and readability. - Cons - Making decision based on success or failure of calls is difficult. Currently struggling with this. Chose to keep code clean rather than fix. - Async nature of dispatch means that the global state can be set incorrectly. For example, 2 calls are made to update the same thing, call 1 is incorrect and call 2 is correct. Call 1 takes longer, so call 2's result updates state first, then call 1 finishes and sets the values to the wrong thing. ### Evaluation - File Structure - Frontend have duplicate files due to rewrites and combination of features. The names of the files are also inconsistent with each other, with some files having prefixes such as "General", "Admin", and multiple other files without. They - Bootstrap - Strength: Very expandable into future evolutions to utilize pre-styled components to expand our current pages without having to worry about varying screen sizes or hardcore CSS work - Weaknesses: Not *as customizable*, if we were CSS pros we could ideally style anything however we want, and it's a bit tricky to use bootstrap components and then have to overrride default styling to our own - Tradeoffs: We would've kept styling components with our own CSS files. While it's possible, it gets very messy and time consuming. - Map based interfaces - Strengths: Very customizable, and easy to change different actions on the map. Very expandable, and easy to add new features as necessary for future evolutions within the map. - Weaknesses: Could possibly be limited by the API based on custom inputs we want to do on the map in the future. Ex: what if we want keyboard inputs on the map? May not be possible if the API doesn't support it - Tradeoffs: Use a static map with supporting components such as clickable tables for actions, however this is cluttered and sometimes confusing with so many tables. ## Backend ### Retrospective - Previously, we had to override the default user class. With the introduction of `django-rest-authemail`, we had to migrate to their email user class. - Django Rest Framework has still been a good choice for development, but less due to the amount of code that it simplifies (we only included one new model this time). We were able to reactivate the browsable API by also enabling session authentication This allows for quick sanity checks, easier debugging. - Including new filter fields was straightforward, and this time, we did not encounter duplicate and non-deterministic query results. ### Evaluation - Emails was done via `django-rest-authemail` which expedited the process. A migration process did occur to their custom authentication user class, but afterwards, changing passwords via email was plug-and-play. Inviting users was a custom workflow, but heavily inspired by the verification workflow in the original code. - Strengths: after switching to the new user class, emails were very straightforward and utilized templates for formatting. - Weaknesses: because the `reset-password` endpoint was directly added from their code, adding additional template variables would require rewriting the methods. However, the invite and change password emails are expected to be simple, and the templates can be directly edited to include additional instructions. Rich email formats can be deferred to the announcements feature. - Announcements were handled by customizing the email methods of `django-rest-authemail` and also providing the ability to specify additional template context information (such as nested objects for student information). - Strengths: the frontend is able to specify which templates are used, and the variables that are sent to it because we accept arbitrary JSON data in the payload field. We do monitor the templates that are used, because they're stored in the backend so a client is not able to execut arbitrary code. This enables frontend developers (with access to templates) to customize announcement emails in any way. - Weaknesses: the defaults are already pretty good and we have tables. Accepting arbitrary JSON in the `context` field may make rendering template variables difficult to debug.

    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