Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dummy app updates #788

Conversation

maxwondercorn
Copy link
Collaborator

No description provided.

@RobbieTheWagner
Copy link
Member

@maxwondercorn is this still WIP?

@maxwondercorn
Copy link
Collaborator Author

Ye still WIP. I've converted the dummy app to native classes and still have a couple issues to resolve.

@RobbieTheWagner
Copy link
Member

@maxwondercorn I just merged #757 which unfortunately caused some conflicts here. Sorry about that!

@maxwondercorn
Copy link
Collaborator Author

@rwwagner90 re: the conflicts above. I've already removed all the dummy app computed's with native getters or @tracked properties.

After this commit is merged, you can review and merge the PR. The @classic decorator can be removed once the addon is converted to glimmer components.

Also, the new ember font-awesome add-on is incompatible with how the icons are used in ELT. I think w3 could remove the font-awesome dependencies and still provide the same functionality. It would be a breaking change and I'll dig into it a bit

@maxwondercorn maxwondercorn changed the title WIP: Dummy app updates Dummy app updates Jul 13, 2022
…#791)

* Fix implicit `this` issues

* Update runloop imports

* Use Object.assign
Copy link
Member

@RobbieTheWagner RobbieTheWagner left a comment

Choose a reason for hiding this comment

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

@maxwondercorn looks like a lot of font-awesome changes. We should put all that back to how it was, as I updated font-awesome to work already.

It seems like maybe there were some rebasing issues, as I already fixed several of these things and some got changed back.

@@ -7,9 +7,30 @@
<p>{{@row.bio}}</p>

<div class="user-actions">
<a class="fa fa-envelope" href="mailto:{{@row.email}}"></a>
<a class="fa fa-facebook" href="#"></a>
<a class="fa fa-twitter" href="#"></a>
Copy link
Member

Choose a reason for hiding this comment

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

Why did we remove font-awesome here? I had updated font-awesome, so we should be able to still use it.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

New addon is official font-awesome add-on, not a community add-on. It does not support using class names. You need to use their FaIcon component or the CDN.

I believe you can create a "kit' which is mini CDN but that requires managing something through their servers. Long term we should try to remove the dependency. Everyone using ELT and cuurent addon have both both addons in their project.

Copy link
Member

Choose a reason for hiding this comment

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

@maxwondercorn yes, I know it is an official font-awesome addon, I updated to it. The class names should still work. I converted a bunch of asc and desc to up and down and they worked.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That's interesting. I had no icons displayed. Maybe I still had asc/desc instead of up/down in the names but none of the others were showing either. IIRC my main app had the same issue and I switched to the fa component.

I'll pull all the changes back in and will undo changes as needed

{{#if this.hasSelection}}
<div
class="table-action fa fa-check-square"
Copy link
Member

Choose a reason for hiding this comment

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

Same with all the fa instances in this file. They should still work and we shouldn't change them.

tests/dummy/app/templates/components/scrolling-table.hbs Outdated Show resolved Hide resolved
Correct sorting icon names
@maxwondercorn
Copy link
Collaborator Author

Hopefully the final pass. Rebased and reverted font-awesome changes. I still do not see icons in app but this can be addressed later. All app examples work.

@RobbieTheWagner
Copy link
Member

@maxwondercorn I think some of the changes I made somehow made it into this PR. Perhaps a bad rebase or an accidental pull after rebasing before force pushing? Or perhaps an issue from me squashing and merging. Would you mind doing one final rebase and dropping the commits that should not be included in this PR please?

@maxwondercorn
Copy link
Collaborator Author

Will look at it tomorrow. Very well could be a bad rebase. Wouldn’t be the first time.

@RobbieTheWagner
Copy link
Member

It does seem like font awesome icons are not showing up anymore, as you said. I don't know what changed since I opened my PR converting them. I will work on using the <FaIcon> component after we get this PR merged.

@maxwondercorn
Copy link
Collaborator Author

Glad I'm not too crazy re: the icons 😄. Yes it was a bad rebase. Looks like I pulled partial changes from other merged PR's. Too much work to fix. I just recreated the changes on the latest master and will close this PR.

I'll have a new PR shortly

@maxwondercorn
Copy link
Collaborator Author

Closing in preference of PR #793

@maxwondercorn maxwondercorn deleted the dummy-app-updates branch July 14, 2022 18:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants