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

feat: Login improvements #1210

Merged
merged 25 commits into from
Oct 12, 2023
Merged

feat: Login improvements #1210

merged 25 commits into from
Oct 12, 2023

Conversation

bprusinowski
Copy link
Collaborator

@bprusinowski bprusinowski commented Oct 11, 2023

Contributes towards #1190.

This PR adds:

  • Published date to the table
  • Actions tooltip
  • Copy chart option
  • Delete chart option (with a modal to confirm the action)
  • Link to dataset (tied to its title)
  • Sorting of user configs by date
  • Preview mode to table (homepage, 3 results)

It also fixes a problem of not extracting components iris for combo charts and not carrying over the locale when clicking Browse all datasets button.

@vercel
Copy link

vercel bot commented Oct 11, 2023

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 Oct 12, 2023 11:09am

@bprusinowski bprusinowski force-pushed the feat/login-continuation branch from 5f9959e to 3b0865c Compare October 12, 2023 10:54
@bprusinowski bprusinowski marked this pull request as ready for review October 12, 2023 10:54
@bprusinowski bprusinowski merged commit d7243c9 into main Oct 12, 2023
3 of 4 checks passed
@bprusinowski bprusinowski deleted the feat/login-continuation branch October 12, 2023 11:18
Copy link
Collaborator

@ptbrowne ptbrowne left a comment

Choose a reason for hiding this comment

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

Looks great !

app/login/components/profile-tables.tsx Outdated Show resolved Hide resolved
userConfigs: ParsedConfig[];
};

export const ProfileContentTabs = (props: ProfileContentTabsProps) => {
const { userConfigs } = props;
const { userId, userConfigs: _userConfigs } = props;
const [userConfigs, setUserConfigs] = React.useState(_userConfigs);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not sure I understand the change 🤔 ?

Copy link
Collaborator Author

@bprusinowski bprusinowski Oct 12, 2023

Choose a reason for hiding this comment

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

Ah, this commit was a preparation for the next one, probably they should be one – as we fetch the user configs on the server side, there was a need to useState so that when user removes a chart, we can simply handle the change on the frontend, without re-querying configs (+ to make the table re-render once it's removed).

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