This simplifies the message, eliminating complexity
for translators to get the html right, and eliminating
required manual review for such messages.
Bug: T360390
Change-Id: I010ae21283aeb821ce8b0b0bbe29bcabafdb4d55
The use of "HookHandlers" attribute in extension.json makes it possible
to inject services into hook handler classes in a future patch.
Bug: T346499
Change-Id: I75792b20d0515af668bf6f2df6e96671d0ceebf7
The search platform is working on creating SLI's around various search
use cases, including search previews. Add a metric that times how long
it takes between initiating and finishing a preview load.
Bug: T335499
Change-Id: I79ffae7155ab99180c8cd2d4d7503a1593a5daca
- [x] Create new store
- [x] Move mouse trap logic in the store
- [x] Unit test the new store
Bug: T333219
Change-Id: I535f5d4daf99b1c4fba0391778f9e25434742cd3
- [x] Add Pinia to the project
- [x] migrate event module
- [x] Change component logic to work with Pinia and Vuex
- [x] Update unit test
Bug: T318646
Change-Id: I287d1d0b3dc8972b92cebba1b7551b9b6adc3faf
Replacing 'mediawiki.ui/variables.less' @import with
new skin-aware 'mediawiki.skin.variables.less' standard.
Also
- replacing several static values with new Codex design token featuring
skin variables.
Bump to required MediaWiki core version >= v1.41.0.
Bug: T332541
Change-Id: Id7aa30c89a90e9b7974f1758b952c15cd5b73c95
- [x] Expand snippets
- [x] Add New values to the API
- [x] Show Bolded Title on expanded snippets
- [x] Work with Snippets with NO text
- [x] Show original snippet is the text of the article is small
- [x] Add unit test
Bug: T316397
Change-Id: Ie57b79726698c32bf771f5e6dc16240a8a830404
- [x] Add prefixed-text to search result HTML from hook
- [x] Change logic to use new attribute instead than Title
Bug: T317639
Change-Id: I7d98a176e9f9872c03f4eae9d03f7ee58a148e99
- [x] Show interwiki links.
- [x] Make sure commons links are not shown
- [x] Page title linking to the to the page
- [x] Logo + project name localized
- [x] Interwiki links appear at the end of the quick View
- [x] Hide section on mobile
- [x] Update Unit tests
Bug: T307085
Change-Id: Ib7d888baf6a3c4d5e09ef49aff397355578452b1
This reverts commit bd7a277da3.
Reason for revert: Prevent deployment before relevant people had a chance to check it out
Change-Id: I0fc5256bca5160915ba3c0d851a59c8fd6700c6b
-[x] Place the inter-wiki link card after the sections card (or before the commons widget).
-[x] Show the title "Related pages in other projects"
-[x] The above title should be same style and follow same spacing (left, right, top) as the title in section card for visual consistency.
-[x] Show maximum of two link at a time as shown in the mock.
-[x] Tapping on the page title will take users to that page
-[x] The project name should not link anywhere
-[x] Show "view other pages" link with the arrow (as shown in the mock) if there are more than 2 inter-wiki links.
-[x] The link will cycle through all the links within the card. See the prototype for behaviour.
-[x] The "view other pages" link should follow the same spacing (left, right, bottom) as the "more sections" link in section card for visual consistency.
-[x] Update the font style for "+ n more sections" in the sections card to match the one in this ticket (for visual consistency).
-[x] If there are no inter-wiki links for the article do not show this card.
-[x] if the title is too long to fit on the card, use ellipses
Bug: T327540
Change-Id: Id7b7ee7c236b57a58c5519fa54bb906dbd321441
- [x] Show interwiki links.
- [x] Make sure commons links are not shown
- [x] Page title linking to the to the page
- [x] Logo + project name localized
- [x] Interwiki links appear at the end of the quick View
- [x] Hide section on mobile
- [x] Update Unit tests
Bug: T307085
Change-Id: Ice619688996ef0c4ec237903c7e086f03ee3931c
- [x] Create a sessionId replacement
- [x] Set the session ID to be generated after every 10 minute hiatus
- [x] update Unit Tests
- [x] Add new event on extension Load
Bug: T326663
Change-Id: Ice7e8a5d05a74ee7c0912be491d9ba3620802fae
- [x] Add aria label to arrow on search result
- [x] Enable Search Preview to be closed with ESC
- [x] Autofocus Dialog and add required aria information
Bug: T326641
Change-Id: I362b8dbd697b99c7e175ae0932bb7fb0e1c1bece
- [x] Refactor App.vue by split it in two Desktop and Mobile
- [x] Add loading requirement on mobile
- [x] Create a new flag (componentReady) and repurpose Visible (due to the way mobile works this was needed)
- [x] Create loading spinner directory to re-use existing functionality within Wikimedia
- [x] Change QuickView to expose a slot to change loading indicator
Bug: T321944
Change-Id: I6b4bbe878dca0342172304a225fcb87cc333ac85
- [x] Remove JS code
- [x] More enabled logic in the hook
- [x] Create Stylesheet with style to be loaded immediately
- [x] Rename Styles files to be consistent
Bug: T321871
Change-Id: I36d712d7bec3d48d41853e0a47519b5a5dd0a85f
- [x] Create dynamic variables
- [x] Change QuickView to have fixed position
- [x] Create composable to help with events triggering
Bug: T324278
Change-Id: Ic28c04c138d51273df76b56b026a14b55ebf7b5b
- [x] Create new rest endpoint
- [x] Change UI to wotk with new api
- [x] Update Unit tests
- [x] Change Abort method as not supported in the RestAPI
Bug: T324446
Change-Id: I70de6363b1fd81471ed912ee4b870afeefa7bcf7
- [x] Create new Endpoint
- [x] Change UI to use new endpoint
- [x] Update Unit tests
Bug: T324445
Change-Id: Ida192b23a11467ba0f2f4f70ebe8c15948242bbc
- [x] Show the card only if description is set on mobile
- [x]. Define a description text made up of `title`, `descriptiopn` and some connection text
- [x] Define logic to manage text size
- [x] Set ellipsis on overflow cross browser on the 7th line
- [x] Fix small issue on safari on Sections component
Bug: T320647
Change-Id: I80ec7fa4629f51beca62a4d43370f2a2e0cdcf95
[x] Show the onboarding pop up when the logged in user first sees the results on the special search page.
[x] The onboarding pop up should point at the snippet of the first result.
[x] Show the icon, title and text as shown in the pop up in the mocks.
[x] Have the blue icon pulsate. This is a standard component in design system.
[x] Cross icon on the pop up should close the pop up
[x] Automatically close the pop up when the user clicks on a snippet (any snippet on the page). Also open the preview when the snippet is clicked.
[x] Do not show the onboarding pop up again to the same logged in user.
[x] Logged out users will not see this pop up. (Search previews are enabled by default.)
[x] If the user clicks on any link on the page that takes them to a new page consider the onboarding pop up as seen and hide it next time or if they go back.
[x] Clicking on snippet or performing a new search will hide the pop up and do not show it again.
[x] The code should be simple to remove in the future (e.g. we do not want classes and code scattered everywhere, but in a nice folder with all the info in it)
Bug: T321951
Change-Id: I4658b6e9b98de4c443ddade320c6b80d696ff371
- [x] Show only three images from commons
- [x] Show the title "Related images from Wikmedia Commons" as shown in the design.
- [x] The images should maintain its aspect ratio and fit to the given height.
Extra wide images should crop so that they are never too wide than the width of the mobile screen.
- [x] If there are fewer than three images show less.
- [x] If there are not images do not show this sections
- [x] If there are more than three images show the link "view more" as shown in the design
- [x] The "view more images" links takes users to to the MediaSearch images results page on commons for that query.
Tapping on the image will open the media search image preview.
- [x] The quick view panel (if it was previously open before navigating to an article) should stay open when user return to search results using browser back button.
Bug: T321001
Change-Id: I4feef4771f98c62734953a1fe03adbf7d895b553
- [x] Import Mediawiki-ui-base
- [x] Remove added style for small viewport
- [x] Create Resize composable
- [x] Close Quickview on small resize
- [x] Set Search Preview Width to align with interwiki
- [x] Ensure the arrow is always visible when a quick view is openj
Bug: T321376
Change-Id: I86f302b8f24b895c7c9b8e7ef3fcd1a6bd6dc300
[x] Create a new action in the store to handle Event
[x] Make sure each event includes all data defined in the schema (see T321069)
[x] Make sure the action logs to the correct stream & schema
Trigger event for SearchPreview is open (T321071)
[x] When a user clicks on a search result and a new search preview open, trigger an event with action "open-searchpreview"
[x] When a user clicks on the same search result DO NOT trigger an event
[?] When an user refresh a page that has Search preview already open (auto open on load) do not trigger an event
Trigger an event when SearchPreview is closed (T321080)
[x] When a user clicks the "x" to close the popup, trigger an event with action "close-searchpreview"
[x] When a user clicks away and the clickview closes, trigger the same action
[x] When an user clicks on another result (on desktop) and the popup closes, trigger the same action
[x] When an user clicks on the same search result and the clickview closes, trigger the same action
[?] When a user leaves the page (while quickview was still open), trigger the same action
Add unit tests
Bug: T321080
Bug: T321071
Bug: T321079
Change-Id: Ia89b1b1957da9eef718a5f536c7770e18f3a6db7
SearchVue will disengage from mounting on mobile unless:
- it is allowed via a URL param (&quickViewEnableMobile=1)
- or in the absense of such manual override, depending on
it's global config per $wgQuickViewEnableMobile
Bug: T320666
Change-Id: Iaffff1cb8d644827ba70b44512278873ea5bc4c7
Also added background color to image component
(only visible while loading)
Also fixed 'close' i18n message.
Bug: T318951
Bug: T319209
Change-Id: I4a8545248e6207f168105f191c647526a404c3fa
- [x] Show the onboarding pop up when the logged in user first sees the results on the special search page
- [x] The onboarding pop up should point at the snippet of the first result. (The pop up is a standard component in design system.)
- [x] Show the icon, title and text as shown in the pop up in the mocks
- [x] Have the blue icon pulsate. This is a standard component in design system.
- [x] Show the arrow (the one that shows up on hover) of the first snippet while the onboarding pop up is up
- [x] Close button on the pop up should close the pop up and also hide the arrow next to the first snippet
- [x] Automatically close the pop up when the user clicks on a snippet (any snippet on the page). Also open the preview when the snippet is clicked
- [x] Link to preferences will take users directly into search preference in a new window
- [x] Ensure that any interactions immediately under the pop up are disabled while the pop is up
- [x] Do not show the onboarding pop up again to the same logged in user.
- [x] Logged out users will not see this pop up. (Search previews are enabled by default.)
- [x] If the user clicks on any link on the page that takes them to a new page consider the onboarding pop up as seen and hide it next time or if they go back.
- [x] Clicking on snippet or performing a new search will hide the pop up and do not show it again.
- [x/-] The code should be simple to remove in the future (e.g. we do not want classes and code scattered everywhere, but in a nice folder with all the info in it)
Bug: T311669
Change-Id: Ia24564a6c3a72d492d17e3d89810888676e09478
Implement conditional messages for main and other namespaces related to text
in QuickViewSections template
Bug: T317950
Change-Id: Ibb10cebdfdd0556ffbe72b61e8bf46af0b237501