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

Responsive design process list #204

Merged
merged 17 commits into from
Jan 11, 2024
Merged

Responsive design process list #204

merged 17 commits into from
Jan 11, 2024

Conversation

winniel24
Copy link
Contributor

@winniel24 winniel24 commented Dec 20, 2023

Summary

  • Created menu for mobile view
  • Created drawer for meta data in mobile view
  • Created info-button in processes.tsx (TODO: fix functionality)
  • Created info-button for process-list and tabcards in mobile view (TODO: adjust width according to other components)
  • Adjusted layout of bar.tsx in processes
    - Order in mobile view: search bar - action bar - list/ icon view, separate float button for import and create
    - Order outside of mobile view: action bar - search bar - import button - create button - list/ icon view - info button
  • Adjusted footer width in mobile view (TODO: fix for tablet view)

Details

  • ProcessImportButton can now take ButtonProps just like ProcessCreationButton

@OhKai OhKai self-assigned this Jan 2, 2024
Comment on lines 65 to 72
<SiderMenu />
// <Menu theme="light" mode="inline" selectedKeys={[activeSegment]}>
// {ability.can('view', 'Process') || ability.can('view', 'Template') ? (
// <>
// <ProcessSider></ProcessSider>
// <Divider />
// </>
// ) : null}
Copy link
Contributor

Choose a reason for hiding this comment

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

If you refactor / change parts of the code that are not just temporary, you can confidently remove those and don't need to comment everything out.
We can always go back in the commit history to get removed code back :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Noted! Thanks a lot! :)

Copy link
Contributor

@OhKai OhKai left a comment

Choose a reason for hiding this comment

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

The linting job fails on all your files. Is it possible that you haven't installed the VS Code prettier extension?
If you do, VS Code will automatically format your open file with prettier.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can menu-mobile.tsx and this file be refactored into one component? They seem very similar.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

menu-sider was refactored to include menu-mobile. The components are now also visible in the mobile-menu as I haven't found a good work-around about how to exclude them there, yet.

Comment on lines 24 to 25
type ProcessImportButtonProps = ButtonProps

Copy link
Contributor

Choose a reason for hiding this comment

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

Why can't we use ButtonProps directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's used directly now!

const [importProcessData, setImportProcessData] = useState<ProcessData[]>([]);
const router = useRouter();
console.log(importProcessData)
Copy link
Contributor

Choose a reason for hiding this comment

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

Still needed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

console.log was removed

OhKai
OhKai previously approved these changes Jan 11, 2024
@OhKai OhKai merged commit 8efd410 into main Jan 11, 2024
11 checks passed
@OhKai OhKai deleted the responsive-design-process-list branch January 11, 2024 12:49
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