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

Customizing the default view in /hardware #5425

Closed
1 task
ghost opened this issue Apr 25, 2018 · 70 comments
Closed
1 task

Customizing the default view in /hardware #5425

ghost opened this issue Apr 25, 2018 · 70 comments

Comments

@ghost
Copy link

ghost commented Apr 25, 2018

Expected Behavior (or desired behavior if a feature request)

Customizing the default view:
What I want is very simple: When a user loggs-in into Snipe-IT and goes to /hardware, I want a different view there, and being still there, if the cookies are deleted.


Actual Behavior

As and Admin, I can't customize the default view in /hardware.


Please confirm you have done the following before posting your bug report:


Provide answers to these questions:

  • Is this a fresh install or an upgrade?
    A fresh install.
  • Version of Snipe-IT you're running
    4.2.0 - build 3497
  • Version of PHP you're running
    PHP 7.0.28-0ubuntu0.16.04.1
  • Version of MySQL/MariaDB you're running
    mysql Ver 15.1 Distrib 10.0.34-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
  • What OS and web server you're running Snipe-IT on
    Ubuntu 16.04.4 LTS
  • What method you used to install Snipe-IT (install.sh, manual installation, docker, etc)
    https://snipe-it.readme.io/v4.2.0/docs/installation
  • WITH DEBUG TURNED ON, if you're getting an error in your browser, include that error
  • What specific Snipe-IT page you're on, and what specific element you're interacting with to trigger the error
  • If a stacktrace is provided in the error, include that too.
  • Any errors that appear in your browser's error console.
  • Confirm whether the error is reproducible on the demo: https://snipeitapp.com/demo.
    Yes.
  • Include any additional information you can find in storage/logs and your webserver's logs.
  • Include what you've done so far in the installation, and if you got any error messages along the way.
  • Indicate whether or not you've manually edited any data directly in the database

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@snipe
Copy link
Owner

snipe commented Apr 25, 2018

I don't understand what you mean by custom view. Can you explain, and/or provide mockups?

@ghost
Copy link
Author

ghost commented Apr 26, 2018

I'd like the Id field to be already checked by default and would like to move my 1 custom field set, which consists of 4 new fields, to the left, next to the Id field, because those 4 new fields are located at the right-hand side, far away from the first Id field.
I also would like to uncheck an already by default existing and by default checked field Einkaufspreis, because the 1 custom field set contains a similar field. But Einkaufspreis isn't used because that newly added custom field set contains a fieldname that is used somewhere else and so for also naming conventions reasons, Einkaufspreis is not used, but a custom price field name. What also would work I guess is if Einkaufspreis could be renamed and added to the 1 custom field set, I tried, but didn't find anything. So I'd be ok with unchecking Einkaufspreis and not using it.

@EarlRamirez
Copy link
Contributor

@passboltUser are you referring to
image

or actually moving the columns from left to right?

@snipe
Copy link
Owner

snipe commented May 9, 2018

Selected columns are saved via cookie. There is currently no way to reorder columns. (We've tried to use the JS library that would permit that, but a bug in the library conflicts with other libraries already in use.)

@ghost
Copy link
Author

ghost commented Jun 5, 2018

@EarlRamirez Yes, I'm referring to the picture you attached (where I want certain checkmarks to be checked by default and certain columns be on different positions by default if an user loggs in without any cookies i.e. not relying on settings being saved in cookies).

@stale
Copy link

stale bot commented Aug 4, 2018

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Aug 4, 2018
@ghost
Copy link
Author

ghost commented Aug 7, 2018

Of course it's still relevant..

@stale
Copy link

stale bot commented Aug 7, 2018

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Aug 7, 2018
@stale
Copy link

stale bot commented Oct 6, 2018

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Oct 6, 2018
@mholkesvik-r7-zz
Copy link

I'd really like to have it.

@stale
Copy link

stale bot commented Oct 10, 2018

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label Oct 10, 2018
@snipe
Copy link
Owner

snipe commented Oct 10, 2018

I’d be willing to look at a PR for this, but I have to be honest and say this is definitely not on our development roadmap right now.

@ghost
Copy link
Author

ghost commented Oct 12, 2018

Thanks for info. Then I guess this can be staled by the bot, may someone else reply if interested.

@stale
Copy link

stale bot commented Dec 11, 2018

Is this still relevant? We haven't heard from anyone in a bit. If so, please comment with any updates or additional detail.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Don't take it personally, we just need to keep a handle on things. Thank you for your contributions!

@stale stale bot added the stale label Dec 11, 2018
@stale
Copy link

stale bot commented Dec 19, 2018

This issue has been automatically closed because it has not had recent activity. If you believe this is still an issue, please confirm that this issue is still happening in the most recent version of Snipe-IT and reply to this thread to re-open it.

@stale stale bot closed this as completed Dec 19, 2018
@viclou viclou reopened this May 17, 2019
@stale
Copy link

stale bot commented May 17, 2019

Okay, it looks like this issue or feature request might still be important. We'll re-open it for now. Thank you for letting us know!

@stale stale bot removed the stale label May 17, 2019
@tohagan
Copy link

tohagan commented Jul 10, 2019

We'd also need this feature. Thanks!

@wilkems
Copy link

wilkems commented Jul 11, 2019

Just installed Snipe IT and I would really like to reorder columns. There is certain data that I think goes better together and I'd like to have it more to the left and be able to just control the column order.

@TrishF81
Copy link

Our team just discovered Snipe IT, and we would really love the ability to move the columns around. We have our assets displayed in a way that works for our team in Excel, and would like it to be the same in Snipe IT.

@captainlinky
Copy link

We would also like this feature implemented. It would greatly improve the products functionality.

@ChrissGuthrie
Copy link

ChrissGuthrie commented Aug 12, 2019

This would be very helpful, since my custom fields -- the fields most important to me-- are far off to the right and I have to scroll to the bottom and all the way across each line to access them.

@Prodeguerriero
Copy link

One-upping this one as well. Being able to define organize columns and save a "default" layout that applies everywhere would be very nice.

@rschitz
Copy link

rschitz commented Sep 19, 2021

+1

1 similar comment
@roland-x83
Copy link

+1

@sylvank
Copy link

sylvank commented Oct 28, 2021

Also support customizing default visibility of columns and rearranging them. Should be saved as a user preference.

@DoK44
Copy link

DoK44 commented Nov 24, 2021

+1

1 similar comment
@lukascaplikas
Copy link

+1

@guiluxdj
Copy link

guiluxdj commented Mar 16, 2022

+1
maybe an idea with https://bootstrap-table.com/docs/extensions/reorder-columns/

Table Reorder Columns extension of Bootstrap Table.

@snipe
Copy link
Owner

snipe commented Mar 16, 2022

maybe an idea with https://bootstrap-table.com/docs/extensions/reorder-columns/

Once again, as we stated elsewhere, the last time we checked with that specific library, it directly conflicted with other libraries we were using.

Table Reorder Columns extension of Bootstrap Table.

@hellphish
Copy link

hellphish commented Mar 16, 2022 via email

@snipe
Copy link
Owner

snipe commented Mar 16, 2022

A long time ago, yes.

@cstout1
Copy link

cstout1 commented Mar 28, 2022

+1 here as well.

@stefvp
Copy link

stefvp commented Apr 14, 2022

+1 for this feature..
recently it seems like the cookie is not saved anymore on my system? so literally everytime I switch from asset to license or any other page I have to re-check and un-check all the boxes I need...
reproduced this behaviour in edge, firefox and brave browser.

@snipe
Copy link
Owner

snipe commented Apr 14, 2022

@Mi3czy - This has been fixed in 5.4.2, per the release notes.

To the OP, it’s unlikely that storing column preferences in the database (aka not in cookies) is going to make the short term roadmap any time soon.

@snipe snipe closed this as completed Apr 14, 2022
@gertz22
Copy link

gertz22 commented Sep 29, 2022

HI in our company also, looking for reorder feature. Like manufactorer and model..

@Tyree
Copy link

Tyree commented Nov 3, 2022

Absolutely, 100% agree this is a must-have. The order of the columns make no sense. Why can't the sorting in the custom fieldset be used in the column ordering??? Why is this a cookie-dependent feature? How is the fieldset order stored? Couldn't the same data be used for the column order?

@hpham93
Copy link

hpham93 commented Apr 14, 2023

+1 for this feature

@Mikes-Git
Copy link

Mikes-Git commented Apr 17, 2023

+1 on reorder columns, would be really important to us!

@davisrael
Copy link

+1 - especially since adjusting a large list of column's visibility currently seems broken (= not stored). Additionally, upon completion, nginx bails out with a
"header or cookie size too large". Deleting cookies is the only way of solving this.
Did anyone maybe have a look at the cookie structure - some manual tweaks that could pre-set a column visibility status?
Best :)

@SGLurker
Copy link

Great software! Love it!
Workaround for me is to edit /app/Presenters/AssetPresenter.php
Amend the fields that you want to "uncheck" during the initial loading of the page.
Change "visible" => true, to "visible" => false
When the page load, the layout will be based on all "visible = true" fields.

@carsonh4te
Copy link

+1 for reorder columns

@ryassuda
Copy link

+1

2 similar comments
@tntmario
Copy link

+1

@carlyle9
Copy link

+1

@snipe
Copy link
Owner

snipe commented Apr 19, 2024

You can switch to localStorage in your env for BS_TABLE_STORAGE for remembering the columns that are shown there. That will persist in the browser beyond cookie deletion. https://snipe-it.readme.io/docs/configuration#optional-session-settings

We do not have any plans on implementing a database-backed version of that at this time.

Snipe-IT Documentation
This section is where you edit the Snipe-IT configuration file to reflect your own settings, such as your database credentials, mail server, preferred language, timezone, and so on. Some of the settings are optional, some are required.Don't be intimidated by the length of this page. The configuratio...

@carlyle9
Copy link

I am interested in the reordering of columns, that option doesn't appear to be supported for any configuration at this time.

@snipe
Copy link
Owner

snipe commented Apr 19, 2024

As discussed in other GH issues, the javascript library we use has a bug in the re-ordering extension which causes conflicts with the other table features. If they ever get that fixed, we'll add it.

@nickMLB
Copy link

nickMLB commented Dec 4, 2024

Could you share a link to this issue of the javascript library? Maybe we could upvote or +1 is as well?

@TieuBao1606
Copy link

Hello everyone, I am a new user with the same desire as you.

During the search process, I tried to find a way to change the order of the fields in the AssetPresenter.php file ( /var/www/html/app/Presenters/)

Result: I have changed the positions that I expected. However, with only one person, I cannot evaluate all the possible errors, can you try and give me some advice?
P/s: You should backup the AssetPresenter.php file before making any changes so that you can Rollback it back to its original state

After
Before

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

No branches or pull requests