Skip to content

#20178: Added Dell and Lenovo to warranty link function - #12669

Merged
snipe merged 5 commits into
grokability:developfrom
akemidx:feature/sc-20178
Mar 22, 2023
Merged

#20178: Added Dell and Lenovo to warranty link function#12669
snipe merged 5 commits into
grokability:developfrom
akemidx:feature/sc-20178

Conversation

@akemidx

@akemidx akemidx commented Mar 14, 2023

Copy link
Copy Markdown
Contributor

Description

An extension of #12477
Dell and Lenovo were added to the list of manufacturers that pop a link to the warranty checker page.

The attemped functionality to insert the serial number upon creating the link was removed, as the links are too complicated and any change to the websites themselves will end up defaulting to the main warranty page. Therefore, to reduce bloat and create a predictable experience, the links go to each manufacturer's respected checker page.

Type of change

Please delete options that are not relevant.

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Tested locally

Checklist:

@shortcut-integration

Copy link
Copy Markdown

This pull request has been linked to Shortcut Story #20178: Add Dell and Lenovo to Warranty links.

@what-the-diff

what-the-diff Bot commented Mar 14, 2023

Copy link
Copy Markdown
  • Added a new link to the Dell warranty lookup page.
  • Added a new link to the Lenovo warranty lookup page.

@snipe snipe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Few tiny changes requested :)

Comment thread resources/views/hardware/view.blade.php Outdated
</a>
@elseif ((strtolower($asset->model->manufacturer->name) == "lenovo") || (str_starts_with(str_replace(' ','',strtolower($asset->model->manufacturer->name)),"lenovoinc")))
<a href="https://pcsupport.lenovo.com/us/en/warrantylookup#/" target="_blank">
<img src="/img/demo/manufacturers/lenovoicon.png" style="width:25px;height:25px;"><span class="sr-only">Lenovo Warranty Status Lookup</span></i>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can I get this sr-only text translated (including the one above that I made for Apple).

Something like 'general.warranty_lookup_mfg' => ':manufacturer Warranty Status Lookup',

@snipe

snipe commented Mar 22, 2023

Copy link
Copy Markdown
Member

Love it, thank you!

@snipe
snipe merged commit e8e1ada into grokability:develop Mar 22, 2023
@akemidx

akemidx commented Apr 24, 2023

Copy link
Copy Markdown
Contributor Author

Good idea, please consider add HP warranty link https://support.hp.com/us-en/check-warranty

Sorry for the delay, I did consider HP, but are instead working on a dynamic way for any manufacturer to have this functionality.
Instead of adding manufacturers one by one over time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants