Giter Site home page Giter Site logo

unfoldingword / bible-reference-rcl Goto Github PK

View Code? Open in Web Editor NEW
0.0 5.0 2.0 2.22 MB

Bible Reference Navigation RCL

Home Page: https://unfoldingword.github.io/bible-reference-rcl/

License: Other

JavaScript 100.00%
headlessui headless-ui scripture-open-components

bible-reference-rcl's Introduction

unfoldingWord

bible-reference-rcl's People

Contributors

foxprogs avatar joel-c-johnson avatar kintsoogi avatar mannycolon avatar photonomad0 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bible-reference-rcl's Issues

Settings popups should close when the user clicks away

When the user opens card settings the settings don't seem to be attached to the three dot icon - they tend to show up in center of screen. Settings popups should be closed when the user clicks outside of the popup.

DoD: A settings card, invoked from the 3 dot menu, will close when the user clicks outside of the settings card.


Also they are modal which means you can't interact with rest of screen. So we need to do one of

  • dim the rest of the screen to indicate you can't make changes until popup is dismissed
  • have the popup close whenever you click off
  • or both of the above.

[SPIKE] Cypress Recordings are no longer working in GitHub actions.

Notes:

  • current state is that on GitHub actions we are getting about a 30second video with no screen changes.
  • likely due to under powered GitHub actions runner. May need to investigate turning recording off for GitHub actions, but leaving it for local builds.
  • maybe using macOS as running would fix problem (has 3 cores instead of 2 cores for linux) <= still a problem
  • investigate other options.

Document API

Add properties/callbacks/navigation:

  • initialize/control - book, chapter, verse
  • whitelist of supported books
  • callback for change of book, chapter, verse
  • expose interface for previous/next book, chapter, verse

Add documentation to Styleguidist page.

Reference dropdown cropping

The numbers in the chapter and verse dropdowns are getting cropped on Firefox and Safari when scrollbar appears:

Screen Shot 2021-01-18 at 7 41 26 AM

Add ability to type/paste in book chapter:verse

Pasting a reference into the book field will navigate to that reference.

Reference should be in the format: '<bookname/abbv> []:[]' where bookname or abbreviation is required and optionally chapter and verse. A chapter without a verse should default to verse 1.

DoD: Pasting a reference into the book field navigates to the pasted reference.


For reference:
request from @RobH123

When the user clicks into any field on the reference navigator and pastes a '<bookname/abbv> :' the reference will be accepted and the current reference will change to the pasted reference just as if the user had chosen all 3 fields manually.

Katalon problems list

Creating a list here of elements that are problematic for Katalon to find reliably

The 2 dropdown lists on the Account Settings page both have the same id
The X to close the card settings modal is not findable
The open buttons for book, chapter, and verse all have same aria-label
The close buttons for book, chapter, and verse all have same aria-label
All of the buttons on the blue bar have the same aria-label

translation-helps-rcl

HTML styled Input field is editable but not multi line
Switch to use MUI TextareaAutosize instead

Release 0.9

Create a Bible Reference Navigation RCL for use in tc-create 2.0, etc.

@PhotoNomad0 commented on Mon Nov 02 2020

initial design spec are in https://docs.google.com/document/d/1dEYW59IGqiU2S94G7DJYdOiglIQzxqL00l_g2lLqC7c/edit?ts=5f99d09c# :

Bible Reference RCL

  • Testament/Book/Chapter/Verse navigation
  • Previous and next for Book/Chapter/Verse
  • Drop-down selection for each
  • Typeable (will filter list) <- phase 2
  • UI and headless UI library (https://react-table.tanstack.com/docs/overview#what-is-a-headless-ui-library)
  • May also have support for owner/repo/language <- will pass in current book, array of bookIDs available
  • responsibility of each pane to find closest content to chapter/verse given
  • apis so each component can change chapter/verse (as well as next/prev chapter/verse) - then all other components get updated
  • chapter count and verse counts will be hard coded.
  • Challenges: Verse ranges and alternate versifications <- future

Questions

  • OBS support - story #/ frame #?
  • do we want to read navigation from USFM? No

@mvahowe commented on Mon Nov 02 2020

If the USFM has \v1-2, and the UI is on "verse 1", what does "next verse" do? I can't see a safe answer to this question since, basically, the UI would be misleading the user. If "next" is v3, where is v2? If "next" is v2, with identical content to v1, doesn't that look like a bug? If \v1-2 is displayed as "verse 1", why wouldn't the user delete the part of the translation that is not in v1?

Add primitive Undo/Redo support for resource edits

We can use the git commit history on DCS to navigate backward and forward the git commit changes to allow reversion of edit changes. Note that if there are unsaved changes on the card, we should save those before pulling in old commits. That way redo would work if they have second thoughts.

Notes:

  • this would not be as granular as the undo in a text editor (but in most browsers they already have that capability by doing CMD-Z
  • need to test - this may not be fast.

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.