Should we repeat menu items in the main navigation if they fall into two categories?

I am working on navigation for a retail site. I have a typical account menu (My Account, Sign In, Create Account etc) and I have a main hamburger menu with department pages etc.

The site experience is greatly improved when the customer signs in, so I want to encourage this behavior.

My question is: I have an Account Menu item (My Purchases) in the main hamburger navigation under the title “Popular”, I also have an My Account section in the hamburger menu. Should I repeat My Purchases under Popular and My Account in the hamburger menu to match how the separate Account Menu is structured or should I remove My Purchases from the hamburger My Account section because it already appears in another part of the hamburger menu structure.

The structure and two options are below:

Separate Account Menu:

Child 1: My Purchases
Child 2: x
Child 3: x


Option 1:

Hamburger Menu:

Nav Title: Popular
Child 1: My Purchases
Child 2: x
Child 3: x

Nav Title: My Account
Child 1: My Purchases
Child 2: Sign In
Child 3: Create Account


Option 2:

Hamburger Menu:

Nav Title: Popular
Child 1: My Purchases
Child 2: x
Child 3: x

Nav Title: My Account
Child 1: Sign In
Child 2: Create Account

same row content repeat in the whole page grid while navigate pagination

enter image description hereThe problem :

When you apply filter or pagination, then removing filter, same row content being repeat in the whole page grid. Here is the file where I am making mistakes?

<?xml version="1.0" encoding="UTF-8"?> <listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"          xsi:noNamespaceSchemaLocation="../../../../../Magento/Ui/etc/ui_configuration.xsd">          <argument name="data" xsi:type="array">         <item name="js_config" xsi:type="array">             <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing_data_source</item>             <item name="deps" xsi:type="string">replacement_member_listing.replacement_member_listing_data_source</item>         </item>         <item name="spinner" xsi:type="string">replacement_member_listing_columns</item>     </argument>         <dataSource name="replacement_member_listing_data_source">         <argument name="dataProvider" xsi:type="configurableObject">             <argument name="name" xsi:type="string">replacement_member_listing_data_source</argument>             <argument name="class" xsi:type="string">Aayanshtech\Replacement\Ui\DataProvider\MemberDataProvider</argument>             <argument name="primaryFieldName" xsi:type="string">w_id</argument>             <argument name="requestFieldName" xsi:type="string">id</argument>             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="update_url" xsi:type="url" path="mui/index/render" />                  </item>                <item name="storageConfig" xsi:type="array">                      <item name="indexField" xsi:type="string">w_id</item>                 </item>             </argument>         </argument>         <argument name="data" xsi:type="array">             <item name="js_config" xsi:type="array">                 <item name="component" xsi:type="string">Magento_Ui/js/grid/provider</item>             </item>         </argument>             </dataSource>         <container name="listing_top">         <argument name="data" xsi:type="array">             <item name="config" xsi:type="array">                 <item name="template" xsi:type="string">ui/grid/toolbar</item>             </item>         </argument>         <bookmark name="bookmarks">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="component" xsi:type="string">Magento_Ui/js/grid/controls/bookmarks/bookmarks</item>                     <item name="displayArea" xsi:type="string">dataGridAcions</item>                     <item name="storageConfig" xsi:type="array">                         <item name="saveUrl" xsi:type="url" path="mui/bookmark/save"/>                         <item name="deleteUrl" xsi:type="url" path="mui/bookmark/delete"/>                         <item name="namespace" xsi:type="string">replacement_member_listing</item>                     </item>                 </item>             </argument>         </bookmark>                <filters name="listing_filters">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="displayArea" xsi:type="string">dataGridFilters</item>                     <item name="dataScope" xsi:type="string">filters</item>                     <item name="storageConfig" xsi:type="array">                         <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing.listing_top.bookmarks</item>                         <item name="namespace" xsi:type="string">current.filters</item>                     </item>                     <item name="childDefaults" xsi:type="array">                         <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing.listing_top.listing_filters</item>                         <item name="imports" xsi:type="array">                             <item name="visible" xsi:type="string">replacement_member_listing.replacement_member_listing.replacement_member_listing_columns.$  { $  .index }:visible</item>                         </item>                     </item>                 </item>             </argument>             <filterInput name="order_number">                 <argument name="data" xsi:type="array">                     <item name="config" xsi:type="array">                         <item name="dataScope" xsi:type="string">order_number</item>                         <item name="label" xsi:type="string" translate="true">Order Number</item>                     </item>                 </argument>             </filterInput>              <filterInput name="first_name">                 <argument name="data" xsi:type="array">                     <item name="config" xsi:type="array">                         <item name="dataScope" xsi:type="string">first_name</item>                         <item name="label" xsi:type="string" translate="true">First Name</item>                     </item>                 </argument>             </filterInput>               <filterInput name="email">                 <argument name="data" xsi:type="array">                     <item name="config" xsi:type="array">                         <item name="dataScope" xsi:type="string">email</item>                         <item name="label" xsi:type="string" translate="true">Email</item>                     </item>                 </argument>             </filterInput>         </filters>            <massaction name="listing_massaction">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                       <item name="selectProvider" xsi:type="string">replacement_member_listing.replacement_member_listing.replacement_member_listing_columns.ids</item>                     <item name="component" xsi:type="string">Magento_Ui/js/grid/tree-massactions</item>                     <item name="indexField" xsi:type="string">w_id</item>                 </item>             </argument>             <!-- Mass actions which you want to add in your grid-->             <action name="delete">                 <argument name="data" xsi:type="array">                     <item name="config" xsi:type="array">                         <item name="type" xsi:type="string">delete</item>                         <item name="label" xsi:type="string" translate="true">Delete</item>                         <item name="url" xsi:type="url" path="replacement/grid/massdelete"/>                         <item name="confirm" xsi:type="array">                             <item name="title" xsi:type="string" translate="true">Delete</item>                             <item name="message" xsi:type="string" translate="true">Do you want to delete selected row record?</item>                         </item>                     </item>                 </argument>             </action>             <action name="massemail">                 <argument name="data" xsi:type="array">                     <item name="config" xsi:type="array">                         <item name="type" xsi:type="string">massemail</item>                         <item name="label" xsi:type="string" translate="true">Send E-Mails</item>                         <item name="url" xsi:type="url" path="replacement/grid/massemail"/>                                            </item>                 </argument>             </action>         </massaction>          <paging name="listing_paging">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="storageConfig" xsi:type="array">                         <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing.listing_top.bookmarks</item>                         <item name="namespace" xsi:type="string">current.paging</item>                     </item>                     <item name="selectProvider" xsi:type="string">replacement_member_listing.replacement_member_listing.replacement_records_columns.ids</item>                 </item>             </argument>         </paging>     </container>         <columns name="replacement_member_listing_columns">         <argument name="data" xsi:type="array">             <item name="config" xsi:type="array">                 <item name="storageConfig" xsi:type="array">                     <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing.listing_top.bookmarks</item>                     <item name="namespace" xsi:type="string">current</item>                 </item>                   <item name="editorConfig" xsi:type="array">                     <item name="selectProvider" xsi:type="string">replacement_member_listing.replacement_member_listing.replacement_member_listing_columns.ids</item>                     <item name="enabled" xsi:type="boolean">true</item>                     <item name="indexField" xsi:type="string">w_id</item>                     <item name="clientConfig" xsi:type="array">                         <item name="saveUrl" xsi:type="url" path="replacement/index/InlineEdit"/>                         <item name="validateBeforeSave" xsi:type="boolean">false</item>                     </item>                 </item>                  <item name="childDefaults" xsi:type="array">                     <item name="fieldAction" xsi:type="array">                         <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing.replacement_member_listing_columns_editor</item>                         <item name="target" xsi:type="string">startEdit</item>                         <item name="params" xsi:type="array">                             <item name="0" xsi:type="string">$  { $  .$  data.rowIndex }</item>                             <item name="1" xsi:type="boolean">true</item>                         </item>                     </item>                     <item name="storageConfig" xsi:type="array">                         <item name="provider" xsi:type="string">replacement_member_listing.replacement_member_listing.replacement_member_listing.listing_top.bookmarks</item>                         <item name="root" xsi:type="string">columns.$  { $  .index }</item>                         <item name="namespace" xsi:type="string">current.$  { $  .storageConfig.root }</item>                     </item>                 </item>             </item>         </argument>         <selectionsColumn name="ids">             <argument name="data" xsi:type="array">                 <item name="config" xsi:type="array">                     <item name="resizeEnabled" xsi:type="boolean">false</item>                     <item name="resizeDefaultWidth" xsi:type="string">55</item>                     <item name="indexField" xsi:type="string">w_id</item>                 </item>             </argument>         </selectionsColumn>           <column name="w_id">            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                    <item name="filter" xsi:type="string">number</item>            <item name="sorting" xsi:type="string">desc</item>                    <item name="label" xsi:type="string" translate="true">Id</item>                </item>            </argument>        </column>         <column name="created_at" class="Magento\Ui\Component\Listing\Columns\Date" >            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                    <item name="filter" xsi:type="string">dateRange</item>                    <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/date</item>                    <item name="dataType" xsi:type="string">date</item>                    <item name="label" xsi:type="string" translate="true">Created At</item>                </item>            </argument>        </column>     <column name="order_number">            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                    <item name="filter" xsi:type="string">text</item>                    <item name="label" xsi:type="string" translate="true">Order number</item>                </item>            </argument>        </column>            <column name="first_name">            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                    <item name="filter" xsi:type="string">text</item>                    <item name="label" xsi:type="string" translate="true">First Name</item>                </item>            </argument>        </column>           <column name="email">            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                    <item name="filter" xsi:type="string">text</item>                    <item name="label" xsi:type="string" translate="true">Email</item>                </item>            </argument>        </column>             <column name="track_code">            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                  <item name="editor" xsi:type="array">                     <item name="editorType" xsi:type="string">text</item>                     <item name="validation" xsi:type="array">                         <item name="required-entry" xsi:type="boolean">true</item>                     </item>                   </item>                                   <item name="filter" xsi:type="string">text</item>                   <item name="label" xsi:type="string" translate="true">Track Code</item>                </item>            </argument>        </column>         <column name="status">             <argument name="data" xsi:type="array">               <item name="sortOrder" xsi:type="number">50</item>                 <item name="options" xsi:type="object">Aayanshtech\Replacement\Ui\Component\Listing\Grid\Column\Status</item>                 <item name="config" xsi:type="array">                     <item name="filter" xsi:type="string">select</item>                     <item name="label" xsi:type="string" translate="true">Status</item>                     <item name="component" xsi:type="string">Magento_Ui/js/grid/columns/select</item>                     <item name="dataType" xsi:type="string">select</item>                     <item name="editor" xsi:type="array">                     <item name="editorType" xsi:type="string">select</item>                         <item name="validation" xsi:type="array">                             <item name="required-entry" xsi:type="boolean">false</item>                         </item>                     </item>                 </item>             </argument>         </column>        <!-- Add Action with each row of grid and for this we will create a class Action -->        <actionsColumn name="actions" class="Aayanshtech\Replacement\Ui\Component\Listing\Grid\Column\Action">            <argument name="data" xsi:type="array">                <item name="config" xsi:type="array">                    <item name="resizeEnabled" xsi:type="boolean">false</item>                    <item name="resizeDefaultWidth" xsi:type="string">107</item>                    <item name="indexField" xsi:type="string">id</item>                </item>            </argument>        </actionsColumn>           </columns> </listing> 

Design beautiful repeat patterns for you for $5

Welcome to my card service! I will create your very own business card design in a minimalistic, simple and professional way! Remember the simpler cards are the ones that SELL best! Services: Good Communication (24hrs)Fast DeliveryMultiple colorUnlimited Revision until your 100% satisfaction. Please Order Me Now!

by: BaburAli
Created: —
Category: Art & Design
Viewed: 172


Facebook Ads Reseller – $3,999 to $8,000 per week, just based on repeat and referral business.

HOW IT WORKS

No headaches, services offered on the site are completely outsourced. The supplier handles all customer requests – all supplier details are included with the sale of this website, including backup suppliers.

Anyone can run this Business, no Facebook Ads experience, no Facebook Ads Optimization experience, no Sales experience necessary – No Problems………….. Run your own Facebook Ads Agency in this multi-billion dollar niche encompassing the Composition and Optimization of…

Facebook Ads Reseller – $ 3,999 to $ 8,000 per week, just based on repeat and referral business.

Repeat formula n number of times in google sheets

Apologies, I’m very new to google sheets and spreadsheets in general. I’m trying to fill some cells with repeating data, and then analyze it. The data is pulled from another large spreadsheet and has a variable number of rows. Each cell has a date associated with it in another column, but sometimes that date is not filled in, I need to correct that like so:

Demo

+---+---+    +---+---+ | 1 | a |    | 1 | a | +---+---+    +---+---+ |   | b |    | 1 | b | +---+---+    +---+---+ | 2 | c |    | 2 | c | +---+---+ -> +---+---+ |   | d |    | 2 | d | +---+---+    +---+---+ |   | e |    | 2 | e | +---+---+    +---+---+ | 3 | f |    | 3 | f | +---+---+    +---+---+ 

I’m using arrayformula elsewhere, which works really well to repeat formulas, but I can’t get this one to work. The number of repeats is stored in a cell and referenced when needed. Currently, my workaround method is to copy my formula in thousands of rows, but I’d rather have the formula in one cell and the rest be automatic

My formula: =INDEX(C:C, MAX(FILTER(ROW(OFFSET(C$ 1, 0, 0, ROW())), ISNUMBER(OFFSET(C$ 1, 0, 0, ROW())))), 1)

The formula is the exact same for each cell, so I tried wrapping it in an if that runs the correct number of times, but the formula is only evaluated once.

=ARRAYFORMULA(IF(OFFSET(C2, 0, 0, A2) + 1, INDEX(C:C, MAX(FILTER(ROW(OFFSET(C$ 1, 0, 0, ROW())), ISNUMBER(OFFSET(C$ 1, 0, 0, ROW())))), 1), "error"))

Is there any way to do this with a single formula per column?

Is it bad practice to repeat logic being tested in unit tests?

Often I find myself writing a unit test for code and repeating some or a lot of the logic in the unit test to make the unit test DRY.

For example, consider the following piece of code:

function speak(conditionOne, conditionTwo) {   if (conditionOne) {     return "Hey"   } else if (conditionTwo) {     return "Sup"   } else {     return "Waddup"   } } 

Now I could write a unit test using jest, for example, by hardcoding all the cases.

describe('speak', () => {   test('when condition one but not condition two', () => {     expect(speak(true, false)).toEqual('Hey')   })    test('when condition one and condition two', () => {     expect(speak(true, true)).toEqual('    test('when not condition one but condition two', () => {     expect(speak(false, true)).toEqual('Sup')   })    test('when not condition one and not condition two', () => {     expect(speak(false, false)).toEqual('Waddup')   }) }) 

Or I could try to make it a bit more terse using syntactic sugar but still hardcoding the cases and expected outcomes:

describe('speak', () => {   test.each`     conditionOne | conditionTwo | value     $  {true}      | $  {false}     | $  {'Hey'}     $  {true}      | $  {true}      | $  {'Hey'}     $  {false}     | $  {true}      | $  {'Sup'}     $  {false}     | $  {false}     | $  {'Waddup'}   `('when conditionOne is $  conditionOne and conditionTwo is $  conditionTwo then $  value', ({ conditionOne, conditionTwo, value }) => {     expect(speak(conditionOne, conditionTwo)).toEqual(value)   }) }) 

But you could imagine if there is a decent amount of logic then the number of cases to hardcode in the table become exponential and the outcome isn’t always so easy to hardcode as a value.

This is where I think it might be a good idea to make the test more intelligent, but then it just starts to become a repeat of the unit logic (and what if I got the unit logic wrong?)

For example:

describe('speak', () => {   describe.each`     conditionOne     $  {true}     $  {false}   `('when conditionOne is $  conditionOne', ({ conditionOne }) => {      test.each`        conditionTwo        $  {true}        $  {false}      `('when conditionTwo is $  conditionTwo', ({ conditionTwo }) => {        let value        if (conditionOne) {          value = 'Hey'        } else if (conditionTwo) {          value = 'Sup'        } else {          value = 'Waddup'        }         expect(speak(conditionOne, conditionTwo)).toEqual(value)      }) }) 

This now makes it much easier to test when manually writing out the table would be cumbersome. However, it seems like it is prone to the same bugs as the unit itself? But on the other hand it lets me refactor with confidence and I can see the test cases get printed out and make sure they are OK when the tests get run.

Excel how to repeat text to columns depending on entries and insert columns

My spreadsheet has variable number of comma separated entries in multiple columns. I need to calculate for each column the max number of entries, insert this many blank columns and then run the text to columns function. Then I need to repeat this on any other columns in the spreadsheet that have more than 1 comma separated entry. For example:

Column 1: Row 1 = 2 entries, Row 3 = 5 entries

Column 2: Row 1 = 6 entries, Row 30 = 4 entries

Thanks in advance.