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

Save draft #1340

Merged
merged 59 commits into from
Feb 20, 2024
Merged

Save draft #1340

merged 59 commits into from
Feb 20, 2024

Conversation

ptbrowne
Copy link
Collaborator

@ptbrowne ptbrowne commented Feb 15, 2024

  • Create new chart and save as draft
  • List drafts as a separate list inside the profile
  • Ability to publish a draft from profile
  • Ability to turn a published chart into a draft from profile
  • Show the draft button inside the "configure" view
  • Show the draft button inside the "layout" view
  • When viewing a draft, show a warning
  • When viewing a draft, ability for the owner to go to edit page

Copy link

vercel bot commented Feb 15, 2024

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

Name Status Preview Comments Updated (UTC)
visualization-tool ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2024 9:17am

Copy link
Collaborator

@bprusinowski bprusinowski left a comment

Choose a reason for hiding this comment

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

Couldn't test yet due to failed deployment but code looks 💯 👏 Just a few remarks / questions :)

README.md Show resolved Hide resolved
app/utils/use-fetch-data.ts Show resolved Hide resolved
app/utils/use-fetch-data.ts Outdated Show resolved Hide resolved
app/utils/use-fetch-data.ts Outdated Show resolved Hide resolved
app/utils/use-fetch-data.ts Show resolved Hide resolved
app/utils/chart-config/api.ts Outdated Show resolved Hide resolved
app/pages/v/[chartId].tsx Outdated Show resolved Hide resolved
app/components/chart-selection-tabs.tsx Outdated Show resolved Hide resolved
app/config-types.ts Outdated Show resolved Hide resolved
app/utils/chart-config/api.ts Outdated Show resolved Hide resolved
Copy link
Collaborator

@bprusinowski bprusinowski left a comment

Choose a reason for hiding this comment

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

LGTM 👌

app/utils/chart-config/api.ts Outdated Show resolved Hide resolved
app/pages/v/[chartId].tsx Outdated Show resolved Hide resolved
@@ -47,7 +47,7 @@ const useStyles = makeStyles<Theme>((theme) => ({
LMRPanelHeaderLayout: {
width: "100%",
display: "grid",
gridTemplateColumns: `${DRAWER_WIDTH}px minmax(22rem, 1fr) ${DRAWER_WIDTH}px`,
gridTemplateColumns: `${DRAWER_WIDTH}px minmax(22rem, 1fr) auto`,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think the idea here was to have a symmetrical layout, not sure if we need to have this change – if you think so, then you should also update LMRPanelHeaderLayout class to mimic this 😄 Btw, as it's not used anywhere, maybe we can just remove this layout option :)

Copy link
Collaborator Author

@ptbrowne ptbrowne Feb 20, 2024

Choose a reason for hiding this comment

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

The problem here was that the publish options + save draft would be wider than the panel. I think we have to see later how to improve. Myabe we can check this together tomorrow.

Comment on lines +156 to +160
JSON.stringify({
state: "CONFIGURING_CHART",
published_state: "PUBLISHED",
...fakeVizFixture,
})
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe it also would make sense to apply migration here, to forget about updating this when config schema changes?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Will do in another PR.

app/login/components/profile-tables.tsx Outdated Show resolved Hide resolved
@ptbrowne ptbrowne merged commit 831203a into main Feb 20, 2024
4 of 6 checks passed
@ptbrowne ptbrowne deleted the feat/save-draft-2 branch February 20, 2024 09:50
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