Coder Social home page Coder Social logo

isaac-editor's Introduction

isaac-editor

The old Isaac Physics Content Editor, used to create the JSON site content for the Isaac Physics project. This project used React components inside an AngularJS app. It was used from 2014 until 2022, when it was superseded by isaac-content-editor, a modern React app replacement.

Developing the Content Editor

To develop the content editor:

  • Check out this repo
  • Run npm run sass to generate the CSS
  • Run via npm start, and then visit localhost:8421 in a web browser

You may find it useful to edit github_application.js to change the OAuth settings, or to alter the remote repository the editor connects to in services.js. Both of these are configured on a per-hostname basis.

isaac-editor's People

Contributors

alistairstead3408 avatar bh412 avatar chrisjpurdy avatar daviesian avatar jsharkey13 avatar mapem avatar mlt47 avatar morpheu5 avatar mwtrew avatar petebacondarwin avatar rogersnm avatar scratchcat1 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

isaac-editor's Issues

Fractional (numeric) answers

Issue found in 223562a

Some answers are exact fractions - would it be possible to allow students to input these?

Also, would there be a way to input answers in standard form?

Saving fails

There seems to be an issue with saving content since my latest update (8b95e8a). I'm looking into this now.

List of concepts to add to question

Once we have a full list of concepts it would be nice to have a drop-down box or similar with all of these in so that we can select which concepts apply to the question, both for tagging the questions and for adding to the hints sections

Upload videos

Issue found in 223562a

I believe this is already on your radar but I realised there wasn't an issue logged so I thought it was worth adding one. Could you add a way to upload videos? This would help as the videos could be easily checked against a question.

Setup Analytics

Setup some analytics so that we can see how the editor is used.

Maybe Google?

Missing metadata for figures created in the editor

When creating a new figure could the editor provide space for content creators to add the following meta data (currently this is not included by default):

  • id - to allow cross referencing
  • title - to improve searchability
  • tags - to improve searchability
  • author - to improve traceability
  • altText - for accessibility

Commas appearing in units

Issue found in 959e505

In some units , is used to make sure that the spacing is correct. However when these units are copied and pasted into other bits of content the comma starts appearing in the processed maths section (how it looks after you have finished editing and clicked done). I've left some like this in http://www.cl.cam.ac.uk/~ipd21/rutherford/scooter/app/#!/edit/master/content/questions/physics/mechanics/kinematics/level2/decc_car.json so that you can see this effect.

Referencing figures and equations

Just a note that we need a way of cross referencing figures and labels within a given page. It may also be useful to cross reference beyond the same page but this could be done with a link.

Comments Box in Editor

Could a box displaying comments be added to the editor - if we stop work overnight but don't want to forget our place, or other useful notes?

I used to use the LaTeX file and used commented lines for notes - but we can't do this here since typing comments directly into the JSON isn't allowed.

Question type

Radio buttons do not appear to be selected if have multiple questions on a page. But clicking them does change the question type in the JSON.

Adding Title and Level when creating a new question

At the moment when starting a new question the title appears in the .json as "Page Title Here", and unlike the pages that were imported from latex files there's no level or id. Are these needed and if so could they automatically populate when you create a new question? Also, should the topic also appear somewhere in the .json?

Talk page

It would be nice to have an area on the content editor for each question for comments from the content team, where we could discuss whether the hints are appropriate, if the question is in the correct level, flag up any problems with the solution etc.

Allow editors to enter custom commit messages

@sacummins suggests that we pre-populate the message field with the existing suggested message, and encourage users to add more detail.

If users do not wish to alter the default message, this should not add more than 1 click to the save workflow.

Underscores in maths

If you have multiple equations which contain underscores in a content element, markdown interprets that as wanting everything between the two underscores as being in italics. This stops MathJax being able to know where the first maths bit stops and everything between the two math elements with underscores is placed in italics and with now spaces.

Multiple Choice Choices

Would like to be able to see the choices in normal view (rather than json view) to also be able to check that the subscripts etc all working.

Loss of content when creating new content

If you write something in a content box, but don't click "Done", then if you create a new piece of content using the + symbol that is next to the currently open content, then you will lose all of the changes to the content that you have just written.

This doesn't happen if you create new content elsewhere in the page, if you click "Done" before creating new content, or if you edit some different content before clicking the + arrow.

Accidentially deleting things

If you are editing text in the plain text view and you don't click done. i.e. leave it open and then add a new content section. The editor copies a section (typically the one below) i.e. when adding in between already created content blocks. If I then click done on the original open content block the duplicate section becomes one displaying the changes in the new added block and deleting the original block that was not touched.

Step 1: edit one block and do not click done
Step 2: add a block between already created content (this should produce a copy of the block below.
Step 3: change the content in the new added block so that it has different content to that below.
Step 4: click done on the original step 1 block. The content in the added block will remain but the duplicated block that was not touched will disappear.

Alternative step 3: instead of adding content delete the block by clicking the cross. Both blocks (duplicates) will disappear - losing the original untouched content of the lower duplicate block.

Jumping when opening content near bottom of page

When a piece of content near the bottom of the page is opened, the cursor will jump to the beginning of this piece of content, sometimes making the page jump up. This is frustrating while trying to add new content to the bottom.

Unstable behaviour in concertina

Issue found in potential_energy

I noticed that when I edited content in one concertina block, clicked done and then went to a previous concertina block some of the content from the neighbouring concertina sections appeared there as well. The unwanted extra content will disappear if you refresh and then go down the concertina sections in order (top to bottom.) The issue appears when you go up the concertina sections (bottom to top) or any other way. This has happened in Safari and in Chrome.

To recreate bug in potential _energy (physics concept):

  1. step through the different levels: level 2 -> level 5
  2. go from level 5 to level 2, or level 4, or level 3.

It is not necessarily the same content each time which is taken from one of the neighbouring concertina into another.

Accordions

Would it be possible for each accordion to have its own colour rather than the colour indicating live or not. I think this would mean that I would realise more readily which one I was editing. I.e. second accordion always blue with blue frame....

Rename button does nothing

After clicking on the .json name in the black bar at the top, a box drops down with several options. Clicking "rename" just closes this box, and there's no way to edit the file name before clicking "rename"

Choice datastructure should have an explanation field

Please add an additional field called explanation for choice objects.

This should be a ContentObject as per the dto in the segue project.

This field will be used to provide information as to why a given option is correct / incorrect.

levels in accordions

For each accordion in a concept (e.g. potential_energy.json) a way of inputting the level of the accordion section is needed as there is a level indicator on each section. Currently, we can put a title in the purple box, but ideally a space for specifying the level and a longer title would be good so that it matches this page.

Link to Question in Editor?

Is it possible to include a link to the question on the dev site inside the editor, to save having to find the question on the website using the long Question List?

Improve scrolling behaviour

The current site has a fixed-height content panel with internal scrolling. On reflection, this is rather unpleasant.

Make the page extend to the length of the content in the traditional way. Perhaps keep the file browser fixed, but probably not.

Units in Numeric Questions

How should we enter units in Numeric Questions? Straightforward units like "N" or "m" are fine; but units like meters per second (is it "m/s" or "m / s" or "ms^-1" or "m s^{-1}" ) or worse units like meters per second squared will be difficult to enter for the end user.

Is the symbolic equation editor going to be able to deal with this, and if so - what do we write as the choices for the answers to such Numeric Questions? Does it output Mathjax like content?
If not - then I think Lisa et al need to make a decision regarding the project wide way to type them?

Pre-entered text

When you insert a new content block for example, it says "enter content here". When you click on it it disappears, but you have to click on it again to get the cursor. Could you make it so that you only have to click once to get the cursor to appear?

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.