Code Monkey home page Code Monkey logo

text-editor-angular's People

Contributors

datalowe avatar

Watchers

 avatar

text-editor-angular's Issues

Document list isn't updated when added as an editor

Steps to reproduce:

  1. Client A logs in as user A.
  2. Client B logs in as user B and brings up list of documents.
  3. User A selects/creates an owned document and adds user B as editor.

Client B's list of documents isn't then updated to reflect the change.

Component tests don't work

All components tests have been disabled for now, and instead only cypress tests are run in CI. The reason is that a viable method for mocking the Socket.io service hasn't been found yet.

Editors selection doesn't show up when creating a new document

Steps to reproduce:

  1. Create new user.
  2. Log in as user.
  3. Set title and document body.
  4. Save document.
  5. Click on document in list of documents.

It would be expected that upon saving the document, a list of editors (with checkboxes to mark them as editors) would immediately appear. This doesn't happen since Angular isn't told to redraw the editors elements in the template.

(If doing a full page refresh/logging in in a new browser session and then selecting the document does show the list of editors as expected)

Editor checkboxes in editor list don't update dynamically.

The document-editors-list component (ts, html) includes this snippet in its template:

        <mat-checkbox 
            *ngFor="let uname of allUsernames;"
            (click)="toggleEditor(uname)"
            [checked]="isDocumentEditor(uname)">
            {{ uname }}
        </mat-checkbox>

The checked attribute should update dynamically as the user toggles editor checkboxes. They however do not. Enabling this becomes more complicated since it's not an attribute on the users/editors themselves that is to be updated, and instead it has to do with the 'activeDoc' component property.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.