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

fix(story): add table design #17

Merged
merged 1 commit into from
Dec 12, 2023
Merged

fix(story): add table design #17

merged 1 commit into from
Dec 12, 2023

Conversation

eunjae-lee
Copy link
Contributor

@eunjae-lee eunjae-lee commented Dec 11, 2023

What?

This PR adds table design to the story list, and refactors into smaller components.

Screenshot.2023-12-11.at.17.27.25.mp4

How to test? (optional)

This was referenced Dec 11, 2023
@eunjae-lee
Copy link
Contributor Author

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

}>();
</script>

<template>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sorry for the big diff. It was inevitable as I split stuff into smaller chunks. However, the majority of the code is the same.

Copy link
Contributor

Choose a reason for hiding this comment

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

Love to see some code splitting <3


const lastUpdate = computed(() => {
const timestamp = props.story.updated_at || props.story.created_at;
const [date, time] = timestamp.split('T');
Copy link
Contributor

Choose a reason for hiding this comment

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

I was trying to find out how nuxt handles the formatting of dates and https://nuxt.com/modules/date-fns there is this, but for now a new dependency might be too much so its fine to leave it as is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ah yeah, date-fns is definitely a great choice for date formatting as soon as we need to really format it :)

Copy link
Contributor

@BibiSebi BibiSebi left a comment

Choose a reason for hiding this comment

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

Looking neat 💪

@eunjae-lee
Copy link
Contributor Author

eunjae-lee commented Dec 12, 2023

Merge activity

  • Dec 12, 8:30 AM: @@eunjae-lee started a stack merge that includes this pull request via Graphite.
  • Dec 12, 8:32 AM: Graphite rebased this pull request as part of a merge.
  • Dec 12, 8:33 AM: @@eunjae-lee merged this pull request with Graphite.

Base automatically changed from fix/loader to main December 12, 2023 13:32
@eunjae-lee eunjae-lee merged commit 0db7b0a into main Dec 12, 2023
2 checks passed
@eunjae-lee eunjae-lee deleted the fix/add-table-design branch December 12, 2023 13:33
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.

2 participants