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

Move libs/table and libs/pagination into app/ #1971

Merged
merged 1 commit into from
Feb 23, 2024
Merged

Conversation

david-crespo
Copy link
Collaborator

@david-crespo david-crespo commented Feb 23, 2024

Changes here:

  • Move libs/table to app/table and update @oxide/table alias for that
  • Move contents of libs/pagination to app/components and app/hooks (there was a component and a hook), get rid of @oxide/pagination alias (it was only used twice)

We're reworking aliases as part of #1964 and I'm thinking the app vs. libs distinction doesn't really make sense and we should get rid of it. I picked a couple of smaller pieces here to show what that looks like. It's very simple because of the @oxide/table alias: we don't have to change any imports, all we have to do is change what the alias points to. With pagination there were only two imports so I converted those to the ~/pagination style already.

After moving all the libs into app, we can scrap the aliases altogether in favor of having ~/* simply point to app/*, and all the imports become ~/table/cells/DateCell or whatever.

Copy link

vercel bot commented Feb 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Feb 23, 2024 5:24pm

@david-crespo david-crespo changed the title Move libs/table to app/table Move libs/table and libs/pagination into app/ Feb 23, 2024
@@ -18,6 +18,7 @@ export default {
'',
'^@oxide/(.*)$',
'',
'^~/(.*)$',
'^app/(.*)$',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is about sorting ~/ into the right spot when prettier sorts and groups imports.

@david-crespo david-crespo merged commit 4bfd227 into main Feb 23, 2024
8 checks passed
@david-crespo david-crespo deleted the move-table-into-app branch February 23, 2024 19:23
charliepark added a commit to oxidecomputer/omicron that referenced this pull request Feb 27, 2024
oxidecomputer/console@80f1167...e991ec5

* [e991ec5c](oxidecomputer/console@e991ec5c) oxidecomputer/console#1982
* [8e247f28](oxidecomputer/console@8e247f28) get rid of @oxide/gen alias
* [7d936d7e](oxidecomputer/console@7d936d7e) oxidecomputer/console#1981
* [b9a6051d](oxidecomputer/console@b9a6051d) delete unused app/table/headers
* [0b330247](oxidecomputer/console@0b330247) remove barrel files in app/pages
* [e53942ce](oxidecomputer/console@e53942ce) remove dot-path-fix vite plugin while we’re not using it
* [1af82bff](oxidecomputer/console@1af82bff) use vite-tsconfig-paths insead of my old manual thing
* [0f2411e8](oxidecomputer/console@0f2411e8) oxidecomputer/console#1962
* [bd64c620](oxidecomputer/console@bd64c620) oxidecomputer/console#1978
* [4388a92a](oxidecomputer/console@4388a92a) change pt-2 back to py-2 on AccordionItem
* [a0921bd6](oxidecomputer/console@a0921bd6) move msw handlers out of mock-api barrel file
* [6ab60b9b](oxidecomputer/console@6ab60b9b) update references to libs/ everywhere
* [9b4a6e0f](oxidecomputer/console@9b4a6e0f) move classed out of util barrel
* [d731de2b](oxidecomputer/console@d731de2b) oxidecomputer/console#1977
* [6c5883d9](oxidecomputer/console@6c5883d9) oxidecomputer/console#1976
* [6de56b15](oxidecomputer/console@6de56b15) oxidecomputer/console#1975
* [bbf019ee](oxidecomputer/console@bbf019ee) oxidecomputer/console#1973
* [b9c1892d](oxidecomputer/console@b9c1892d) oxidecomputer/console#1974
* [e2e56d87](oxidecomputer/console@e2e56d87) Revert `try .git-blame-ignore-revs`. don’t like it
* [1745a752](oxidecomputer/console@1745a752) try .git-blame-ignore-revs
* [4bfd2275](oxidecomputer/console@4bfd2275) oxidecomputer/console#1971
* [cb109cba](oxidecomputer/console@cb109cba) oxidecomputer/console#1968
* [264e2cd1](oxidecomputer/console@264e2cd1) oxidecomputer/console#1969
* [3ec255f9](oxidecomputer/console@3ec255f9) Revert `Shuffle @oxide/pagination files  (oxidecomputer/console#1970)`
* [3eebf491](oxidecomputer/console@3eebf491) oxidecomputer/console#1970
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant