By submitting this PR, I am indicating to the Numberscope maintainers that I have read and understood the contributing guidelines and that this PR follows those guidelines to the best of my knowledge. I have also read the pull request checklist and followed the instructions therein.
This PR represents another cleaned portion of the seventh Delft PR (#360). It allows OEIS sequence cards to be added and deleted from the list that is shown in the sequence switcher. It stores this list of "active" OEIS IDs in browser localStorage so that it is persistent across page reloads, tab closures, and the like. This PR still has a completely non-functional OEIS Search bar; instead, it allows adding new OEIS sequences as follows:
Visit a URL for a specimen that uses an OEIS sequence (we should add at least one to the Gallery as well -- any proposals, @katestange ?) Then, go into your browser's URL bar and move your cursor to the end of the URL. You will see the OEIS ID there as part of the URL. Just type your new desired OEIS ID in place of the one that is there, and then visit the resulting URL. With this PR, that new URL will be correctly interpreted, creating a Specimen that uses that sequence, even though the system has not before encountered that OEIS ID. Moreover, the next time you open the Sequence Switcher panel, you will see that new OEIS Sequence card inserted at the beginning of the block of OEIS Sequences.
You can delete OEIS Sequence cards from the OEIS List by clicking on the garbage can icon when the Sequence Switcher is open. Deletion of non-OEIS sequences is not allowed (no icon is shown on those cards). The Gallery and Saved Specimens should work as before (although they deserve testing as the changes in this PR affected their code).
Once this PR is reviewed, improved as needed, and merged, the final planned piece of this Delft PR -- the OEIS search bar -- will be implemented in a following PR.
By submitting this PR, I am indicating to the Numberscope maintainers that I have read and understood the contributing guidelines and that this PR follows those guidelines to the best of my knowledge. I have also read the pull request checklist and followed the instructions therein.
This PR represents another cleaned portion of the seventh Delft PR (#360). It allows OEIS sequence cards to be added and deleted from the list that is shown in the sequence switcher. It stores this list of "active" OEIS IDs in browser localStorage so that it is persistent across page reloads, tab closures, and the like. This PR still has a completely non-functional OEIS Search bar; instead, it allows adding new OEIS sequences as follows:
Visit a URL for a specimen that uses an OEIS sequence (we should add at least one to the Gallery as well -- any proposals, @katestange ?) Then, go into your browser's URL bar and move your cursor to the end of the URL. You will see the OEIS ID there as part of the URL. Just type your new desired OEIS ID in place of the one that is there, and then visit the resulting URL. With this PR, that new URL will be correctly interpreted, creating a Specimen that uses that sequence, even though the system has not before encountered that OEIS ID. Moreover, the next time you open the Sequence Switcher panel, you will see that new OEIS Sequence card inserted at the beginning of the block of OEIS Sequences.
You can delete OEIS Sequence cards from the OEIS List by clicking on the garbage can icon when the Sequence Switcher is open. Deletion of non-OEIS sequences is not allowed (no icon is shown on those cards). The Gallery and Saved Specimens should work as before (although they deserve testing as the changes in this PR affected their code).
Once this PR is reviewed, improved as needed, and merged, the final planned piece of this Delft PR -- the OEIS search bar -- will be implemented in a following PR.