Skip to content

v5.127.0

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 15 Jan 12:14
06ca513

5.127.0 (2025-01-15)

Features

  • add source to sheet when source is ltr or translation rtl, and when both of them have the same direction (in the last case - do 2 posts). (6fab6ed)
  • connections panel: menu of 'show source' and 'show translation' when connections panel shows text. (c86cdab)
  • content language: do not change language of content inn sidebar when changing in main panel. (2bc02ac)
  • get texts: add 'sources' and 'heSources' to adapted response. (1a2d6e1)
  • get texts: functions for getting texts from api-v3 and modifying them to fit the expected old api response. (af16bd8)
  • hebrew translation: do not grey the text even in stacked view. (a49f6ef)
  • newsletter subscriptions: Add ability for sidebar ads to have a sign-up form for newsletters and provide the option for additional newsletters to be chosen for a specific sidebar ad besides the default ones (7d0ebd5)
  • reader panel: gray and margins for translation in stacked layout. (2011261)
  • ReaderControls: use the new function for getting text. (a36c7b8)
  • rtl: add caching using Sefaria methods, fixing infinite scroll and title loading (60c6b09)
  • search: add new attributes (isPriamry and languageFamilyName) to dicta results.. (d6e4e10)
  • sheet: display ltr-only sources on hebrew interface. (8ed551f)
  • sheet: fix the language - he for hebrew interface, and bi for english interface. (de35485)
  • sheet: redirect (permanent, 301) the language of sheet - he for hebrew interface, and bi for english interface. (2945264)
  • sheet: return language options to sheets. (e3ef236)
  • sheet: sheet display options menu which inclusdes: (cb819a8)
  • text menu: cursor pointer for buttons. (ceb4fa1)
  • text menu: Hebrew string for cantillation. (7ae7c9d)
  • text menu: punctuation toggle. (e004f9a)
  • text menu: vowels and cantillation toggles. (e16690d)
  • text meny: aliyot toggle switch. (27e5f5d)
  • text meny: font size buttons. (221c1dd)
  • texts client: 'empty' text as translation when the api response has only one text. (8c795d7)
  • texts menu: add border line. (4dd2d27)
  • texts menu: add layout options to menu. (2e898ab)
  • texts menu: layout icon for stacked ltr rtl. (2a1726b)
  • texts menu: new text menu (with only language button for this PR). (b5e6172)
  • texts menu: svg layout files. (0f4bc63)
  • texts: css for rtl as translation and ltr as source. (43cb1bf)
  • texts: Hebrew strings for 'Translation' and 'Source with Translation'. (3414b13)
  • texts: show only one text when there is only one on bilingual state. (72dbe19)
  • texts: show titles and other content-related texts in the content language if it's hebrew or english and in the interdace language otherwise. (8735c1a)
  • translations: rtl translations with sans serif and 100% font size. (5773c83)
  • translations: use text-v3 in work (commit for pushing for working together). (4f32748)
  • translations: use the v3 functions for getting texts in components. (1b9b883)
  • url: insert languageFamilyName to url. (f726d21)
  • url: redirect old urls. (000394c)
  • use old _saveText for enabling the using of getRefFromCache. (da574bb)
  • versions: get the translation by the user langauge preferences and version stickiness. (af8b795)
  • VersionsTextList: do not push about versions into recentVersionFilters, and do not show recentVersionFilters on AboutBox (if we want to show them, we should have a different list). (6210dd3)

Bug Fixes

  • A button: fix location. (5379fae)
  • AboutBox: bind setFilter for prevConnectionsMode be 'About'. (5922f1f)
  • AboutBox: check if versionLangMap were loaded in the right way. (daa3744)
  • AboutBox: fix versions in AboutBox (410b621)
  • AboutBox: show correctly the 'Current Version' and 'Current Translation'. (feb9230)
  • AboutBox: show the title of current version rather than of the last translation. (699294d)
  • AboutBox: use ContentText for the composed text (rather than no component), so it won't show both languages. (ac12844)
  • abstracttextrecord: word_count function was failing not gracefully on index without nodes (e15352b)
  • acquire api-v3 text: encode versions uri for versionTitles that have semi colon. (5c83631)
  • add to sheet: add to sheet from sheet of source that is spanning ref (ConnectionsPanel should call all the section for caching). (d5a48c6)
  • align hebrew source in side panel to right also on english interface. (dca9028)
  • API texts v3: add spanningRefs only if isSpanning (=not in the case of segment ref). (fe9c00b)
  • author page: do not show bilingual text for books (rather fallback to interface text - that is not the desired behaviour but this will have to wait for big refactor of strings languages). (549a28c)
  • Connections Panel: derive section ref if not cached yet (dc80657)
  • connections panel: fix text align and direction in connection panel when showing rtl texts. (c4fb810)
  • connections panel: show only one language in panel side texts. (d35b171)
  • ConnectionsPanel: compare arrays in the right way for preventing superfluous renderings (I can't recall why I had changed this line from the first place). (46453e9)
  • ConnectionsPanel: load data when moving from section to segment ref, for availabe trasnlations for section can be partial. (f7cdb4a)
  • ConnectionsPanel: set data in advanced state (for checking the ability to edit text). (4ef9c87)
  • css: do not show rtl-translation//ltr-source when viewing source/translation only. (e72c264)
  • css: show ltr source when selecting translation but no translation exists. (682fad5)
  • css: show only the interface text for topic in the side panel. (0611f8b)
  • currVersions: check for versionTitle before adding it to edit url. (6170901)
  • currVersions: check for versionTitle before adding it to edit url. (bbfac1e)
  • direction: show source when translation is not available, but also show translation in side panel when contentLang is he. (75ce06b)
  • DisplayOptoinsMenu: fix scrolling when menu is open. (1d8cce2)
  • DisplayOptoinsMenu: fix text vertical align. (51af0e7)
  • edit text: add default undefined value for deconstructing versionTitle from currVersion. (45da3d4)
  • edit text: fix languages - langCode that sent to server depends on direction and currVersionsLangCode is the master panel language. (7a887f3)
  • edit text: right way for getting versionTitle when currVersions has null for language. (26df3e6)
  • edit: edit rtl translations. (5dd8073)
  • editor: fix languages and layout in editor. (212db7d)
  • englishAvailableTag: hide englishAvailableTag when content language is hebrew. (fdf0887)
  • errors: Update URL to match new devportal slug (b4e32d0)
  • fix direction of book hebrew title in side panel, and of the content itself even when it os one line (both in english interface). (979a6e3)
  • get text: check if version exists also when we know the versionTitle (for cases where the user chose a partial version). (c888653)
  • getObjectFromUrlParam: do not return pipe as language. (f423e75)
  • getTextFromCurrVersions: do not add 'primary' and 'translation' as languageFamilyName. this enables finding versions when we have only versionTitle without languageFamilyName (this happens in search results). (b2cbcae)
  • getTextFromCurrVersions: set he and en to an empty object when they are null. (68ff396)
  • getting texts: add the attributes sources and heSources only when the aources attribute is in the response. (c182498)
  • getting texts: add the attributes sources and heSources only when there is more than one source. (b27423c)
  • hebrew translation: apply stripping vowels for hebrew translations. (db543b3)
  • history: add getStr to verify that even empty strings are returned (60f34bb)
  • history: remove debugger (2ac8b72)
  • history: return string when savedVersion?.[key]?.versionTitle is empty (28f09fc)
  • language toggle button: show only ay or aleph. (92531e7)
  • layout toggle: don't show layout toggle when the panel is bilingual and not wide enough. (7537960)
  • layout toggle: show bilayout when there is an 'empty' translation. (bba4437)
  • mongodbapi: count_documents needs a query (9257c6f)
  • mongodb: changed save and count to insert_one and count_documents (10832bb)
  • newsletter subscriptions: Fixes incorrect naming of property so data can flow properly to the sidebar ads for the new newsletter list (b55098e)
  • open version: fix open version from toc page. (9abe2e2)
  • playwright: fix reader.spec tests. (2188525)
  • popup: show popup menu over banner (ebd5dc3)
  • ReaderControls: set translation versionTitle even when only source is shown for using it when toggle to translation. (6ee6d4f)
  • ReaderDisplayOptionsMenu: in mobile, do not show layout options for bilingual, but only for unilingual. (f28b2e1)
  • ReaderPanel: check data exists in shouldLayoutUpdate. (51de1de)
  • ReaderPanel: don't try to get things from data when it's null. (d23db3f)
  • ReaderPanel: fix the flowing of tata into ReaderControl and making the translation VersionTitle. (8bf5e77)
  • ReaderPanel: set translation in ReaderControls when it gots data. (76c25e1)
  • rtl: convert TranslationBox component to functional component (e02f3c6)
  • rtl: do not show language option in connections panel on hebrew interface. (af9f192)
  • rtl: Fix Base version shows as "merged" even when it's coming from only 1 version. (8f300a6)
  • rtl: show ltr text in connections panel commentary in heberw interface. (68a514c)
  • saved icon: old UserHistory objects are from this form: {he: , en: }, while new ones have the form of new currVersions with versionTitle and languageFamilyName. this commit change way we check if versions are same to feet both old and new. (094af4a)
  • saved texts: check currVersion?.[key] for old saved versions data (the old data can arrive to currVersion when showing the saved items page). (f51b869)
  • search result: use the new attrs of search API, for calling texts API accurately - with he/en meaning primary/translation and with the languageFamilyName param. (492d045)
  • search: extract versionTitle from data with the right attr name. (92267cc)
  • segmentText: fix rtl class (for viewing version in VersionTextList). (4b102bb)
  • sheet: fix flow. (a9874cd)
  • sheet: show mixed layouts. (dda0f4a)
  • sidebar: show correctly rtl translation in sidebar. (5fd38d2)
  • SSR processing: save the versions according to the new api returned object in ssr processing. (10e14f0)
  • ssr: Add functionality for caching current text in textStore for ssr and sso display (bd79ad3)
  • SSR: assign an empty array to he/text when there is no source/translation. (d787953)
  • text api: add versionStatus and heVersionStatus to the response. (46f6699)
  • text fetch: use context on ReaderPanel. (17a7917)
  • text menu: fix location. (83f3334)
  • text menu: font size buttons order in Hebrew interface. (06c79e2)
  • text menu: fux the typo also in the ReaderDisplayOptionsMenu component. (5b09bf9)
  • text properties menu accesibilty: add role switch, aria-labelledby and aria-checked to ToggleSwitch. (4275fa0)
  • text properties menu accesibilty: add role to the menu. (7715ed1)
  • text properties menu accesibilty: add roles radiogroup and radio, aria-label and aria-checked to layout buttons. add aria-label strings to constants.js. (451ec63)
  • text properties menu accesibilty: add roles radiogroup and radio, aria-label and aria-checked to source translation buttons. (31a5fc4)
  • text properties menu accessibility: add role button, aria-labelle to font size buttons. set redundant alt of img tags to an empty strings. (2160b8e)
  • text properties menu accessibility: change div to button. (d44ceec)
  • text properties menu accessibility: change layout button div to input. (1e304ce)
  • text properties menu accessibility: change source/translation buttons div to input, and hide the circle with css. (a0727a0)
  • text properties menu: type in 'Cantillation'. (a16f016)
  • textColumn: revert oref as key (48130ca)
  • TextRange: create TextRange with section ref as key, so it won't re-created when TextColumn is re-rendered. (8aeec0e)
  • TextRange: do not change ref for link to segment. (182b2b4)
  • TextRange: fix loading message in bilingual state. Use LoadingMessage rather than ContentText for that. (4c26e77)
  • TextRange: handle segment refs and spanning refs. (c74abc2)
  • TextRange: return a piece of code for normalizing ref. (c4a0fff)
  • TextRange: show linkCount when it's available. (c9aa2b3)
  • TextRange: typo. (efb0bd0)
  • TextRange: use isSpanning rather than spanning which doesn't exist in v3. (48c14b7)
  • TextRange: use withContext in text call. (df2779f)
  • Texts API: check for default child ref (05e6e0d)
  • Texts API: encode ref (747e470)
  • Texts API: normalize ref before calling API (7e768bd)
  • texts menu: handle cases where data is not loaded yet. (af741ed)
  • texts menu: layout direction. (0713324)
  • texts menu: location of the wotd in menu. (5347781)
  • texts menu: popover menu direction. (69b6fbc)
  • texts menu: show only language toggle in compare panel. (4b12c96)
  • texts menu: switch layout icons for mono text. (d47135f)
  • texts: direction for bilingual when primary is ltr and translation rtl. (14d507f)
  • texts: direction for mono text. (47ecdcc)
  • TextSegment: use the directions from the props rather than from context (which can be true for only another TextRange). (4b97f73)
  • texts: show only the source/translation when this is selected. (ad255e5)
  • texts: show only the source/translation when this is selected. (3d2ab03)
  • texts: svgs with the right names. (49bde51)
  • topic page: don't display unpublished sources (5fae492)
  • topic page: show manual descriptions (8d09a15)
  • translation open: show translation in the sidebar even when content language is hebrew. (59fa721)
  • translations box: show translation also when the content language is he. (e4018a6)
  • translations: show currently selected for rtl translations. (9c2e835)
  • translations: show the number of translations on the specific segment, rather than for whole section. for this use props.srefs[0] (in accordance with what we use inside TranslationsBox). (d355740)
  • useContentLang: use the right attribute of data. (5e9261e)
  • useOutsideClick: add the option not to add a listener (for case when the component is not active), and usw it in PopoverMenu when menu is not open. (29e798b)
  • versions stickiness: stickiness for all translations rather than ltr only. (3d2a3fc)
  • versions: case where we don't have the translation requested version (like we have it for some sections). (57094fa)
  • VersionsTextList: add new mode 'Version Open' to histories and SSR'. (7856ff3)
  • VersionsTextList: find languageFamilyName in VersionsTextList. for that add versionLangMap as a prop. (9620756)
  • VersionsTextList: move proptypes. (ab46fcc)